CVE-2026-27139: Go standard library os · Race Condition Enabling Link Following
Affects Go standard library osSource CVE Database V5
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
- 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:NExploitation evidence
Disclosed: evidence found.
CVE published 6 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
| Go standard libraryos | Affected
| Fixed in
|
| Go standard libraryos | Affected
| Fixed in
|
Goospkg:golang/osOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Upgrade Go to a version later than 1.26.0-0 once patches addressing CVE-2026-27139 are released by the Go project.
- 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.
- Implement strict filesystem permissions and access controls to limit local user access to sensitive directories and files.
- Use containerization or sandboxing to isolate processes and reduce the risk of local privilege escalation or information leakage.
- Monitor and audit local user activities to detect unusual directory listing or metadata access patterns.
- Consider application-level validation to ensure that file metadata accessed corresponds strictly to intended directories.
- 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.