CVE-2026-12112
Analyzed Analyzed - Analysis Complete

Session Hijacking in Foreman MCP Server

Vulnerability report for CVE-2026-12112, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-23

Last updated on: 2026-07-01

Assigner: Red Hat, Inc.

Description

A flaw was found in the foreman-mcp-server. A session management vulnerability in the MCP Server allows unauthenticated attackers to hijack active administrative sessions due to an improper cache of authenticated client connections, by trusting a non-secret session ID without re-validating authentication tokens and by logging all newly created session IDs to standard logs. This issue can result in privilege escalation and infrastructure-wide code execution.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-23
Last Modified
2026-07-01
Generated
2026-07-14
AI Q&A
2026-06-24
EPSS Evaluated
2026-07-13
NVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
theforeman foreman *
redhat satellite 6.19

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-287 When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in the foreman-mcp-server and involves session management. Specifically, the MCP Server improperly caches authenticated client connections and trusts a non-secret session ID without re-validating authentication tokens. Additionally, it logs all newly created session IDs to standard logs. This flaw allows unauthenticated attackers to hijack active administrative sessions.

Compliance Impact

The vulnerability in foreman-mcp-server allows unauthenticated attackers to hijack active administrative sessions, leading to privilege escalation and potential infrastructure-wide code execution.

Such unauthorized access and privilege escalation could result in unauthorized disclosure, modification, or destruction of sensitive data, which may impact compliance with standards like GDPR and HIPAA that require strict access controls and protection of sensitive information.

However, specific impacts on compliance are not detailed in the provided information.

Detection Guidance

This vulnerability can be detected by monitoring server logs for the presence of session IDs being logged at the INFO level, as these session IDs are improperly cached and logged by the foreman-mcp-server. Anomalies such as repeated use of the same session ID from different sources or unexpected administrative actions without proper authentication may indicate exploitation.

Specific commands to detect this vulnerability are not provided in the available resources. However, inspecting the foreman-mcp-server logs for entries containing 'mcp-session-id' or similar session identifiers and checking for unauthorized or unusual JSON-RPC requests could help identify exploitation attempts.

Mitigation Strategies

Immediate mitigation involves updating the foreman-mcp-server to a version where the AuthMiddleware properly validates the foreman_token on every request. This ensures that any mismatched tokens result in a 401 Unauthorized response and session invalidation, preventing session hijacking.

Until an update is applied, administrators should consider restarting the server frequently to invalidate cached sessions, restrict access to server logs to prevent attackers from harvesting session IDs, and monitor for suspicious activity indicating session hijacking.

Impact Analysis

The vulnerability can lead to privilege escalation and infrastructure-wide code execution. This means an attacker could gain administrative access without authentication and potentially execute malicious code across the entire infrastructure managed by the foreman-mcp-server.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-12112. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart