CVE-2025-22873

Improper access to parent directory of root in os

State
Published
Severity
3.8 Low
Published
Feb 4, 2026
Updated
Feb 5, 2026
Reserved
Jan 8, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.13.8 LowCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:NCISA-ADP

Weaknesses

  • CWE-23 Relative Path Traversal

Affected Products

ProductVersions
osGo standard library
  • before 1.23.9Affected
  • 1.24.0-0 to before 1.24.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.