CVE-2026-27139: FileInfo can escape from a Root in os
Noroxi assessment
Priority: Monitor (action score 10/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.21% (FIRST EPSS).
- Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. Special conditions such as timing or configuration are required.
- Fixed version: Go standard library os 1.25.8, 1.26.1.
Low priority for now. Upgrade to Go standard library os 1.25.8, 1.26.1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- BDU:2026-04122
- GO-2026-4602
- openSUSE-SU-2026:10299-1
- openSUSE-SU-2026:10310-1
- openSUSE-SU-2026:20342-1
- openSUSE-SU-2026:20496-1
- openSUSE-SU-2026:20537-1
- openSUSE-SU-2026:21319-1
- openSUSE-SU-2026:21324-1
- SUSE-SU-2026:0875-1
- SUSE-SU-2026:0876-1
- SUSE-SU-2026:0947-1
- SUSE-SU-2026:0976-1
- SUSE-SU-2026:0977-1
- SUSE-SU-2026:0993-1
- SUSE-SU-2026:21195-1
- SUSE-SU-2026:21200-1
- SUSE-SU-2026:22638-1
- SUSE-SU-2026:22643-1
- SUSE-SU-2026:2817-1
- Published
- Mar 6, 2026
- Updated
- Jun 17, 2026
- EPSS
- 0.2% · 12th percentile
- CWE
- CWE-22
Report tools
Action score
10
Low priority for now.
- CVSS
- 10 / 40 · 2.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.2%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| golang | go | cpe:2.3:a:golang:go |
Versions reported by the vendor
Affected version ranges reported by the assigning authority (Go). Independent of NVD's CPE analysis and usually ahead of it.
Go standard library os
- before 1.25.8affected · semver
- 1.26.0-0 and later · before 1.26.1affected · semver
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- golang gobefore 1.25.8
- golang go1.26.0
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.23 | go | before 1.25.8-r0 | 1.25.8-r0 |
| Debian:12 | golang-1.19 | from 0 | — |
| Debian:13 | golang-1.24 | from 0 | — |
| Debian:14 | golang-1.26 | before 1.26.1-1 | 1.26.1-1 |
| Go | stdlib | from 1.26.0-0 · before 1.26.1 | 1.26.1 |
| Go | stdlib | before 1.25.8 | 1.25.8 |
| openSUSE:Leap 15.6 | go1.25 | before 1.25.8-150000.1.32.1 | 1.25.8-150000.1.32.1 |
| openSUSE:Leap 15.6 | go1.25-openssl | before 1.25.8-150600.13.15.1 | 1.25.8-150600.13.15.1 |
| openSUSE:Leap 15.6 | go1.26 | before 1.26.1-150000.1.6.1 | 1.26.1-150000.1.6.1 |
| openSUSE:Leap 15.6 | go1.26-openssl | before 1.26.1-150600.13.3.1 | 1.26.1-150600.13.3.1 |
| openSUSE:Leap 16.0 | go1.25 | before 1.25.12-160000.1.1 | 1.25.12-160000.1.1 |
| openSUSE:Leap 16.0 | go1.25 | before 1.25.8-160000.1.1 | 1.25.8-160000.1.1 |
| openSUSE:Leap 16.0 | go1.25-openssl | before 1.25.12-160000.1.1 | 1.25.12-160000.1.1 |
| openSUSE:Leap 16.0 | go1.26 | before 1.26.1-160000.1.1 | 1.26.1-160000.1.1 |
| openSUSE:Leap 16.0 | go1.26-openssl | before 1.26.1-160000.1.1 | 1.26.1-160000.1.1 |
| openSUSE:Tumbleweed | go1.25 | before 1.25.8-1.1 | 1.25.8-1.1 |
| openSUSE:Tumbleweed | go1.26 | before 1.26.1-1.1 | 1.26.1-1.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | go1.25-openssl | before 1.25.8-150000.1.18.1 | 1.25.8-150000.1.18.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | go1.25-openssl | before 1.25.12-150000.1.27.1 | 1.25.12-150000.1.27.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | go1.26-openssl | before 1.26.1-150000.1.3.1 | 1.26.1-150000.1.3.1 |
| SUSE:Linux Enterprise Module for Development Tools 15 SP7 | go1.25 | before 1.25.8-150000.1.32.1 | 1.25.8-150000.1.32.1 |
| SUSE:Linux Enterprise Module for Development Tools 15 SP7 | go1.25 | before 1.25.12-150000.1.44.1 | 1.25.12-150000.1.44.1 |
| SUSE:Linux Enterprise Module for Development Tools 15 SP7 | go1.25-openssl | before 1.25.8-150600.13.15.1 | 1.25.8-150600.13.15.1 |
| SUSE:Linux Enterprise Module for Development Tools 15 SP7 | go1.25-openssl | before 1.25.12-150600.13.21.1 | 1.25.12-150600.13.21.1 |
+6
Same product
golang: all recordsOther highest-scoring records for the same primary product.
- CVE-2018-7187The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used, does not validate the import path (get/vcs.go only…54Plan
- CVE-2018-16873In Go before 1.10.6 and 1.11.x before 1.11.3, the "go get" command is vulnerable to remote code execution when executed with the -u flag…52Plan
- CVE-2021-38297Go before 1.16.9 and 1.17.x before 1.17.2 has a Buffer Overflow via large arguments in a function invocation from a WASM module, when…42Plan
Published before and after this one in the same product
- ← EarlierCVE-2026-27137Mar 6, 2026 · Incorrect enforcement of email constraints in crypto/x50930Monitor
- ← EarlierCVE-2026-27138Mar 6, 2026 · Panic in name constraint checking for malformed certificates in crypto/x50923Monitor
- Later →CVE-2026-27142Mar 6, 2026 · URLs in meta content attribute actions are not escaped in html/template24Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Go standard library os | 1.25.8 | Vendor (CNA) |
| Go standard library os | 1.26.1 | Vendor (CNA) |
| alpine:go | 1.25.8-r0 · Alpine:v3.23 | Package registry (OSV) |
| debian:golang-1.25 | 1.25.8-1 · Debian:14 | Package registry (OSV) |
| debian:golang-1.26 | 1.26.1-1 · Debian:14 | Package registry (OSV) |
| Go:stdlib | 1.25.8 | Package registry (OSV) |
| Go:stdlib | 1.26.1 | Package registry (OSV) |
| opensuse:go1.25 | 1.25.8-150000.1.32.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:go1.25-openssl | 1.25.8-150600.13.15.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:go1.26 | 1.26.1-150000.1.6.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:go1.26-openssl | 1.26.1-150600.13.3.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| suse:go1.25 | 1.25.8-150000.1.32.1 · SUSE:Linux Enterprise Module for Development Tools 15 SP7 | Package registry (OSV) |
| suse:go1.25-openssl | 1.25.8-150000.1.18.1 · SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | Package registry (OSV) |
| suse:go1.25-openssl | 1.25.8-150600.13.15.1 · SUSE:Linux Enterprise Module for Development Tools 15 SP7 | Package registry (OSV) |
| suse:go1.26 | 1.26.1-150000.1.6.1 · SUSE:Linux Enterprise Module for Development Tools 15 SP7 | Package registry (OSV) |
| suse:go1.26-openssl | 1.26.1-150600.13.3.1 · SUSE:Linux Enterprise Module for Development Tools 15 SP7 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
- Miloslav TrmačRed Hat
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
- CVE-2026-3381032 days apartCase-sensitive excludedSubtrees name constraints cause Auth Bypass in crypto/x50932Monitor
Not on record for this CVE: EPSS history · patch commit or PR link · public bounty program.
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- low · data can be read
- Integrity
- none
- Availability
- none
- Attack vector
- Local
- Attack complexity
- High
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- Low
- Integrity impact
- None
- Availability impact
- None
Weakness class (CWE)
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
nvd-secondary
Root cause
A user-supplied file name is joined with the allowed directory, but the result is never checked to confirm it is still inside that directory.
The bug in code
The whole CWE-22 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
const file = path.join(ROOT, req.query.name);
res.sendFile(file);Fixed
const file = path.resolve(ROOT, req.query.name);
if (!file.startsWith(ROOT + path.sep)) {
return res.sendStatus(400);
}
res.sendFile(file);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Path TraversalCAPEC-126likelihood: High · Very High
- Using Slashes and URL Encoding Combined to Bypass Validation LogicCAPEC-64likelihood: High · High
- Manipulating Web Input to File System CallsCAPEC-76likelihood: High · Very High
- Using Escaped Slashes in Alternate EncodingCAPEC-78likelihood: High · High
- Using Slashes in Alternate EncodingCAPEC-79likelihood: High · High
ATT&CK techniques
—
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (3 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.