CVSS 3.1
7.8 highCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HHigh (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.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hstdlib (Go): fixed in 1.25.12, 1.26.5, 1.27.0-rc.2Explain 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.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Go standard library os | before 1.25.12 |
| Go standard library os | from 1.26.0-0 before 1.26.5 |
| Go standard library os | from 1.27.0-0 before 1.27.0-rc.2 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GO-2026-4970 | Go | stdlib | <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 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 13 | golang-1.24 | no fix listed | DEBIAN-CVE-2026-39822 |
| Debian | 14 | golang-1.26 | 1.26.5-1 | DEBIAN-CVE-2026-39822 |
| Debian | 14 | golang-1.27 | 1.27~rc2-1 | DEBIAN-CVE-2026-39822 |
| Ubuntu | 14.04:LTS | golang-1.10 | no fix listed | UBUNTU-CVE-2026-39822 |
| Ubuntu | 16.04:LTS | golang-1.6, golang-1.10 | no fix listed | UBUNTU-CVE-2026-39822 |
| Ubuntu | 18.04:LTS | golang-1.8, golang-1.9, golang-1.10 | no fix listed | UBUNTU-CVE-2026-39822 |
| Ubuntu | 20.04:LTS | golang-1.13, golang-1.14, golang-1.18 and 3 more | no fix listed | UBUNTU-CVE-2026-39822 |
| Ubuntu | 22.04:LTS | golang-1.17, golang-1.18, golang-1.20 and 5 more | no fix listed | UBUNTU-CVE-2026-39822 |
| Ubuntu | 24.04:LTS | golang-1.21, golang-1.22, golang-1.23 and 2 more | no fix listed | UBUNTU-CVE-2026-39822 |
| Ubuntu | 25.10, 26.04:LTS | golang-1.23, golang-1.24, golang-1.25 | no fix listed | UBUNTU-CVE-2026-39822 |
| Ubuntu | Pro:16.04:LTS | golang-1.13, golang-1.18 | no fix listed | UBUNTU-CVE-2026-39822 |
| Ubuntu | Pro:18.04:LTS | golang-1.13, golang-1.16, golang-1.18 | no fix listed | UBUNTU-CVE-2026-39822 |
| Ubuntu | Pro:20.04:LTS | golang-1.16 | no fix listed | UBUNTU-CVE-2026-39822 |
| Ubuntu | Pro:22.04:LTS | golang-1.13 | no fix listed | UBUNTU-CVE-2026-39822 |
| SUSE | Linux 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 more | go1.25 | 1.25.12-150000.1.44.1 | SUSE-SU-2026:2817-1 |
| SUSE | Linux 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 more | go1.26 | 1.26.5-150000.1.18.1 | SUSE-SU-2026:2818-1 |
| SUSE | Linux 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 more | go1.25-openssl | 1.25.12-150000.1.27.1 | SUSE-SU-2026:3046-1 |
| SUSE | Linux 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 more | go1.26-openssl | 1.26.5-150000.1.12.1 | SUSE-SU-2026:3047-1 |
| SUSE | Linux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6 | go1.25-openssl | 1.25.12-150600.13.21.1 | SUSE-SU-2026:3151-1 |
| SUSE | Linux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6 | go1.26-openssl | 1.26.5-150600.13.9.1 | SUSE-SU-2026:3102-1 |
| SUSE | Linux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0 | go1.25 | 1.25.12-160000.1.1 | SUSE-SU-2026:22643-1 |
| SUSE | Linux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0 | go1.25-openssl | 1.25.12-160000.1.1 | SUSE-SU-2026:22638-1 |
| SUSE | Linux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0 | go1.26 | 1.26.5-160000.1.1 | SUSE-SU-2026:22656-1 |
| SUSE | Linux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0 | go1.26-openssl | 1.26.5-160000.1.1 | SUSE-SU-2026:22641-1 |
| openSUSE | Leap 16.0 | go1.25 | 1.25.12-160000.1.1 | openSUSE-SU-2026:21324-1 |
| openSUSE | Leap 16.0 | go1.25-openssl | 1.25.12-160000.1.1 | openSUSE-SU-2026:21319-1 |
| openSUSE | Leap 16.0 | go1.26 | 1.26.5-160000.1.1 | openSUSE-SU-2026:21341-1 |
| openSUSE | Leap 16.0 | go1.26-openssl | 1.26.5-160000.1.1 | openSUSE-SU-2026:21321-1 |
| openSUSE | Leap 16.0 | govulncheck-vulndb | 0.0.20260723T184607-160000.1.1 | openSUSE-SU-2026:21483-1 |
| openSUSE | Tumbleweed | go1.25 | 1.25.12-1.1 | openSUSE-SU-2026:11212-1 |
| openSUSE | Tumbleweed | go1.26 | 1.26.5-1.1 | openSUSE-SU-2026:11232-1 |
| openSUSE | Tumbleweed | loki | 3.7.4-1.1 | openSUSE-SU-2026:11393-1 |
| AlmaLinux | 8 | delve | 1.26.1-1.module_el8.10.0+4223+bd807c2e | ALSA-2026:38995 |
| AlmaLinux | 8 | golang, go-toolset, golang-bin and 5 more | 1.26.5-1.module_el8.10.0+4223+bd807c2e | ALSA-2026:38995 |
| AlmaLinux | 9 | buildah, buildah-tests | 2:1.43.1-4.el9_8 | ALSA-2026:38493 |
| AlmaLinux | 9 | golang, go-toolset, golang-bin and 5 more | 1.26.5-1.el9_8 | ALSA-2026:37435 |
| AlmaLinux | 9 | podman, podman-tests, podman-docker and 2 more | 6:5.8.2-5.el9_8 | ALSA-2026:38878 |
| AlmaLinux | 10 | buildah, buildah-tests | 2:1.43.1-4.el10_2 | ALSA-2026:38494 |
| AlmaLinux | 10 | golang-src, golang-docs, golang-misc and 1 more | 1.26.5-1.el10_2.alma.1 | ALSA-2026:37436 |
| AlmaLinux | 10 | podman-docker | 7:5.8.2-5.el10_2.alma.1 | ALSA-2026:38495 |
| Rocky Linux | 8 | delve | 0:1.26.1-1.module+el8.10.0+40244+e7cb3ff8 | RLSA-2026:38995 |
| Rocky Linux | 8 | golang | 0:1.26.5-1.module+el8.10.0+40244+e7cb3ff8 | RLSA-2026:38995 |
| Rocky Linux | 9 | buildah | 2:1.43.1-4.el9_8 | RLSA-2026:38493 |
| Rocky Linux | 9 | golang | 0:1.26.5-1.el9_8 | RLSA-2026:37435 |
| Rocky Linux | 9 | podman | 6:5.8.2-5.el9_8 | RLSA-2026:38878 |
| Rocky Linux | 10 | buildah | 2:1.43.1-4.el10_2 | RLSA-2026:38494 |
| Rocky Linux | 10 | golang | 0:1.26.5-1.el10_2 | RLSA-2026:37436 |
| Rocky Linux | 10 | podman | 7:5.8.2-5.el10_2 | RLSA-2026:38495 |
| Alpine | v3.24 | go | 1.26.8-r0 | ALPINE-CVE-2026-39822 |
| Azure Linux | 3 | golang | 1.25.12-1 | AZL-92303 |
| Azure Linux | 3 | golang | 1.26.5-1 | AZL-92309 |
| Alpaquita | 23, 25 | go | 1.25.12-r0 | BELL-CVE-2026-39822 |
| Alpaquita | stream | go | 1.26.5-r0 | BELL-CVE-2026-39822 |
| BellSoft Hardened Containers | 23, 25 | go | 1.25.12-r0 | BELL-CVE-2026-39822 |
| BellSoft Hardened Containers | stream | go | 1.26.5-r0 | BELL-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 rates this Important.
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`.
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.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | golang-0:1.26.5-1.el10_2 | Fixed 2026-07-09 | RHSA-2026:37436 |
| Red Hat Enterprise Linux 10 | buildah-2:1.43.1-4.el10_2 | Fixed 2026-07-13 | RHSA-2026:38494 |
| Red Hat Enterprise Linux 10.0 Extended Update Support | golang-0:1.26.5-1.el10_0 | Fixed 2026-08-03 | RHSA-2026:49702 |
| Red Hat Enterprise Linux 8 | go-toolset:rhel8-8100020260710105056.a3795dee | Fixed 2026-07-13 | RHSA-2026:38995 |
| Red Hat Enterprise Linux 9 | golang-0:1.26.5-1.el9_8 | Fixed 2026-07-09 | RHSA-2026:37435 |
| Red Hat Enterprise Linux 9 | buildah-2:1.43.1-4.el9_8 | Fixed 2026-07-13 | RHSA-2026:38493 |
| Red Hat Enterprise Linux 9 | podman-6:5.8.2-5.el9_8 | Fixed 2026-07-13 | RHSA-2026:38878 |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | golang-0:1.26.5-1.el9_2 | Fixed 2026-08-31 | RHSA-2026:61253 |
| Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions | golang-0:1.26.5-1.el9_4 | Fixed 2026-08-20 | RHSA-2026:57649 |
| Red Hat Enterprise Linux 9.6 Extended Update Support | golang-0:1.26.5-1.el9_6 | Fixed 2026-08-03 | RHSA-2026:49712 |
| Assisted Installer for Red Hat OpenShift Container Platform 2 | rhai/assisted-installer-rhel9 | Not affected | |
| Builds for Red Hat OpenShift | openshift-builds/openshift-builds-waiters-rhel9 | Not affected | |
| Compliance Operator | compliance/openshift-compliance-operator-bundle | Not affected | |
| Confidential Compute Attestation | build-of-trustee/trustee-rhel9-operator | Not affected | |
| Confidential Compute Attestation | openshift-sandboxed-containers/osc-monitor-rhel9 | Not affected | |
| Cryostat 4 | cryostat/cryostat-storage-rhel9 | Not affected | |
| Custom Metric Autoscaler operator for Red Hat Openshift | custom-metrics-autoscaler/custom-metrics-autoscaler-rhel9 | Not affected | |
| Deployment Validation Operator | dvo/deployment-validation-rhel8-operator | Not affected | |
| ExternalDNS Operator | edo/external-dns-rhel9 | Affected | |
| ExternalDNS Operator | edo/external-dns-rhel9-operator | Affected | |
| 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.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.