# CVE-2025-22873: golang-1.24: It was possible to improperly access the parent directory of an os.Root by opening a filename ending in "../"

CVE-2025-22873 is fixed in 10 products on 1 platform, first by ALAS2023-2025-977, released May 21, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2025-22873
- Priority: Routine
- CVSS: 3.8 (low)
- EPSS: 0.0023
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: May 21, 2025

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | go1.24 opensuse-leap 15.6 | 1.24.4-150000.1.26.1 | [SUSE-SU-2025:01846-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-01846-1.md) | Jun 9, 2025 |
| Linux | go1.24 sles 15.6 | 1.24.4-150000.1.26.1 | [SUSE-SU-2025:01846-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-01846-1.md) | Jun 9, 2025 |
| Linux | go1.24 sles 15.7 | 1.24.4-150000.1.26.1 | [SUSE-SU-2025:01846-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-01846-1.md) | Jun 9, 2025 |
| Linux | golang amzn 2023 | 1.24.3-1.amzn2023.0.1 | [ALAS2023-2025-977](https://patchblox.com/security/data/fix/linux/alas2023-2025-977.md) | May 21, 2025 |
| Linux | golang-1.24 Debian 13.5 (trixie) | 1.24.4-1 | [DEBIAN-CVE-2025-22873](https://patchblox.com/security/data/fix/linux/debian-cve-2025-22873.md) | Feb 4, 2026 |
| Linux | golang-bin amzn 2023 | 1.24.3-1.amzn2023.0.1 | [ALAS2023-2025-977](https://patchblox.com/security/data/fix/linux/alas2023-2025-977.md) | May 21, 2025 |
| Linux | golang-docs amzn 2023 | 1.24.3-1.amzn2023.0.1 | [ALAS2023-2025-977](https://patchblox.com/security/data/fix/linux/alas2023-2025-977.md) | May 21, 2025 |
| Linux | golang-misc amzn 2023 | 1.24.3-1.amzn2023.0.1 | [ALAS2023-2025-977](https://patchblox.com/security/data/fix/linux/alas2023-2025-977.md) | May 21, 2025 |
| Linux | golang-shared amzn 2023 | 1.24.3-1.amzn2023.0.1 | [ALAS2023-2025-977](https://patchblox.com/security/data/fix/linux/alas2023-2025-977.md) | May 21, 2025 |
| Linux | golang-src amzn 2023 | 1.24.3-1.amzn2023.0.1 | [ALAS2023-2025-977](https://patchblox.com/security/data/fix/linux/alas2023-2025-977.md) | May 21, 2025 |
| Linux | golang-tests amzn 2023 | 1.24.3-1.amzn2023.0.1 | [ALAS2023-2025-977](https://patchblox.com/security/data/fix/linux/alas2023-2025-977.md) | May 21, 2025 |
| Linux | govulncheck-vulndb opensuse-leap 15.6 | 0.0.20260205T172317-150000.1.146.1 | [SUSE-SU-2026:0403-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0403-1.md) | Feb 6, 2026 |
| Linux | govulncheck-vulndb opensuse-leap 16.0 | 0.0.20260723T184607-160000.1.1 | [OPENSUSE-SU-2026:21483-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21483-1.md) | Jul 30, 2026 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
