cve.bz

CVE-2026-39822 golang go: UNIX Symbolic Link (Symlink) Following

7.8 highEPSS 0.2%Fix available

High (7.8) in golang go. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.25.12, 1.26.5, 1.27.0-rc.2.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 14th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-07-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-61 UNIX Symbolic Link (Symlink) Following
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-39822 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-39822?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-39822?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-39822 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go standard library osbefore 1.25.12
Go standard library osfrom 1.26.0-0 before 1.26.5
Go standard library osfrom 1.27.0-0 before 1.27.0-rc.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2026-4970Gostdlib<1.25.12
>=1.26.0-0 <1.26.5
>=1.27.0-0 <1.27.0-rc.2
1.25.12, 1.26.5, 1.27.0-rc.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13golang-1.24no fix listedDEBIAN-CVE-2026-39822
Debian14golang-1.261.26.5-1DEBIAN-CVE-2026-39822
Debian14golang-1.271.27~rc2-1DEBIAN-CVE-2026-39822
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2026-39822
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2026-39822
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2026-39822
Ubuntu20.04:LTSgolang-1.13, golang-1.14, golang-1.18 and 3 moreno fix listedUBUNTU-CVE-2026-39822
Ubuntu22.04:LTSgolang-1.17, golang-1.18, golang-1.20 and 5 moreno fix listedUBUNTU-CVE-2026-39822
Ubuntu24.04:LTSgolang-1.21, golang-1.22, golang-1.23 and 2 moreno fix listedUBUNTU-CVE-2026-39822
Ubuntu25.10, 26.04:LTSgolang-1.23, golang-1.24, golang-1.25no fix listedUBUNTU-CVE-2026-39822
UbuntuPro:16.04:LTSgolang-1.13, golang-1.18no fix listedUBUNTU-CVE-2026-39822
UbuntuPro:18.04:LTSgolang-1.13, golang-1.16, golang-1.18no fix listedUBUNTU-CVE-2026-39822
UbuntuPro:20.04:LTSgolang-1.16no fix listedUBUNTU-CVE-2026-39822
UbuntuPro:22.04:LTSgolang-1.13no fix listedUBUNTU-CVE-2026-39822
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morego1.251.25.12-150000.1.44.1SUSE-SU-2026:2817-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morego1.261.26.5-150000.1.18.1SUSE-SU-2026:2818-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morego1.25-openssl1.25.12-150000.1.27.1SUSE-SU-2026:3046-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morego1.26-openssl1.26.5-150000.1.12.1SUSE-SU-2026:3047-1
SUSELinux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6go1.25-openssl1.25.12-150600.13.21.1SUSE-SU-2026:3151-1
SUSELinux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6go1.26-openssl1.26.5-150600.13.9.1SUSE-SU-2026:3102-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.251.25.12-160000.1.1SUSE-SU-2026:22643-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.25-openssl1.25.12-160000.1.1SUSE-SU-2026:22638-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.261.26.5-160000.1.1SUSE-SU-2026:22656-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.26-openssl1.26.5-160000.1.1SUSE-SU-2026:22641-1
openSUSELeap 16.0go1.251.25.12-160000.1.1openSUSE-SU-2026:21324-1
openSUSELeap 16.0go1.25-openssl1.25.12-160000.1.1openSUSE-SU-2026:21319-1
openSUSELeap 16.0go1.261.26.5-160000.1.1openSUSE-SU-2026:21341-1
openSUSELeap 16.0go1.26-openssl1.26.5-160000.1.1openSUSE-SU-2026:21321-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1
openSUSETumbleweedgo1.251.25.12-1.1openSUSE-SU-2026:11212-1
openSUSETumbleweedgo1.261.26.5-1.1openSUSE-SU-2026:11232-1
openSUSETumbleweedloki3.7.4-1.1openSUSE-SU-2026:11393-1
AlmaLinux8delve1.26.1-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux8golang, go-toolset, golang-bin and 5 more1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux9buildah, buildah-tests2:1.43.1-4.el9_8ALSA-2026:38493
AlmaLinux9golang, go-toolset, golang-bin and 5 more1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux9podman, podman-tests, podman-docker and 2 more6:5.8.2-5.el9_8ALSA-2026:38878
AlmaLinux10buildah, buildah-tests2:1.43.1-4.el10_2ALSA-2026:38494
AlmaLinux10golang-src, golang-docs, golang-misc and 1 more1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux10podman-docker7:5.8.2-5.el10_2.alma.1ALSA-2026:38495
Rocky Linux8delve0:1.26.1-1.module+el8.10.0+40244+e7cb3ff8RLSA-2026:38995
Rocky Linux8golang0:1.26.5-1.module+el8.10.0+40244+e7cb3ff8RLSA-2026:38995
Rocky Linux9buildah2:1.43.1-4.el9_8RLSA-2026:38493
Rocky Linux9golang0:1.26.5-1.el9_8RLSA-2026:37435
Rocky Linux9podman6:5.8.2-5.el9_8RLSA-2026:38878
Rocky Linux10buildah2:1.43.1-4.el10_2RLSA-2026:38494
Rocky Linux10golang0:1.26.5-1.el10_2RLSA-2026:37436
Rocky Linux10podman7:5.8.2-5.el10_2RLSA-2026:38495
Alpinev3.24go1.26.8-r0ALPINE-CVE-2026-39822
Azure Linux3golang1.25.12-1AZL-92303
Azure Linux3golang1.26.5-1AZL-92309
Alpaquita23, 25go1.25.12-r0BELL-CVE-2026-39822
Alpaquitastreamgo1.26.5-r0BELL-CVE-2026-39822
BellSoft Hardened Containers23, 25go1.25.12-r0BELL-CVE-2026-39822
BellSoft Hardened Containersstreamgo1.26.5-r0BELL-CVE-2026-39822

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

