What’s Vulnerable › Vulnerabilities

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

Description

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 products

How to fix

Upgrade to a fixed version: Go 1.23.9, 1.24.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-22873 or the next vulnerability affects your stack