CVE-2026-27139: FileInfo can escape from a Root in os

Published Mar 6, 2026
·
Updated

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.

Affected Software

3 affected components
Golang Go<1.25.8
Golang Go=1.26.0
IBM IBM® Db2® on Cloud Pak for Data and Db2 Warehouse on Cloud Pak for Data<=v4.8 v5.0v5.1v5.2v5.3

Event History

Mar 6, 2026
CVE Published
via MITRE·09:28 PM
Data Sourced
via MITRE·09:28 PM
DescriptionWeakness
Data Sourced
via NVD·10:16 PM
DescriptionSeverityWeaknessAffected Software
Jun 19, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-27139?

CVE-2026-27139 has been rated as a medium severity vulnerability.

2

How does CVE-2026-27139 affect my application?

CVE-2026-27139 allows an attacker to read metadata of files outside the specified Root directory on Unix platforms.

3

Which versions of Golang are affected by CVE-2026-27139?

CVE-2026-27139 affects Golang versions up to 1.25.8 and version 1.26.0.

4

How do I fix CVE-2026-27139?

To fix CVE-2026-27139, update your Golang installation to a version later than 1.26.0.

5

What mitigation strategies can I employ for CVE-2026-27139?

Restrict directory permissions and validate file paths to mitigate the impact of CVE-2026-27139.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203