CVE-2025-22873
JSON

3.8low

Improper access to parent directory of root in os

Severity
3.8low CVSS:3.1 by CISA-ADP
Exploit likelihood
0.21% (higher than 7% of CVEs)
Published
Last changed
Assigned by
Go
Also known as
GO-2026-4403BIT-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

Product or packageVersionsReported by
osbefore 1.23.9, from 1.24.0-0 before 1.24.3CVE List
stdlib (Go)before 1.23.9, from 1.24.0-0 before 1.24.3Go Vulnerability Database
golang gofrom 1.24.0 before 1.24.3NVD
golang (Bitnami)before 1.23.9, from 1.24.0-0 before 1.24.3Bitnami Vulnerability Database

All scores

CISA-ADP3.8low CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
Bitnami Vulnerability Databaselow rating

Classification

CWE-23

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Fue posible acceder de forma indebida al directorio padre de un os.Root al abrir un nombre de archivo que termina en '../'. Por ejemplo, Root.Open('../') abrirĂ­a el directorio padre del Root. Este escape solo permite abrir el propio directorio padre, no los ancestros del padre ni los archivos contenidos dentro del padre.

References

https://go.dev/cl/670036fix, patch, product
https://go.dev/issue/73555advisory, issue-tracking, report, vendor-advisory
https://groups.google.com/g/golang-announce/c/UZoIkUT367A/m/5WDxKizJAQAJdiscussion, mailing-list, release-notes, web
https://pkg.go.dev/vuln/GO-2026-4403advisory, issue-tracking, vendor-advisory
http://www.openwall.com/lists/oss-security/2025/05/06/2advisory, mailing-list, third-party-advisory
https://nvd.nist.gov/vuln/detail/CVE-2025-22873web

Related

Sources

SourceRecordLicence
CVE ListCVE-2025-22873 changed 2026-02-05CVE Terms of Use
Go Vulnerability DatabaseGO-2026-4403 changed 2026-05-15CC-BY-4.0
NVDCVE-2025-22873 changed 2026-11-19Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2025-22873 changed 2026-09-08Apache-2.0