{"id":"CVE-2025-22873","summary":"Improper access to parent directory of root in os","details":"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.","aliases":["BIT-golang-2025-22873","GO-2026-4403"],"modified":"2026-11-20T21:00:07.553032224Z","published":"2026-02-04T23:05:24.803Z","related":["SUSE-SU-2025:01551-1","SUSE-SU-2025:01846-1","SUSE-SU-2025:1551-1","SUSE-SU-2026:0403-1","openSUSE-SU-2025:15058-1","openSUSE-SU-2026:21483-1"],"database_specific":{"cna_assigner":"Go","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22873.json","unresolved_ranges":[{"extracted_events":[{"strategy":"StandardRange","range":[{"fixed":"1.23.9"},{"introduced":"1.24.0-0"},{"fixed":"1.24.3"}],"source":"AFFECTED_FIELD"}]}]},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2025/05/06/2"},{"type":"WEB","url":"https://go.dev/cl/670036"},{"type":"WEB","url":"https://go.dev/issue/73555"},{"type":"WEB","url":"https://groups.google.com/g/golang-announce/c/UZoIkUT367A/m/5WDxKizJAQAJ"},{"type":"WEB","url":"https://pkg.go.dev"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2026-4403"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22873.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22873"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/golang/go","events":[{"introduced":"3901409b5d0fb7c85a3e6730a59943cc93b2835c"},{"fixed":"34c8b14ca9f4096383d658fbd748322a993a2bd2"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"1.24.0"},{"fixed":"1.24.3"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*"}]}}],"versions":["go1.24.2","go1.24.1","go1.24.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22873.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N"}]}