CVE-2025-22873

published 4 Feb 2026 · updated 19 Nov 2026

Improper access to parent directory of root in os

3.8LowCVSS 3.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.23.9 and 1.24.3.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go standard library<1.23.9, >=1.24.0-0 <1.24.31.23.9, 1.24.3
golanggo>=1.24.0 <1.24.31.24.3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-22873 severity on Zeptric[![CVE-2025-22873](https://zeptric.io/badge/cve/CVE-2025-22873.svg)](https://zeptric.io/cve/CVE-2025-22873)