A flaw was found in Go's os.Root implementation. On Unix systems, `os.Root.Open()` improperly follows symlinks to locations outside the root directory when the path ends with a trailing slash (e.g., root.Open("symlink/")). This is because `openat()` with `O_NOFOLLOW` does not prevent symlink resolution when the path has a trailing /. An attacker able to create symlinks within an os.Root directory could use this to read or write files outside the intended root. The os.Root API was introduced in Go 1.24. Go versions prior to 1.24 are not affected. This issue is fixed in Go 1.25.12 and Go 1.26.5.

The following symbols are affected:

* `OpenInRoot`: Opens a file or directory within an `os.Root`.

* `Root.Create`: Creates a file inside an `os.Root`.

* `Root.Open`: Opens a path relative to an `os.Root`.

* `Root.OpenFile`: Opens a file with specified flags and permissions inside an `os.Root`.

* `Root.OpenRoot`: Opens a sub-root directory from an `os.Root`.

* `Root.ReadFile`: Reads a file inside an `os.Root`.

* `Root.WriteFile`: Writes a file inside an `os.Root`.

Red Hat's mitigation

There is no mitigation for this issue other than updating the Go toolchain to Go 1.25.12 or Go 1.26.5. Programs compiled with Go >= 1.24 that do not use the os.Root API are not affected by this vulnerability.

The os.Root API was introduced in Go 1.24. Go versions prior to 1.24 are not affected.

This issue is fixed in Go 1.25.12 and Go 1.26.5.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10golang-0:1.26.5-1.el10_2Fixed 2026-07-09RHSA-2026:37436
Red Hat Enterprise Linux 10buildah-2:1.43.1-4.el10_2Fixed 2026-07-13RHSA-2026:38494
Red Hat Enterprise Linux 10.0 Extended Update Supportgolang-0:1.26.5-1.el10_0Fixed 2026-08-03RHSA-2026:49702
Red Hat Enterprise Linux 8go-toolset:rhel8-8100020260710105056.a3795deeFixed 2026-07-13RHSA-2026:38995
Red Hat Enterprise Linux 9golang-0:1.26.5-1.el9_8Fixed 2026-07-09RHSA-2026:37435
Red Hat Enterprise Linux 9buildah-2:1.43.1-4.el9_8Fixed 2026-07-13RHSA-2026:38493
Red Hat Enterprise Linux 9podman-6:5.8.2-5.el9_8Fixed 2026-07-13RHSA-2026:38878
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsgolang-0:1.26.5-1.el9_2Fixed 2026-08-31RHSA-2026:61253
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionsgolang-0:1.26.5-1.el9_4Fixed 2026-08-20RHSA-2026:57649
Red Hat Enterprise Linux 9.6 Extended Update Supportgolang-0:1.26.5-1.el9_6Fixed 2026-08-03RHSA-2026:49712
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-rhel9Not affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-waiters-rhel9Not affected
Compliance Operatorcompliance/openshift-compliance-operator-bundleNot affected
Confidential Compute Attestationbuild-of-trustee/trustee-rhel9-operatorNot affected
Confidential Compute Attestationopenshift-sandboxed-containers/osc-monitor-rhel9Not affected
Cryostat 4cryostat/cryostat-storage-rhel9Not affected
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-rhel9Not affected
Deployment Validation Operatordvo/deployment-validation-rhel8-operatorNot affected
ExternalDNS Operatoredo/external-dns-rhel9Affected
ExternalDNS Operatoredo/external-dns-rhel9-operatorAffected
240 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-39822.

Attack patterns (CAPEC)

  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON