CVE-2026-39822Root escape via symlink plus trailing slash in os
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Go, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | golang-1.23 | Under investigation | UBUNTU-CVE-2026-39822 | |
| Ubuntu 26.04 | golang-1.24 | Under investigation | UBUNTU-CVE-2026-39822 | |
| Ubuntu 26.04 | golang-1.25 | Fix pending | UBUNTU-CVE-2026-39822 | |
| Ubuntu 25.10 | golang-1.23 | Will not fix Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of… | UBUNTU-CVE-2026-39822 | |
| Ubuntu 25.10 | golang-1.24 | Will not fix Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of… | UBUNTU-CVE-2026-39822 | |
| Ubuntu 25.10 | golang-1.25 | Will not fix Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of… | UBUNTU-CVE-2026-39822 | |
| Ubuntu 24.04 | golang-1.21 | Under investigation | UBUNTU-CVE-2026-39822 | |
| Ubuntu 24.04 | golang-1.22 | Under investigation | UBUNTU-CVE-2026-39822 | |
| Ubuntu 24.04 | golang-1.23 | Under investigation | UBUNTU-CVE-2026-39822 | |
| Ubuntu 24.04 | golang-1.24 | Under investigation | UBUNTU-CVE-2026-39822 | |
| Ubuntu 24.04 | golang-1.25 | Under investigation | UBUNTU-CVE-2026-39822 | |
| Ubuntu 22.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2026-39822 | |
| Ubuntu 22.04 | golang-1.17 | Under investigation | UBUNTU-CVE-2026-39822 | |
| Ubuntu 22.04 | golang-1.18 | Under investigation | UBUNTU-CVE-2026-39822 | |
| Ubuntu 22.04 | golang-1.20 | Under investigation | UBUNTU-CVE-2026-39822 | |
| Ubuntu 22.04 | golang-1.21 | Under investigation | UBUNTU-CVE-2026-39822 | |
| Ubuntu 22.04 | golang-1.22 | Under investigation | UBUNTU-CVE-2026-39822 | |
| Ubuntu 22.04 | golang-1.23 | Under investigation | UBUNTU-CVE-2026-39822 | |
| Ubuntu 22.04 | golang-1.24 | Under investigation | UBUNTU-CVE-2026-39822 | |
| Ubuntu 22.04 | golang-1.25 | Under investigation | UBUNTU-CVE-2026-39822 | |
| Ubuntu 20.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2026-39822 | |
| Ubuntu 20.04 | golang-1.14 | Fix pending | UBUNTU-CVE-2026-39822 | |
| Ubuntu 20.04 | golang-1.16 | Fix pending | UBUNTU-CVE-2026-39822 | |
| Ubuntu 20.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2026-39822 | |
| Ubuntu 20.04 | golang-1.20 | Fix pending | UBUNTU-CVE-2026-39822 | |
| Ubuntu 20.04 | golang-1.21 | Fix pending | UBUNTU-CVE-2026-39822 | |
| Ubuntu 20.04 | golang-1.22 | Fix pending | UBUNTU-CVE-2026-39822 | |
| Ubuntu 18.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2026-39822 | |
| Ubuntu 18.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2026-39822 | |
| Ubuntu 18.04 | golang-1.16 | Fix pending | UBUNTU-CVE-2026-39822 | |
| Ubuntu 18.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2026-39822 | |
| Ubuntu 18.04 | golang-1.8 | Fix pending | UBUNTU-CVE-2026-39822 | |
| Ubuntu 18.04 | golang-1.9 | Fix pending | UBUNTU-CVE-2026-39822 | |
| Ubuntu 16.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2026-39822 | |
| Ubuntu 16.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2026-39822 | |
| Ubuntu 16.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2026-39822 | |
| Ubuntu 16.04 | golang-1.6 | Fix pending | UBUNTU-CVE-2026-39822 | |
| Ubuntu 14.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2026-39822 | |
| Debian 14 | golang-1.26 | Fixed | 1.26.5-1 | DEBIAN-CVE-2026-39822 |
| Debian 14 | golang-1.27 | Fixed | 1.27~rc2-1 | DEBIAN-CVE-2026-39822 |
| Debian 13 | golang-1.24 | Fix pending | DEBIAN-CVE-2026-39822 | |
| Red Hat Enterprise Linux 10 | buildah | Fixed | 2:1.43.1-4.el10_2 | RHSA-2026:38494 |
| Red Hat Enterprise Linux 10 | buildah-tests | Fixed | 2:1.43.1-4.el10_2 | RHSA-2026:38494 |
| Red Hat Enterprise Linux 10 | conmon | Not affected | ||
| Red Hat Enterprise Linux 10 | go-toolset | Fixed | 0:1.26.5-1.el10_2 | RHSA-2026:37436 |
| Red Hat Enterprise Linux 10 | golang | Fixed | 0:1.26.5-1.el10_2 | RHSA-2026:37436 |
| Red Hat Enterprise Linux 10 | golang-bin | Fixed | 0:1.26.5-1.el10_2 | RHSA-2026:37436 |
| Red Hat Enterprise Linux 10 | golang-docs | Fixed | 0:1.26.5-1.el10_2 | RHSA-2026:37436 |
| Red Hat Enterprise Linux 10 | golang-misc | Fixed | 0:1.26.5-1.el10_2 | RHSA-2026:37436 |
| Red Hat Enterprise Linux 10 | golang-race | Fixed | 0:1.26.5-1.el10_2 | RHSA-2026:37436 |
| Red Hat Enterprise Linux 10 | golang-src | Fixed | 0:1.26.5-1.el10_2 | RHSA-2026:37436 |
| Red Hat Enterprise Linux 10 | golang-tests | Fixed | 0:1.26.5-1.el10_2 | RHSA-2026:37436 |
| Red Hat Enterprise Linux 10 | podman | Fixed Affected | 7:5.8.2-5.el10_2 | RHSA-2026:38495 |
| Red Hat Enterprise Linux 10 | podman-docker | Fixed Affected | 7:5.8.2-5.el10_2 | RHSA-2026:38495 |
| Red Hat Enterprise Linux 10 | podman-remote | Fixed Affected | 7:5.8.2-5.el10_2 | RHSA-2026:38495 |
| Red Hat Enterprise Linux 10 | podman-tests | Fixed Affected | 7:5.8.2-5.el10_2 | RHSA-2026:38495 |
| Red Hat Enterprise Linux 10 | python3-awscrt | Not affected | ||
| Red Hat Enterprise Linux 10 | skopeo | Not affected | ||
| Red Hat Enterprise Linux 10 | skopeo-tests | Not affected | ||
| Red Hat Enterprise Linux 10 | trustee-guest-components | Not affected | ||
| Red Hat Enterprise Linux 10 | trustee-kbs | Not affected | ||
| Red Hat Enterprise Linux 9 | buildah | Fixed | 2:1.43.1-4.el9_8 | RHSA-2026:38493 |
| Red Hat Enterprise Linux 9 | buildah-tests | Fixed | 2:1.43.1-4.el9_8 | RHSA-2026:38493 |
| Red Hat Enterprise Linux 9 | conmon | Not affected | ||
| Red Hat Enterprise Linux 9 | containernetworking-plugins | Not affected | ||
| Red Hat Enterprise Linux 9 | go-toolset | Fixed | 0:1.26.5-1.el9_8 | RHSA-2026:37435 |
| Red Hat Enterprise Linux 9 | golang | Fixed | 0:1.26.5-1.el9_8 | RHSA-2026:37435 |
| Red Hat Enterprise Linux 9 | golang-bin | Fixed | 0:1.26.5-1.el9_8 | RHSA-2026:37435 |
| Red Hat Enterprise Linux 9 | golang-docs | Fixed | 0:1.26.5-1.el9_8 | RHSA-2026:37435 |
| Red Hat Enterprise Linux 9 | golang-github-cpuguy83-md2man | Not affected | ||
| Red Hat Enterprise Linux 9 | golang-misc | Fixed | 0:1.26.5-1.el9_8 | RHSA-2026:37435 |
| Red Hat Enterprise Linux 9 | golang-race | Fixed | 0:1.26.5-1.el9_8 | RHSA-2026:37435 |
| Red Hat Enterprise Linux 9 | golang-src | Fixed | 0:1.26.5-1.el9_8 | RHSA-2026:37435 |
| Red Hat Enterprise Linux 9 | golang-tests | Fixed | 0:1.26.5-1.el9_8 | RHSA-2026:37435 |
| Red Hat Enterprise Linux 9 | oci-seccomp-bpf-hook | Not affected | ||
| Red Hat Enterprise Linux 9 | podman | Fixed | 6:5.8.2-5.el9_8 | RHSA-2026:38878 |
| Red Hat Enterprise Linux 9 | podman-docker | Fixed | 6:5.8.2-5.el9_8 | RHSA-2026:38878 |
| Red Hat Enterprise Linux 9 | podman-plugins | Fixed | 6:5.8.2-5.el9_8 | RHSA-2026:38878 |
| Red Hat Enterprise Linux 9 | podman-remote | Fixed | 6:5.8.2-5.el9_8 | RHSA-2026:38878 |
| Red Hat Enterprise Linux 9 | podman-tests | Fixed | 6:5.8.2-5.el9_8 | RHSA-2026:38878 |
| Red Hat Enterprise Linux 9 | python3-awscrt | Not affected | ||
| Red Hat Enterprise Linux 9 | runc | Not affected | ||
| Red Hat Enterprise Linux 9 | skopeo | Not affected | ||
| Red Hat Enterprise Linux 9 | skopeo-tests | Not affected | ||
| Red Hat Enterprise Linux 9 | trustee-guest-components | Not affected | ||
| Red Hat Enterprise Linux 8 | conmon | Not affected | ||
| Red Hat Enterprise Linux 8 | containernetworking-plugins | Not affected | ||
| Red Hat Enterprise Linux 8 | containers-common | Not affected | ||
| Red Hat Enterprise Linux 8 | delve | Fixed | 0:1.26.1-1.module+el8.10.0+24516+40554724 | RHSA-2026:38995 |
| Red Hat Enterprise Linux 8 | go-toolset | Fixed | 0:1.26.5-1.module+el8.10.0+24506+6809f2d9 | RHSA-2026:38995 |
| Red Hat Enterprise Linux 8 | golang | Fixed | 0:1.26.5-1.module+el8.10.0+24506+6809f2d9 | RHSA-2026:38995 |
| Red Hat Enterprise Linux 8 | golang-bin | Fixed | 0:1.26.5-1.module+el8.10.0+24506+6809f2d9 | RHSA-2026:38995 |
| Red Hat Enterprise Linux 8 | golang-docs | Fixed | 0:1.26.5-1.module+el8.10.0+24506+6809f2d9 | RHSA-2026:38995 |
| Red Hat Enterprise Linux 8 | golang-misc | Fixed | 0:1.26.5-1.module+el8.10.0+24506+6809f2d9 | RHSA-2026:38995 |
| Red Hat Enterprise Linux 8 | golang-race | Fixed | 0:1.26.5-1.module+el8.10.0+24506+6809f2d9 | RHSA-2026:38995 |
| Red Hat Enterprise Linux 8 | golang-src | Fixed | 0:1.26.5-1.module+el8.10.0+24506+6809f2d9 | RHSA-2026:38995 |
| Red Hat Enterprise Linux 8 | golang-tests | Fixed | 0:1.26.5-1.module+el8.10.0+24506+6809f2d9 | RHSA-2026:38995 |
| Red Hat Enterprise Linux 8 | oci-seccomp-bpf-hook | Not affected | ||
| Red Hat Enterprise Linux 8 | rhc | Not affected | ||
| Red Hat Enterprise Linux 8 | runc | Not affected | ||
| Red Hat Enterprise Linux 8 | skopeo | Not affected | ||
| Red Hat Enterprise Linux 8 | skopeo-tests | Not affected | ||
| Red Hat Enterprise Linux 7 | rhc | Not affected | ||
| Red Hat Enterprise Linux 7 | rhc-worker-script | Not affected | ||
| AlmaLinux 10 | buildah | Fixed | 2:1.43.1-4.el10_2 | ALSA-2026:38494 |
| AlmaLinux 10 | buildah-tests | Fixed | 2:1.43.1-4.el10_2 | ALSA-2026:38494 |
| AlmaLinux 10 | golang-docs | Fixed | 1.26.5-1.el10_2.alma.1 | ALSA-2026:37436 |
| AlmaLinux 10 | golang-misc | Fixed | 1.26.5-1.el10_2.alma.1 | ALSA-2026:37436 |
| AlmaLinux 10 | golang-src | Fixed | 1.26.5-1.el10_2.alma.1 | ALSA-2026:37436 |
| AlmaLinux 10 | golang-tests | Fixed | 1.26.5-1.el10_2.alma.1 | ALSA-2026:37436 |
| AlmaLinux 10 | podman-docker | Fixed | 7:5.8.2-5.el10_2.alma.1 | ALSA-2026:38495 |
| AlmaLinux 9 | buildah | Fixed | 2:1.43.1-4.el9_8 | ALSA-2026:38493 |
| AlmaLinux 9 | buildah-tests | Fixed | 2:1.43.1-4.el9_8 | ALSA-2026:38493 |
| AlmaLinux 9 | go-toolset | Fixed | 1.26.5-1.el9_8 | ALSA-2026:37435 |
| AlmaLinux 9 | golang | Fixed | 1.26.5-1.el9_8 | ALSA-2026:37435 |
| AlmaLinux 9 | golang-bin | Fixed | 1.26.5-1.el9_8 | ALSA-2026:37435 |
| AlmaLinux 9 | golang-docs | Fixed | 1.26.5-1.el9_8 | ALSA-2026:37435 |
| AlmaLinux 9 | golang-misc | Fixed | 1.26.5-1.el9_8 | ALSA-2026:37435 |
| AlmaLinux 9 | golang-race | Fixed | 1.26.5-1.el9_8 | ALSA-2026:37435 |
| AlmaLinux 9 | golang-src | Fixed | 1.26.5-1.el9_8 | ALSA-2026:37435 |
| AlmaLinux 9 | golang-tests | Fixed | 1.26.5-1.el9_8 | ALSA-2026:37435 |
| AlmaLinux 9 | podman | Fixed | 6:5.8.2-5.el9_8 | ALSA-2026:38878 |
| AlmaLinux 9 | podman-docker | Fixed | 6:5.8.2-5.el9_8 | ALSA-2026:38878 |
| AlmaLinux 9 | podman-plugins | Fixed | 6:5.8.2-5.el9_8 | ALSA-2026:38878 |
| AlmaLinux 9 | podman-remote | Fixed | 6:5.8.2-5.el9_8 | ALSA-2026:38878 |
| AlmaLinux 9 | podman-tests | Fixed | 6:5.8.2-5.el9_8 | ALSA-2026:38878 |
| AlmaLinux 8 | delve | Fixed | 1.26.1-1.module_el8.10.0+4223+bd807c2e | ALSA-2026:38995 |
| AlmaLinux 8 | go-toolset | Fixed | 1.26.5-1.module_el8.10.0+4223+bd807c2e | ALSA-2026:38995 |
| AlmaLinux 8 | golang | Fixed | 1.26.5-1.module_el8.10.0+4223+bd807c2e | ALSA-2026:38995 |
| AlmaLinux 8 | golang-bin | Fixed | 1.26.5-1.module_el8.10.0+4223+bd807c2e | ALSA-2026:38995 |
| AlmaLinux 8 | golang-docs | Fixed | 1.26.5-1.module_el8.10.0+4223+bd807c2e | ALSA-2026:38995 |
| AlmaLinux 8 | golang-misc | Fixed | 1.26.5-1.module_el8.10.0+4223+bd807c2e | ALSA-2026:38995 |
| AlmaLinux 8 | golang-race | Fixed | 1.26.5-1.module_el8.10.0+4223+bd807c2e | ALSA-2026:38995 |
| AlmaLinux 8 | golang-src | Fixed | 1.26.5-1.module_el8.10.0+4223+bd807c2e | ALSA-2026:38995 |
| AlmaLinux 8 | golang-tests | Fixed | 1.26.5-1.module_el8.10.0+4223+bd807c2e | ALSA-2026:38995 |
| Rocky Linux 10 | buildah | Fixed | 2:1.43.1-4.el10_2 | RLSA-2026:38494 |
| Rocky Linux 10 | golang | Fixed | 0:1.26.5-1.el10_2 | RLSA-2026:37436 |
| Rocky Linux 10 | podman | Fixed | 7:5.8.2-5.el10_2 | RLSA-2026:38495 |
| Rocky Linux 9 | buildah | Fixed | 2:1.43.1-4.el9_8 | RLSA-2026:38493 |
| Rocky Linux 9 | golang | Fixed | 0:1.26.5-1.el9_8 | RLSA-2026:37435 |
| Rocky Linux 9 | podman | Fixed | 6:5.8.2-5.el9_8 | RLSA-2026:38878 |
| Rocky Linux 8 | delve | Fixed | 0:1.26.1-1.module+el8.10.0+40244+e7cb3ff8 | RLSA-2026:38995 |
| Rocky Linux 8 | golang | Fixed | 0:1.26.5-1.module+el8.10.0+40244+e7cb3ff8 | RLSA-2026:38995 |
| Alpine Linux 3.24 | go | Fixed | 1.26.8-r0 | ALPINE-CVE-2026-39822 |
| Go library | stdlib | Fixed | 1.27.0-rc.2 | GO-2026-4970 |
What the vendor says
As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Go standard library os: affected: before 1.25.12, 1.26.0-0 to before 1.26.5, 1.27.0-0 to before 1.27.0-rc.2; fixed in
1.25.12,1.26.5,1.27.0-rc.2
References
- https://go.dev/issue/79005
- https://groups.google.com/g/golang-announce/c/OrmQE_Yp5Sc
- https://go.dev/cl/797880
- https://pkg.go.dev/vuln/GO-2026-4970
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.