CVE-2026-39822
published 2026-07-08CVE-2026-39822: On Unix systems, opening a file in an os.Root improperly follows symlinks to locations outside of the Root when the final path component of the a path is a…
PriorityP342high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.23%
14.0th percentile
On Unix systems, opening a file in an os.Root improperly follows symlinks to locations outside of the Root when the final path component of the a path is a symbolic link and the path ends in /. For example, 'root.Open("symlink/")' will open "symlink" even when "symlink" is a symbolic link pointing outside of the root.
Affected
17 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| advanced-cluster-security | rhacs-main-rhel8 | — | — |
| advanced-cluster-security | rhacs-main-rhel9 | — | — |
| buildah_project | buildah | — | — |
| go-toolset_rhel8 | golang | — | — |
| go_standard_library | os | < 1.25.12 | 1.25.12 |
| go_standard_library | os | >= 1.26.0-0 < 1.26.5 | 1.26.5 |
| go_standard_library | os | >= 1.27.0-0 < 1.27.0-rc.2 | 1.27.0-rc.2 |
| golang | go | < 1.25.12 | 1.25.12 |
| golang | go | — | — |
| golang | go | >= 1.26.0 < 1.26.5 | 1.26.5 |
| podman_project | podman | — | — |
| quay | quay-rhel8 | — | — |
| quay | quay-rhel9 | — | — |
| redhat | openshift | — | — |
| rh-osbs | openshift-golang-builder | — | — |
| rhacm2 | thanos-rhel9 | — | — |
| rhceph | grafana-rhel9 | — | — |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
VulDB
Go standard library os up to 1.25.11/1.26.4 Root Open symlink (Nessus ID 325627)
vuldb·2026-07-08·CVSS 7.8
CVE-2026-39822 [HIGH] Go standard library os up to 1.25.11/1.26.4 Root Open symlink (Nessus ID 325627)
A vulnerability marked as problematic has been reported in Go standard library os up to 1.25.11/1.26.4. This issue affects the function Open of the component Root. The manipulation leads to symlink following.
This vulnerability is traded as CVE-2026-39822. An attack has to be approached locally. There is no exploit available.
GHSA
On Unix systems, opening a file in an os.Root improperly follows symlinks to locations outside of the Root when the final path component of the a path is a symbolic link and the path ends in /.
ghsa_unreviewed·2026-07-08
CVE-2026-39822 [HIGH] CWE-61 On Unix systems, opening a file in an os.Root improperly follows symlinks to locations outside of the Root when the final path component of the a path is a symbolic link and the path ends in /.
On Unix systems, opening a file in an os.Root improperly follows symlinks to locations outside of the Root when the final path component of the a path is a symbolic link and the path ends in /. For example, 'root.Open("symlink/")' will open "symlink" even when "symlink" is a symbolic link pointing outside of the root.
Red Hat
os: golang: Go os.Root: Symlink following vulnerability allows directory traversal
vendor_redhat·2026-07-08·CVSS 7.8
CVE-2026-39822 [HIGH] CWE-59 os: golang: Go os.Root: Symlink following vulnerability allows directory traversal
os: golang: Go os.Root: Symlink following vulnerability allows directory traversal
On Unix systems, opening a file in an os.Root improperly follows symlinks to locations outside of the Root when the final path component of the a path is a symbolic link and the path ends in /. For example, 'root.Open("symlink/")' will open "symlink" even when "symlink" is a symbolic link pointing outside of the root.
A flaw was found in the `os.Root` functionality of Go on Unix systems. This vulnerability allows an attacker to bypass intended directory restrictions by crafting a path that ends with a symbolic link and a trailing slash. When a file is opened in `os.Root` with such a path, the symbolic link is improperly followed, potentially leading to access to locations outside of the defined root direct
No detection rules found.
No public exploits indexed.
2026-07-08
Published