CVEfocus › CVE database › CVE-2026-39822

CVE-2026-39822Root escape via symlink plus trailing slash in os

CVSS 7.8 HighEPSS 0.2% (higher than 5% of CVEs)Published 2026-07-08Updated 2026-07-08Assigner: Go

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.

CWE-61

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

81Fixed
21Fix pending
15Under investigation
3Will not fix
25Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04golang-1.23Under investigationUBUNTU-CVE-2026-39822
Ubuntu 26.04golang-1.24Under investigationUBUNTU-CVE-2026-39822
Ubuntu 26.04golang-1.25Fix pendingUBUNTU-CVE-2026-39822
Ubuntu 25.10golang-1.23Will 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.10golang-1.24Will 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.10golang-1.25Will 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.04golang-1.21Under investigationUBUNTU-CVE-2026-39822
Ubuntu 24.04golang-1.22Under investigationUBUNTU-CVE-2026-39822
Ubuntu 24.04golang-1.23Under investigationUBUNTU-CVE-2026-39822
Ubuntu 24.04golang-1.24Under investigationUBUNTU-CVE-2026-39822
Ubuntu 24.04golang-1.25Under investigationUBUNTU-CVE-2026-39822
Ubuntu 22.04golang-1.13Fix pendingUBUNTU-CVE-2026-39822
Ubuntu 22.04golang-1.17Under investigationUBUNTU-CVE-2026-39822
Ubuntu 22.04golang-1.18Under investigationUBUNTU-CVE-2026-39822
Ubuntu 22.04golang-1.20Under investigationUBUNTU-CVE-2026-39822
Ubuntu 22.04golang-1.21Under investigationUBUNTU-CVE-2026-39822
Ubuntu 22.04golang-1.22Under investigationUBUNTU-CVE-2026-39822
Ubuntu 22.04golang-1.23Under investigationUBUNTU-CVE-2026-39822
Ubuntu 22.04golang-1.24Under investigationUBUNTU-CVE-2026-39822
Ubuntu 22.04golang-1.25Under investigationUBUNTU-CVE-2026-39822
Ubuntu 20.04golang-1.13Fix pendingUBUNTU-CVE-2026-39822
Ubuntu 20.04golang-1.14Fix pendingUBUNTU-CVE-2026-39822
Ubuntu 20.04golang-1.16Fix pendingUBUNTU-CVE-2026-39822
Ubuntu 20.04golang-1.18Fix pendingUBUNTU-CVE-2026-39822
Ubuntu 20.04golang-1.20Fix pendingUBUNTU-CVE-2026-39822
Ubuntu 20.04golang-1.21Fix pendingUBUNTU-CVE-2026-39822
Ubuntu 20.04golang-1.22Fix pendingUBUNTU-CVE-2026-39822
Ubuntu 18.04golang-1.10Fix pendingUBUNTU-CVE-2026-39822
Ubuntu 18.04golang-1.13Fix pendingUBUNTU-CVE-2026-39822
Ubuntu 18.04golang-1.16Fix pendingUBUNTU-CVE-2026-39822
Ubuntu 18.04golang-1.18Fix pendingUBUNTU-CVE-2026-39822
Ubuntu 18.04golang-1.8Fix pendingUBUNTU-CVE-2026-39822
Ubuntu 18.04golang-1.9Fix pendingUBUNTU-CVE-2026-39822
Ubuntu 16.04golang-1.10Fix pendingUBUNTU-CVE-2026-39822
Ubuntu 16.04golang-1.13Fix pendingUBUNTU-CVE-2026-39822
Ubuntu 16.04golang-1.18Fix pendingUBUNTU-CVE-2026-39822
Ubuntu 16.04golang-1.6Fix pendingUBUNTU-CVE-2026-39822
Ubuntu 14.04golang-1.10Fix pendingUBUNTU-CVE-2026-39822
Debian 14golang-1.26Fixed1.26.5-1DEBIAN-CVE-2026-39822
Debian 14golang-1.27Fixed1.27~rc2-1DEBIAN-CVE-2026-39822
Debian 13golang-1.24Fix pendingDEBIAN-CVE-2026-39822
Red Hat Enterprise Linux 10buildahFixed2:1.43.1-4.el10_2RHSA-2026:38494
Red Hat Enterprise Linux 10buildah-testsFixed2:1.43.1-4.el10_2RHSA-2026:38494
Red Hat Enterprise Linux 10conmonNot affected
Red Hat Enterprise Linux 10go-toolsetFixed0:1.26.5-1.el10_2RHSA-2026:37436
Red Hat Enterprise Linux 10golangFixed0:1.26.5-1.el10_2RHSA-2026:37436
Red Hat Enterprise Linux 10golang-binFixed0:1.26.5-1.el10_2RHSA-2026:37436
Red Hat Enterprise Linux 10golang-docsFixed0:1.26.5-1.el10_2RHSA-2026:37436
Red Hat Enterprise Linux 10golang-miscFixed0:1.26.5-1.el10_2RHSA-2026:37436
Red Hat Enterprise Linux 10golang-raceFixed0:1.26.5-1.el10_2RHSA-2026:37436
Red Hat Enterprise Linux 10golang-srcFixed0:1.26.5-1.el10_2RHSA-2026:37436
Red Hat Enterprise Linux 10golang-testsFixed0:1.26.5-1.el10_2RHSA-2026:37436
Red Hat Enterprise Linux 10podmanFixed
Affected
7:5.8.2-5.el10_2RHSA-2026:38495
Red Hat Enterprise Linux 10podman-dockerFixed
Affected
7:5.8.2-5.el10_2RHSA-2026:38495
Red Hat Enterprise Linux 10podman-remoteFixed
Affected
7:5.8.2-5.el10_2RHSA-2026:38495
Red Hat Enterprise Linux 10podman-testsFixed
Affected
7:5.8.2-5.el10_2RHSA-2026:38495
Red Hat Enterprise Linux 10python3-awscrtNot affected
Red Hat Enterprise Linux 10skopeoNot affected
Red Hat Enterprise Linux 10skopeo-testsNot affected
Red Hat Enterprise Linux 10trustee-guest-componentsNot affected
Red Hat Enterprise Linux 10trustee-kbsNot affected
Red Hat Enterprise Linux 9buildahFixed2:1.43.1-4.el9_8RHSA-2026:38493
Red Hat Enterprise Linux 9buildah-testsFixed2:1.43.1-4.el9_8RHSA-2026:38493
Red Hat Enterprise Linux 9conmonNot affected
Red Hat Enterprise Linux 9containernetworking-pluginsNot affected
Red Hat Enterprise Linux 9go-toolsetFixed0:1.26.5-1.el9_8RHSA-2026:37435
Red Hat Enterprise Linux 9golangFixed0:1.26.5-1.el9_8RHSA-2026:37435
Red Hat Enterprise Linux 9golang-binFixed0:1.26.5-1.el9_8RHSA-2026:37435
Red Hat Enterprise Linux 9golang-docsFixed0:1.26.5-1.el9_8RHSA-2026:37435
Red Hat Enterprise Linux 9golang-github-cpuguy83-md2manNot affected
Red Hat Enterprise Linux 9golang-miscFixed0:1.26.5-1.el9_8RHSA-2026:37435
Red Hat Enterprise Linux 9golang-raceFixed0:1.26.5-1.el9_8RHSA-2026:37435
Red Hat Enterprise Linux 9golang-srcFixed0:1.26.5-1.el9_8RHSA-2026:37435
Red Hat Enterprise Linux 9golang-testsFixed0:1.26.5-1.el9_8RHSA-2026:37435
Red Hat Enterprise Linux 9oci-seccomp-bpf-hookNot affected
Red Hat Enterprise Linux 9podmanFixed6:5.8.2-5.el9_8RHSA-2026:38878
Red Hat Enterprise Linux 9podman-dockerFixed6:5.8.2-5.el9_8RHSA-2026:38878
Red Hat Enterprise Linux 9podman-pluginsFixed6:5.8.2-5.el9_8RHSA-2026:38878
Red Hat Enterprise Linux 9podman-remoteFixed6:5.8.2-5.el9_8RHSA-2026:38878
Red Hat Enterprise Linux 9podman-testsFixed6:5.8.2-5.el9_8RHSA-2026:38878
Red Hat Enterprise Linux 9python3-awscrtNot affected
Red Hat Enterprise Linux 9runcNot affected
Red Hat Enterprise Linux 9skopeoNot affected
Red Hat Enterprise Linux 9skopeo-testsNot affected
Red Hat Enterprise Linux 9trustee-guest-componentsNot affected
Red Hat Enterprise Linux 8conmonNot affected
Red Hat Enterprise Linux 8containernetworking-pluginsNot affected
Red Hat Enterprise Linux 8containers-commonNot affected
Red Hat Enterprise Linux 8delveFixed0:1.26.1-1.module+el8.10.0+24516+40554724RHSA-2026:38995
Red Hat Enterprise Linux 8go-toolsetFixed0:1.26.5-1.module+el8.10.0+24506+6809f2d9RHSA-2026:38995
Red Hat Enterprise Linux 8golangFixed0:1.26.5-1.module+el8.10.0+24506+6809f2d9RHSA-2026:38995
Red Hat Enterprise Linux 8golang-binFixed0:1.26.5-1.module+el8.10.0+24506+6809f2d9RHSA-2026:38995
Red Hat Enterprise Linux 8golang-docsFixed0:1.26.5-1.module+el8.10.0+24506+6809f2d9RHSA-2026:38995
Red Hat Enterprise Linux 8golang-miscFixed0:1.26.5-1.module+el8.10.0+24506+6809f2d9RHSA-2026:38995
Red Hat Enterprise Linux 8golang-raceFixed0:1.26.5-1.module+el8.10.0+24506+6809f2d9RHSA-2026:38995
Red Hat Enterprise Linux 8golang-srcFixed0:1.26.5-1.module+el8.10.0+24506+6809f2d9RHSA-2026:38995
Red Hat Enterprise Linux 8golang-testsFixed0:1.26.5-1.module+el8.10.0+24506+6809f2d9RHSA-2026:38995
Red Hat Enterprise Linux 8oci-seccomp-bpf-hookNot affected
Red Hat Enterprise Linux 8rhcNot affected
Red Hat Enterprise Linux 8runcNot affected
Red Hat Enterprise Linux 8skopeoNot affected
Red Hat Enterprise Linux 8skopeo-testsNot affected
Red Hat Enterprise Linux 7rhcNot affected
Red Hat Enterprise Linux 7rhc-worker-scriptNot affected
AlmaLinux 10buildahFixed2:1.43.1-4.el10_2ALSA-2026:38494
AlmaLinux 10buildah-testsFixed2:1.43.1-4.el10_2ALSA-2026:38494
AlmaLinux 10golang-docsFixed1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux 10golang-miscFixed1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux 10golang-srcFixed1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux 10golang-testsFixed1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux 10podman-dockerFixed7:5.8.2-5.el10_2.alma.1ALSA-2026:38495
AlmaLinux 9buildahFixed2:1.43.1-4.el9_8ALSA-2026:38493
AlmaLinux 9buildah-testsFixed2:1.43.1-4.el9_8ALSA-2026:38493
AlmaLinux 9go-toolsetFixed1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux 9golangFixed1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux 9golang-binFixed1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux 9golang-docsFixed1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux 9golang-miscFixed1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux 9golang-raceFixed1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux 9golang-srcFixed1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux 9golang-testsFixed1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux 9podmanFixed6:5.8.2-5.el9_8ALSA-2026:38878
AlmaLinux 9podman-dockerFixed6:5.8.2-5.el9_8ALSA-2026:38878
AlmaLinux 9podman-pluginsFixed6:5.8.2-5.el9_8ALSA-2026:38878
AlmaLinux 9podman-remoteFixed6:5.8.2-5.el9_8ALSA-2026:38878
AlmaLinux 9podman-testsFixed6:5.8.2-5.el9_8ALSA-2026:38878
AlmaLinux 8delveFixed1.26.1-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux 8go-toolsetFixed1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux 8golangFixed1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux 8golang-binFixed1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux 8golang-docsFixed1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux 8golang-miscFixed1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux 8golang-raceFixed1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux 8golang-srcFixed1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux 8golang-testsFixed1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
Rocky Linux 10buildahFixed2:1.43.1-4.el10_2RLSA-2026:38494
Rocky Linux 10golangFixed0:1.26.5-1.el10_2RLSA-2026:37436
Rocky Linux 10podmanFixed7:5.8.2-5.el10_2RLSA-2026:38495
Rocky Linux 9buildahFixed2:1.43.1-4.el9_8RLSA-2026:38493
Rocky Linux 9golangFixed0:1.26.5-1.el9_8RLSA-2026:37435
Rocky Linux 9podmanFixed6:5.8.2-5.el9_8RLSA-2026:38878
Rocky Linux 8delveFixed0:1.26.1-1.module+el8.10.0+40244+e7cb3ff8RLSA-2026:38995
Rocky Linux 8golangFixed0:1.26.5-1.module+el8.10.0+40244+e7cb3ff8RLSA-2026:38995
Alpine Linux 3.24goFixed1.26.8-r0ALPINE-CVE-2026-39822
Go librarystdlibFixed1.27.0-rc.2GO-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.

References

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.