Skip to main content
VulnerabilityPublished Updated

CVE-2026-27139: Go standard library os · Race Condition Enabling Link Following

Affects Go standard library osSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 2.5 Low : upgrade to 1.26.1 or 1.25.8 when convenient.

Data as of 30 Oct 2026, 11:52 UTC

CVSS 3.1 base score
2.5Low
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 11% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.26.1, 1.25.8
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.

What to do

Upgrade Go standard library os to 1.26.1 or 1.25.8.

Affected software

ProductAffectedFixed in
Go standard libraryosAffected
  • >=1.26.0-0 <1.26.1
Fixed in
  • 1.26.1
Go standard libraryosAffected
  • <1.25.8
Fixed in
  • 1.25.8
Goospkg:golang/osOther threatsAffected
  • <1.25.8
  • >=1.26.0-0 <1.26.1
Fixed in
  • 1.25.8
  • 1.26.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. Upgrade Go to a version later than 1.26.0-0 once patches addressing CVE-2026-27139 are released by the Go project.
  2. If you cannot patch yet, avoid using File.ReadDir or File.Readdir in security-critical contexts where directory traversal or metadata leakage could be exploited.
  3. Implement strict filesystem permissions and access controls to limit local user access to sensitive directories and files.
  4. Use containerization or sandboxing to isolate processes and reduce the risk of local privilege escalation or information leakage.
  5. Monitor and audit local user activities to detect unusual directory listing or metadata access patterns.
  6. Consider application-level validation to ensure that file metadata accessed corresponds strictly to intended directories.
  7. Educate developers about the risks of race conditions and encourage secure coding practices when handling filesystem operations.

Description

On Unix platforms, when listing the contents of a directory using File.ReadDir or File.Readdir the returned FileInfo could reference a file outside of the Root in which the File was opened. The impact of this escape is limited to reading metadata provided by lstat from arbitrary locations on the filesystem without permitting reading or writing files outside the root.

References

Community reviews

Loading reviews…