Skip to main content

terraform-mcp-server CVE-2026-16496

| EUVDEUVD-2026-49940 HIGH
Session Fixation (CWE-384)
2026-07-28 HashiCorp GHSA-4crw-p722-vr7h
8.9
CVSS 3.1 · Vendor: HashiCorp
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed streamable-HTTP MCP endpoint
  2. Delivery
    Obtain victim's MCP session ID
  3. Exploit
    Replay session ID in stateful transport
  4. Execution
    Invoke Terraform tool calls as victim
  5. Impact
    Abuse victim's Terraform credentials on infrastructure

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V7 - Session Management Session fixation prevention
Exploitation Conditions

Exploitation requires that terraform-mcp-server (version 0.3.0 to <1.1.0) be running specifically in the streamable-HTTP stateful transport mode, and that the attacker first obtain a valid MCP session ID belonging to another user. Limiting factors: the vulnerable stateful HTTP transport is a specific, non-universal deployment choice (stateless setups are not affected the same way), and the attack is gated on acquiring the victim's session identifier (reflected in CVSS AC:H), which is why CISA SSVC marks it Automatable=no. No attacker-side authentication account is needed (PR:N), but victim session material is a hard prerequisite, and the practical impact is scoped to whatever Terraform credentials the hijacked session holds.

Impact

The signals are mixed and should be read together. CVSS 8.9 (AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:L) reflects network reach, no required attacker privileges, and a scope change into managed Terraform infrastructure - but AC:H acknowledges the non-trivial precondition of obtaining a valid session ID. Real-world exploitation probability appears low: EPSS is 0.27% (19th percentile), CISA SSVC lists Exploitation=none and Automatable=no (so it is not a spray-and-pray target), even though Technical Impact=total captures the severity if exploited. There is no KEV listing and no public exploit identified. Net: this is a high-severity issue for organizations exposing the stateful HTTP transport in multi-user contexts, but it is a targeted, condition-dependent flaw rather than a mass-exploitation threat - patch on a normal-to-elevated priority track, escalating if the stateful HTTP mode is internet-exposed. Note the tension between PR:N and the AC:H prerequisite of session-ID theft: no attacker account is needed, but victim session material is required, so 'unauthenticated' should not be read as 'trivially remote.'

Exploit ScenarioDerived

In a shared terraform-mcp-server deployment running the streamable-HTTP stateful transport, an attacker captures or reuses another user's MCP session ID (for example via network interception, logs, or a leaked token). Replaying that session ID, the attacker issues Terraform tool calls that execute with the victim's Terraform credentials, potentially reading state, modifying infrastructure, or exfiltrating secrets. No public exploit is identified, and the AC:H rating reflects that the attacker must first acquire valid session material.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 30, 2026

Authorization bypass in HashiCorp's terraform-mcp-server (versions 0.3.0 through 1.0.x) lets an attacker who obtains another user's MCP session identifier execute their own tool calls under the victim's Terraform credentials when the server runs in streamable-HTTP stateful transport mode. Rooted in a session fixation weakness (CWE-384), the flaw carries a CVSS 8.9 with a scope change, meaning cross-user credential misuse against managed infrastructure. No public exploit identified at time of analysis; EPSS is low (0.27%) and CISA SSVC records exploitation as none, indicating no observed active exploitation.

RemediationAI

