CVE-2025-22873: Improper access to parent directory of root in os
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
Remediation
Patch Available
Event History
Frequently Asked Questions
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.
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.
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.
What type of vulnerability is CVE-2025-22873?
CVE-2025-22873 is an improper access control vulnerability allowing unintended access to parent directories.
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.