GO-2026-4403

Improper access to parent directory of root in os

En bref

Publiée
Mise à jour
CVE
CVE-2025-22873
Alias
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.

Paquets affectés

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

Références

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database