cve.bz

CVE-2026-74796 opentofu opentofu: Link Following

7.0 highEPSS 0.3%Fix available

High (7.0) in opentofu opentofu. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/opentofu/opentofu 1.10.10, 1.11.7.

On this page
OpenTofu before 1.11.7 fails to validate existing symlinks in the provider cache directory during initialization. Attackers can place a malicious symlink in a trusted working directory to cause tofu init to write provider package contents to arbitrary filesystem locations outside the working tree.

Severity

CVSS 4.0

7.0 high
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 28th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-08-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • github.com/opentofu/opentofu (Go): fixed in 1.11.7, 1.10.10

Ask an AI about this CVE

Show the promptExplain CVE-2026-74796 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-74796?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-74796?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-74796 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
opentofubefore 1.11.7

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-wcmj-x466-56mmGogithub.com/opentofu/opentofu>=1.11.0 <1.11.71.11.7
GHSA-wcmj-x466-56mmGogithub.com/opentofu/opentofu<1.10.101.10.10
GO-2026-5705Gogithub.com/opentofu/opentofu<1.10.10
>=1.11.0 <1.11.7
1.10.10, 1.11.7

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This Moderate flaw in OpenTofu allows for arbitrary file writes via symlink following during initialization. However, Red Hat products are not affected by this vulnerability as the vulnerable code is not present.

ProductPackageStateAdvisory
Red Hat Hardened Imageshi/opentofuNot affected
Red Hat Hardened Imagesopentofu1.10Not affected
Red Hat Hardened Imagesopentofu1.11Not affected
Red Hat Hardened Imagesopentofu1.12Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-74796.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON