3.8Low

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

Go standard library os Published: (9 months ago)

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.

Weakness (CWE): CWE-23

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Go standard library os < 1.23.9, 1.24.0-0 – < 1.24.3
golang go 1.24.0 – < 1.24.3

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* ≥ 1.24.0 < 1.24.3