Vulnerability · Published Jul 8, 2026 · Assigned by Go

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

High 7.8

In plain English

A high-severity security flaw in os from Go standard library. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.2%top 85.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10buildah2:1.43.1-4.el10_2ALSA-2026:38494
AlmaLinux:9buildah2:1.43.1-4.el9_8ALSA-2026:38493
AlmaLinux:10buildah-tests2:1.43.1-4.el10_2ALSA-2026:38494
AlmaLinux:9buildah-tests2:1.43.1-4.el9_8ALSA-2026:38493
AlmaLinux:8delve1.26.1-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:10go-toolset1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux:8go-toolset1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9go-toolset1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux:10golang1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux:8golang1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux:10golang-bin1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux:8golang-bin1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang-bin1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux:10golang-docs1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux:8golang-docs1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang-docs1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux:10golang-misc1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux:8golang-misc1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang-misc1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux:10golang-race1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux:8golang-race1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang-race1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux:10golang-src1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux:8golang-src1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang-src1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux:10golang-tests1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux:8golang-tests1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang-tests1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux:10podman7:5.8.2-5.el10_2.alma.1ALSA-2026:38495
AlmaLinux:9podman6:5.8.2-5.el9_8ALSA-2026:38878
AlmaLinux:10podman-docker7:5.8.2-5.el10_2.alma.1ALSA-2026:38495
AlmaLinux:9podman-docker6:5.8.2-5.el9_8ALSA-2026:38878
AlmaLinux:9podman-plugins6:5.8.2-5.el9_8ALSA-2026:38878
AlmaLinux:10podman-remote7:5.8.2-5.el10_2.alma.1ALSA-2026:38495
AlmaLinux:9podman-remote6:5.8.2-5.el9_8ALSA-2026:38878
AlmaLinux:10podman-tests7:5.8.2-5.el10_2.alma.1ALSA-2026:38495
AlmaLinux:9podman-tests6:5.8.2-5.el9_8ALSA-2026:38878
Alpine:v3.24go1.26.8-r0ALPINE-CVE-2026-39822
Debian:13golang-1.24no fix listedDEBIAN-CVE-2026-39822
Debian:14golang-1.261.26.5-1DEBIAN-CVE-2026-39822
Debian:14golang-1.271.27~rc2-1DEBIAN-CVE-2026-39822
Gostdlib1.25.12, 1.26.5, 1.27.0-rc.2GO-2026-4970
Rocky Linux:10buildah2:1.43.1-4.el10_2RLSA-2026:38494
Rocky Linux:9buildah2:1.43.1-4.el9_8RLSA-2026:38493
Rocky Linux:8delve0:1.26.1-1.module+el8.10.0+40244+e7cb3ff8RLSA-2026:38995
Rocky Linux:10golang0:1.26.5-1.el10_2RLSA-2026:37436
Rocky Linux:8golang0:1.26.5-1.module+el8.10.0+40244+e7cb3ff8RLSA-2026:38995
Rocky Linux:9golang0:1.26.5-1.el9_8RLSA-2026:37435
Rocky Linux:10podman7:5.8.2-5.el10_2RLSA-2026:38495
Rocky Linux:9podman6:5.8.2-5.el9_8RLSA-2026:38878
Ubuntu:22.04:LTSgolang-1.17no fix listedUBUNTU-CVE-2026-39822
Ubuntu:22.04:LTSgolang-1.18no fix listedUBUNTU-CVE-2026-39822
Ubuntu:22.04:LTSgolang-1.20no fix listedUBUNTU-CVE-2026-39822
Ubuntu:22.04:LTSgolang-1.21no fix listedUBUNTU-CVE-2026-39822
Ubuntu:24.04:LTSgolang-1.21no fix listedUBUNTU-CVE-2026-39822
Ubuntu:22.04:LTSgolang-1.22no fix listedUBUNTU-CVE-2026-39822
Ubuntu:24.04:LTSgolang-1.22no fix listedUBUNTU-CVE-2026-39822
Ubuntu:22.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2026-39822
Ubuntu:24.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2026-39822
Ubuntu:25.10golang-1.23no fix listedUBUNTU-CVE-2026-39822
Ubuntu:26.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2026-39822
Ubuntu:22.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2026-39822
Ubuntu:24.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2026-39822
Ubuntu:25.10golang-1.24no fix listedUBUNTU-CVE-2026-39822
Ubuntu:26.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2026-39822
Ubuntu:22.04:LTSgolang-1.25no fix listedUBUNTU-CVE-2026-39822
Ubuntu:24.04:LTSgolang-1.25no fix listedUBUNTU-CVE-2026-39822
Ubuntu:25.10golang-1.25no fix listedUBUNTU-CVE-2026-39822
Ubuntu:26.04:LTSgolang-1.25no fix listedUBUNTU-CVE-2026-39822

Affected products (as reported)

VendorProductVersions
Go standard library os 0 – before 1.25.121.26.0-0 – before 1.26.51.27.0-0 – before 1.27.0-rc.2

Weakness: CWE-61 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References