GO-2026-4403

Improper access to parent directory of root in os

At a glance

Published
Updated
CVE
CVE-2025-22873
Aliases
BIT-golang-2025-22873

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.

Affected packages

PackageVersions
Go · stdlibintroduced 0, fixed 1.23.9, introduced 1.24.0-0, fixed 1.24.3

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database