Vendor-released patch: 1.1.0 - upgrade terraform-mcp-server to 1.1.0 or later, which fixes CVE-2026-16496 as described in HashiCorp HCSEC-2026-23 (https://discuss.hashicorp.com/t/hcsec-2026-23-multiple-vulnerabilities-impacting-hashicorp-terraform-mcp-server/77606). If immediate upgrade is not possible, stop using the streamable-HTTP stateful transport mode (switch to a stateless or non-shared transport, or run isolated single-user instances) so session IDs cannot be reused across users; the trade-off is loss of persistent multi-user session state. Additionally restrict network exposure of the MCP HTTP endpoint to trusted clients only and place it behind an authenticated, TLS-terminating reverse proxy to reduce the chance of session-ID interception, accepting added deployment complexity. Rotate and invalidate any potentially exposed session identifiers after upgrading.

Affected VersionsENISA

Tooling 0.3.0 <1.1.0

Affected Packages

euvd tooling fix: 1.1.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The Model Context Protocol (MCP) server for Terraform exposes Terraform tooling to LLM/agent clients over a transport layer. The vulnerable configuration is the streamable-HTTP 'stateful' transport, which maintains per-user server sessions keyed by an MCP session ID. Because that session ID alone is treated as sufficient to bind tool invocations to a user's Terraform credentials, an actor who learns or reuses a valid session ID is authorized as that user - the CWE-384 (Session Fixation) root cause: session identifiers are not adequately bound to the authenticated principal or otherwise protected against reuse. The affected component is identified in CPE as cpe:2.3:a:hashicorp:tooling:*:*:*:*:*:*:*:* (HashiCorp Tooling), consistent with the terraform-mcp-server codebase.

Know when Session Fixation gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (HashiCorp) PRIMARY 8.9 HIGH
AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:L
vuln.today AI 8.9 HIGH

Network-reachable HTTP transport (AV:N) but requires stealing a victim session ID (AC:H) with no attacker account (PR:N); cross-user credential misuse changes scope (S:C) with high confidentiality/integrity over managed infrastructure.

3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:L
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L

Primary rating from Vendor (HashiCorp).

CVSS VectorVendor: HashiCorp

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
Low

Lifecycle Timeline

2
Patch available
Jul 28, 2026 - 19:02 EUVD
CVE Published
Jul 28, 2026 - 17:57 cve.org
HIGH 8.9

DescriptionCVE.org

The terraform-mcp-server before version 1.1.0 is vulnerable to an authorization bypass in the streamable-HTTP stateful transport mode that may allow a user who obtains another user's MCP session ID to have their tool calls executed using that user's Terraform credentials. This vulnerability, CVE-2026-16496, is fixed in terraform-mcp-server 1.1.0.

Executive ViewAI

Why It Matters

HashiCorp's terraform-mcp-server contains an authorization bypass vulnerability allowing attackers who obtain a valid session identifier to execute infrastructure changes under another user's Terraform credentials. Organizations running versions 0.3.0 through 1.0.x in streamable-HTTP stateful mode face direct risk of unauthorized infrastructure modification, with cross-user credential misuse potential extending the blast radius beyond individual accounts.

Business Impact: High
Compensating Controls

Apply vendor patch. Interim mitigations while patching: disable streamable-HTTP stateful transport mode, restrict network access to terraform-mcp-server to trusted networks only, and implement immediate session invalidation procedures to minimize the time an obtained session identifier remains valid.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Low
niche MCP integration server for Terraform, limited production footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2026-102489 CRITICAL POC
9.4 Sep 30

Session hijacking in self-hosted Zammad 6.3.0 through 6.5.4 allows remote, unauthenticated attackers to take over a legi

CVE-2017-12965 CRITICAL POC
9.8 Aug 23

Session fixation vulnerability in Apache2Triad 1.5.4 allows remote attackers to hijack web sessions via the PHPSESSID pa

CVE-2025-28242 CRITICAL POC
9.8 Apr 18

Improper session management in the /login_ok.htm endpoint of DAEnetIP4 METO v1.25 allows attackers to execute a session

CVE-2022-40916 CRITICAL POC
9.8 Feb 06

Tiny File Manager v2.4.7 and below is vulnerable to session fixation. Rated critical severity (CVSS 9.8), this vulnerabi

CVE-2025-45949 CRITICAL POC
9.8 Apr 28

A critical vulnerability was found in PHPGurukul User Registration & Login and User Management System V3.3 in the /login

CVE-2023-48929 CRITICAL POC
9.8 Dec 08

Franklin Fueling Systems System Sentinel AnyWare (SSA) version 1.6.24.492 is vulnerable to Session Fixation. Rated criti

CVE-2023-41012 CRITICAL POC
9.8 Sep 05

An issue in China Mobile Communications China Mobile Intelligent Home Gateway v.HG6543C4 allows a remote attacker to exe

CVE-2023-31498 CRITICAL POC
9.8 May 11

A privilege escalation issue was found in PHP Gurukul Hospital Management System In v.4.0 allows a remote attacker to ex

CVE-2022-3269 CRITICAL POC
9.8 Sep 23

Session Fixation in GitHub repository ikus060/rdiffweb prior to 2.4.7. Rated critical severity (CVSS 9.8), this vulnerab

CVE-2021-39290 CRITICAL POC
9.8 Aug 23

Certain NetModule devices allow Limited Session Fixation via PHPSESSID. Rated critical severity (CVSS 9.8), this vulnera

CVE-2020-11729 CRITICAL POC
9.8 Apr 15

An issue was discovered in DAViCal Andrew's Web Libraries (AWL) through 0.60. Rated critical severity (CVSS 9.8), this v

CVE-2019-18418 CRITICAL POC
9.8 Oct 24

clonos.php in ClonOS WEB control panel 19.09 allows remote attackers to gain full access via change password requests be

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy