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

- Severity: Low 3.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2026-02-04T22:42:26.000Z
- Modified: 2026-11-19T17:48:00.663Z
- Also known as: GO-2026-4403, BIT-GOLANG-2025-22873
- Related: CGA-hm3h-gpf5-pcpj, RHSA-2026:7291, RHSA-2026:7385
- Weaknesses: CWE-23
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- os: before 1.23.9; from 1.24.0-0 before 1.24.3
- stdlib (Go): before 1.23.9; from 1.24.0-0 before 1.24.3
- golang go: from 1.24.0 before 1.24.3
- golang (Bitnami): before 1.23.9; from 1.24.0-0 before 1.24.3

## Every score

- CISA-ADP: CVSS:3.1 3.8 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N`
- Bitnami Vulnerability Database: rating Low

## References

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

## Sources

- CVE List: [CVE-2025-22873](https://www.cve.org/CVERecord?id=CVE-2025-22873), CVE Terms of Use, modified 2026-02-05
- Go Vulnerability Database: [GO-2026-4403](https://pkg.go.dev/vuln/GO-2026-4403), CC-BY-4.0, modified 2026-05-15
- NVD: [CVE-2025-22873](https://nvd.nist.gov/vuln/detail/CVE-2025-22873), Public domain, modified 2026-11-19
- Bitnami Vulnerability Database: [BIT-GOLANG-2025-22873](https://osv.dev/vulnerability/BIT-GOLANG-2025-22873), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-22873 · Whole record: https://cve.day/CVE-2025-22873.json · Rebuilt by cve.day 2026-11-25T22:59:11.053Z
