HIGH 7.7

CVE-2026-14468: Terraform Enterprise Path Traversal Allows Authenticated File Disclosure

HashiCorp Terraform Enterprise has a path traversal vulnerability in how it processes modules from version control systems. An authenticated user can craft a malicious module that escapes the intended repository boundaries and includes files from elsewhere on the server—such as configuration files or credentials—then download those files. The vulnerability affects Terraform Enterprise versions prior to v2.0.4 and v1.2.4.

Source data · NVD / CISA · public domain

CVSS
3.1 · 7.7 HIGH · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Weaknesses (CWE)
CWE-22
Affected products
0 configuration(s)
Published / Modified
2026-07-06 / 2026-07-07

NVD description (verbatim)

HashiCorp Terraform Enterprise contained an issue in its version control system (VCS) ingestion of registry modules that did not correctly enforce the intended boundary on packaged module content. This may allow an authenticated user to include files from outside the intended repository content in a module and then download them, potentially exposing sensitive files readable by the ingestion process. This vulnerability, CVE-2026-14468, is fixed in Terraform Enterprise v2.0.4 and v1.2.4.

1 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

CVE-2026-14468 is a path traversal flaw (CWE-22) in Terraform Enterprise's VCS ingestion layer for registry modules. The system fails to properly validate and enforce content boundaries when processing packaged modules from version control systems. An authenticated attacker can manipulate module content to reference files outside the intended repository scope, then retrieve those files through the module download mechanism. This exposes any sensitive data readable by the Terraform Enterprise ingestion process, including potential secrets, keys, and configuration data. The vulnerability requires authentication and network access but has no prerequisites for exploitation beyond valid user credentials.

Business impact

This vulnerability creates a data exfiltration risk for organizations using Terraform Enterprise as a module registry. Authenticated users—whether internal developers or compromised accounts—can access sensitive files on the Terraform Enterprise host, including infrastructure-as-code artifacts, API credentials, database connection strings, and other operational secrets. The scope impact (CVSS:S:C) indicates unauthorized information disclosure may extend beyond the affected component. For enterprises managing multi-tenant infrastructure or sensitive cloud deployments via Terraform, this could lead to lateral movement, credential theft, or exposure of environment-specific configurations.

Affected systems

Terraform Enterprise versions prior to v2.0.4 and v1.2.4 are affected. Organizations running older patch levels in either the 2.0.x or 1.2.x release streams should prioritize verification of their current version. Users on 2.0.4 or later, or 1.2.4 or later, are not vulnerable.

Exploitability

Exploitation requires valid Terraform Enterprise authentication; unauthenticated attackers cannot trigger the vulnerability. However, the attack has low complexity and can be executed over the network without user interaction. Given that Terraform Enterprise is commonly accessed by development teams, the attack surface is meaningful in organizations with developer access to the registry. The vulnerability does not require special privileges beyond standard module management capabilities.

Remediation

Upgrade Terraform Enterprise to v2.0.4 or later if running the 2.0.x branch, or to v1.2.4 or later if running the 1.2.x branch. Verify the installed version via the admin console or CLI before attempting upgrades. Organizations should test upgrades in a non-production environment first, as Terraform Enterprise upgrades can impact running operations. Review access logs post-upgrade to identify any suspicious module ingestion activity during the exposure window.

Patch guidance

HashiCorp has released fixes in Terraform Enterprise v2.0.4 and v1.2.4. Obtain the latest patches from the official HashiCorp releases page and follow their documented upgrade procedure for your deployment method (virtual machine, containerized, or SaaS). Verify patch installation by confirming the version string in the admin UI or via the version API endpoint. Schedule upgrades during a maintenance window to avoid disrupting active Terraform runs.

Detection guidance

Monitor Terraform Enterprise audit logs for module ingestion events that reference unusual file paths or traversal patterns (e.g., '../' sequences in module content). Check for downloads of modules containing suspicious file references. Review VCS webhook logs to identify modules pushed with atypical payloads. If running in a containerized or VM environment, monitor filesystem access from the Terraform Enterprise ingestion process for attempts to read files outside the expected module directory. Organizations should enable and review audit logging around module registry operations.

Why prioritize this

This vulnerability merits rapid remediation due to its HIGH CVSS score (7.7), confirmed data exfiltration capability, and the sensitivity of secrets typically stored within Terraform Enterprise environments. While authentication is required, the barrier to exploitation is low for insiders or compromised developers. The scope-change impact elevates risk in multi-tenant or shared registry scenarios. Prioritize patching in production environments managing critical infrastructure.

Risk score, explained

The CVSS 3.1 score of 7.7 reflects high confidentiality impact (C:H) with no integrity or availability impact. The network-accessible vector (AV:N) and low attack complexity (AC:L) increase exploitability. Authentication requirement (PR:L) provides some control, preventing fully unauthenticated attacks. Scope change (S:C) indicates the vulnerability may affect security boundaries beyond Terraform Enterprise itself, such as the broader infrastructure described in Terraform configurations.

Frequently asked questions

Do I need valid Terraform Enterprise credentials to exploit this?

Yes. CVE-2026-14468 requires authentication—the attacker must be a legitimate user with module registry access. However, this does not require administrator privileges; standard developer access is sufficient.

What kinds of files could be exposed?

Any file readable by the Terraform Enterprise ingestion process running on the server could potentially be accessed, including environment variables, configuration files, SSL certificates, database credentials, cloud provider API keys, and other secrets stored on the host.

Are SaaS customers using Terraform Cloud affected?

No. This vulnerability is specific to Terraform Enterprise (self-hosted). Terraform Cloud (HashiCorp-managed SaaS) uses different module ingestion mechanisms and architecture.

What should I do if my organization uses an older version?

Immediately verify your current Terraform Enterprise version and upgrade to v2.0.4 (or later 2.0.x) or v1.2.4 (or later 1.2.x) as soon as feasible. Review audit logs for any suspicious module registry activity during the period before patching, and consider rotating any secrets accessible by the Terraform Enterprise process.

This analysis is provided for informational purposes and should not be considered a substitute for vendor advisories or your organization's own security assessment. Patch version numbers and affected versions are sourced from the official CVE record and HashiCorp security announcements; verify against the vendor's latest advisory before deployment. No exploit code or proof-of-concept is provided. Organizations should test patches in non-production environments and follow their change management procedures. SEC.co does not warrant the completeness or accuracy of this analysis and recommends consulting HashiCorp's official Terraform Enterprise security documentation. Source: NVD (public-domain), retrieved 2026-08-15. Analysis generated by SEC.co (claude-haiku-4-5).