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.
Problem types
CWE-23: Relative Path Traversal
Product status
Any version before 1.23.9
1.24.0-0 (semver) before 1.24.3
Credits
Dan Sebastian Thrane of SDU eScience Center
References
www.openwall.com/lists/oss-security/2025/05/06/2
groups.google.com/...g-announce/c/UZoIkUT367A/m/5WDxKizJAQAJ