CVE-2025-22873: Improper access to parent directory of root in os

Published May 6, 2025
·
Updated

It was possible to improperly access the parent directory of an os.Root by opening a filename ending in "../". For example, Root.Open("../") would open the parent directory of the Root. This escape only permits opening the parent directory itself, not ancestors of the parent or files contained within the parent.

Affected Software

3 affected components
golang/go
Golang Go<1.23.9
Golang Go>=1.24.0<1.24.3

Remediation

Event History

Feb 4, 2026
CVE Published
via MITRE·11:05 PM
Data Sourced
via MITRE·11:05 PM
DescriptionWeakness
Data Sourced
via NVD·11:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
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-2025-22873?

CVE-2025-22873 has been classified as a moderate severity vulnerability due to the risk of unauthorized access to parent directories.

2

How do I fix CVE-2025-22873?

To fix CVE-2025-22873, update your Golang version to 1.24.0 or later, ensuring the removal of the directory traversal vulnerability.

3

Who is affected by CVE-2025-22873?

CVE-2025-22873 affects all versions of Golang from 1.23.9 up to, but not including, 1.24.0.

4

What type of vulnerability is CVE-2025-22873?

CVE-2025-22873 is an improper access control vulnerability allowing unintended access to parent directories.

5

What can an attacker accomplish with CVE-2025-22873?

An attacker exploiting CVE-2025-22873 could open the parent directory of an os.Root, potentially leading to further information disclosure.

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