CVE-2026-39822
Public on
Last Modified:
Description
A flaw was found in the os.Root functionality of Go on Unix systems. This vulnerability allows an attacker to bypass intended directory restrictions by crafting a path that ends with a symbolic link and a trailing slash. When a file is opened in os.Root with such a path, the symbolic link is improperly followed, potentially leading to access to locations outside of the defined root directory. This could result in information disclosure or unauthorized file system access.
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 anos.Root.Root.Create: Creates a file inside anos.Root.Root.Open: Opens a path relative to anos.Root.Root.OpenFile: Opens a file with specified flags and permissions inside anos.Root.Root.OpenRoot: Opens a sub-root directory from anos.Root.Root.ReadFile: Reads a file inside anos.Root.Root.WriteFile: Writes a file inside anos.Root.
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.
Additional information
- This content is not included.Bugzilla 2498152: os: golang: Go os.Root: Symlink following vulnerability allows directory traversal
- Content from cwe.mitre.org is not included.CWE-59: Improper Link Resolution Before File Access ('Link Following')
External References
Content from www.cve.org is not included.https://www.cve.org/CVERecord?id=CVE-2026-39822
Content from nvd.nist.gov is not included.https://nvd.nist.gov/vuln/detail/CVE-2026-39822
Content from go.dev is not included.https://go.dev/cl/797880
Content from go.dev is not included.https://go.dev/issue/79005
Content from pkg.go.dev is not included.https://pkg.go.dev/vuln/GO-2026-4970
Affected Packages and Issued Red Hat Security Errata
Unless explicitly stated as not affected, all previous versions of packages in any minor update stream of a product listed here should be assumed vulnerable, although may not have been subject to full analysis.
| Products / Services | Components | State | Errata |
|---|---|---|---|
| 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 | |
| External Secrets Operator for Red Hat OpenShift | external-secrets-operator/external-secrets-rhel9 | Not affected | |
| Fence Agents Remediation Operator | workload-availability/fence-agents-remediation-rhel8-operator | Not affected | |
| File Integrity Operator | compliance/openshift-compliance-operator-bundle | Not affected | |
| Gatekeeper 3 | gatekeeper/gatekeeper-rhel9-operator | Not affected | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/eventrouter-rhel9 | Not affected | |
| Logical Volume Manager Storage | lvms4/lvms-rhel9-operator | Not affected | |
| Logical Volume Manager Storage | lvms4/topolvm-rhel8 | Not affected | |
| Logical Volume Manager Storage | lvms4/topolvm-rhel9 | Not affected | |
| Machine Deletion Remediation Operator | workload-availability/machine-deletion-remediation-rhel8-operator | Not affected | |
| Migration Toolkit for Applications 8 | mta/mta-cli-rhel9 | Not affected | |
| Migration Toolkit for Containers | rhmtc/openshift-migration-registry-rhel8 | Not affected | |
| Multiarch Tuning Operator | multiarch-tuning/multiarch-tuning-rhel9-operator | Not affected | |
| Multicluster Engine for Kubernetes | multicluster-engine/discovery-rhel9 | Not affected | |
| Multicluster Engine for Kubernetes | multicluster-engine/maestro-rhel9 | Not affected | |
| Multicluster Global Hub | multicluster-globalhub/multicluster-globalhub-agent-rhel9 | Not affected | |
| Network Observability Operator | network-observability/network-observability-cli-rhel9 | Not affected | |
| Node HealthCheck Operator | node-healthcheck-operator-tech-preview/node-healthcheck-operator-rhel8 | Not affected | |
| OpenShift API for Data Protection | oadp/oadp-velero-rhel9 | Not affected | |
| OpenShift Developer Tools and Services | helm | Not affected | |
| OpenShift Lightspeed | openshift-lightspeed/lightspeed-rhel9-operator | Not affected | |
| OpenShift Pipelines | openshift-pipelines-client | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-scheduler-rhel9 | Not affected | |
| OpenShift Serverless | kn-workflow-plugin | Not affected | |
| OpenShift Serverless | openshift-serverless-1/kn-plugin-event-sender-rhel9 | Not affected | |
| OpenShift Serverless | openshift-serverless-1/logic-rhel9-operator | Not affected | |
| OpenShift Serverless | openshift-serverless-clients | Not affected | |
| OpenShift Service Mesh 3 | openshift-service-mesh/kiali-rhel9 | Not affected | |
| OpenShift Service Mesh 3 | rh-osbs/openshift-golang-builder | Not affected | |
| OpenShift Source-to-Image (S2I) | source-to-image/source-to-image-rhel8 | Not affected | |
| Power monitoring for Red Hat OpenShift | openshift-power-monitoring/kepler-rhel9 | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/3scale-rhel7-operator | Not affected | |
| Red Hat AMQ Clients | qpid-proton | Not affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/thanos-rhel9 | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/subctl-rhel9 | Not affected | |
| Red Hat Advanced Cluster Security 4 | advanced-cluster-security/rhacs-main-rhel8 | Affected | |
| Red Hat Advanced Cluster Security 4 | advanced-cluster-security/rhacs-main-rhel9 | Affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-26/receptor-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-27/receptor-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform/platform-operator-bundle | Not affected | |
| Red Hat Ansible Automation Platform 2 | automation-gateway-proxy | Not affected | |
| Red Hat Ansible Automation Platform 2 | automation-gateway-proxy-openssl30 | Not affected | |
| Red Hat Ansible Automation Platform 2 | automation-gateway-proxy-openssl32 | Not affected | |
| Red Hat Ceph Storage 5 | rhceph/snmp-notifier-rhel8 | Not affected | |
| Red Hat Ceph Storage 6 | rhceph/snmp-notifier-rhel9 | Not affected | |
| Red Hat Ceph Storage 7 | rhceph/grafana-rhel9 | Fix deferred | |
| Red Hat Ceph Storage 8 | rhceph/grafana-rhel9 | Fix deferred | |
| Red Hat Ceph Storage 9 | rhceph/alloy-rhel10 | Not affected | |
| Red Hat Connectivity Link 1 | rhcl-1/authorino-rhel9 | Not affected | |
| Red Hat Connectivity Link 1 | rhcl-1/coredns-rhel9 | Not affected | |
| Red Hat Developer Hub | rhdh/rhdh-rhel9-operator | Not affected | |
| Red Hat Edge Manager 1 | flightctl | Not affected | |
| Red Hat Edge Manager 1 | rhem/flightctl-ui-rhel9 | Not affected | |
| Red Hat Enterprise Linux 10 | podman | Affected | |
| Red Hat Enterprise Linux 10 | golang | Fixed | RHSA-2026:37436 |
| Red Hat Enterprise Linux 10 | buildah | Fixed | RHSA-2026:38494 |
| Red Hat Enterprise Linux 10 | conmon | Not affected | |
| Red Hat Enterprise Linux 10 | python-awscrt | Not affected | |
| Red Hat Enterprise Linux 10 | rhel10-eus/rhel-10.0-bootc-image-builder | Not affected | |
| Red Hat Enterprise Linux 10 | rhel10/bootc-image-builder | Not affected | |
| Red Hat Enterprise Linux 10 | skopeo | Not affected | |
| Red Hat Enterprise Linux 10 | trustee | Not affected | |
| Red Hat Enterprise Linux 10 | trustee-guest-components | Not affected | |
| Red Hat Enterprise Linux 7 | rhc | Not affected | |
| Red Hat Enterprise Linux 7 | rhc-worker-script | Not affected | |
| Red Hat Enterprise Linux 8 | go-toolset:rhel8 | Fixed | RHSA-2026:38995 |
| Red Hat Enterprise Linux 8 | container-tools:rhel8/conmon | Not affected | |
| Red Hat Enterprise Linux 8 | container-tools:rhel8/containernetworking-plugins | Not affected | |
| Red Hat Enterprise Linux 8 | container-tools:rhel8/oci-seccomp-bpf-hook | Not affected | |
| Red Hat Enterprise Linux 8 | container-tools:rhel8/runc | Not affected | |
| Red Hat Enterprise Linux 8 | container-tools:rhel8/skopeo | Not affected | |
| Red Hat Enterprise Linux 8 | rhc | Not affected | |
| Red Hat Enterprise Linux 9 | golang | Fixed | RHSA-2026:37435 |
| Red Hat Enterprise Linux 9 | buildah | Fixed | RHSA-2026:38493 |
| Red Hat Enterprise Linux 9 | podman | Fixed | This content is not included.RHSA-2026:38878 |
| Red Hat Enterprise Linux 9 | conmon | Not affected | |
| Red Hat Enterprise Linux 9 | containernetworking-plugins | Not affected | |
| Red Hat Enterprise Linux 9 | golang-github-cpuguy83-md2man | Not affected | |
| Red Hat Enterprise Linux 9 | oci-seccomp-bpf-hook | Not affected | |
| Red Hat Enterprise Linux 9 | python-awscrt | Not affected | |
| Red Hat Enterprise Linux 9 | rhel9-eus/rhel-9.6-bootc-image-builder | Not affected | |
| Red Hat Enterprise Linux 9 | rhel9/bootc-image-builder | Not affected | |
| Red Hat Enterprise Linux 9 | runc | Not affected | |
| Red Hat Enterprise Linux 9 | skopeo | Not affected | |
| Red Hat Enterprise Linux 9 | trustee-guest-components | Not affected | |
| Red Hat Enterprise Linux AI (RHEL AI) 3 | golang | Affected | |
| Red Hat Hardened Images | golang1-26-main | Fixed | RHSA-2026:36477 |
| Red Hat Hardened Images | golang1-25-main | Fixed | RHSA-2026:36510 |
| Red Hat Hardened Images | golang-fips1.25 | Not affected | |
| Red Hat Lightspeed for Runtimes Operator | rh-lightspeed-runtimes/runtimes-inventory-rhel9-operator | Not affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-rhel9-operator | Not affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/rhai-cli-rhel9 | Not affected | |
| Red Hat OpenShift Cluster Manager CLI | ocm-cli-clients/ocm-cli-rhel9 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift | Affected | |
| Red Hat OpenShift Container Platform 4 | rh-osbs/openshift-golang-builder | Affected | |
| Red Hat OpenShift Container Platform 4 | conmon | Not affected | |
| Red Hat OpenShift Container Platform 4 | conmon-rs | Not affected | |
| Red Hat OpenShift Container Platform 4 | containernetworking-plugins | Not affected | |
| Red Hat OpenShift Container Platform 4 | cri-o | Not affected | |
| Red Hat OpenShift Container Platform 4 | cri-tools | Not affected | |
| Red Hat OpenShift Container Platform 4 | golang-github-prometheus-promu | Not affected | |
| Red Hat OpenShift Container Platform 4 | kata-containers | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift-clients | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/frr-rhel9 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-cli | Not affected | |
| Red Hat OpenShift Container Platform 4 | ose-aws-ecr-image-credential-provider | Not affected | |
| Red Hat OpenShift Container Platform 4 | ose-azure-acr-image-credential-provider | Not affected | |
| Red Hat OpenShift Container Platform 4 | ose-crio-credential-provider | Not affected | |
| Red Hat OpenShift Container Platform 4 | ose-gcp-gcr-image-credential-provider | Not affected | |
| Red Hat OpenShift Container Platform 4 | runc | Not affected | |
| Red Hat OpenShift Dev Spaces | devspaces/udi-rhel9 | Not affected | |
| Red Hat OpenShift Dev Workspaces Operator | devworkspace/devworkspace-rhel9-operator | Not affected | |
| Red Hat OpenShift GitOps | openshift-gitops-1/dex-rhel8 | Not affected | |
| Red Hat OpenShift GitOps | openshift-gitops-1/dex-rhel9 | Not affected | |
| Red Hat OpenShift Virtualization 4 | rh-osbs/openshift-golang-builder | Affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/kubevirt-apiserver-proxy-rhel9 | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/kubevirt-redfish-rhel9 | Not affected | |
| Red Hat OpenShift Virtualization 4 | kubevirt | Not affected | |
| Red Hat OpenShift distributed tracing 3 | rhosdt/tempo-rhel9 | Not affected | |
| Red Hat OpenShift for Windows Containers | openshift4-wincw/windows-machine-config-rhel9-operator | Not affected | |
| Red Hat OpenShift on AWS | rosa | Not affected | |
| Red Hat OpenStack Platform 16.2 | etcd | Not affected | |
| Red Hat OpenStack Platform 16.2 | golang-qpid-apache | Not affected | |
| Red Hat OpenStack Platform 16.2 | qpid-proton | Not affected | |
| Red Hat OpenStack Platform 16.2 | rhosp-rhel8/osp-director-agent | Not affected | |
| Red Hat OpenStack Platform 17.1 | etcd | Not affected | |
| Red Hat OpenStack Platform 17.1 | golang-qpid-apache | Not affected | |
| Red Hat OpenStack Platform 17.1 | qpid-proton | Not affected | |
| Red Hat OpenStack Platform 17.1 | rhosp-rhel9/osp-director-agent | Not affected | |
| Red Hat OpenStack Platform 18.0 | rhoso-operators/sg-core-rhel9 | Not affected | |
| Red Hat Openshift Data Foundation 4 | odf4/cephcsi-rhel9 | Not affected | |
| Red Hat Quay 3 | quay/quay-rhel8 | Affected | |
| Red Hat Quay 3 | quay/quay-rhel9 | Affected | |
| Red Hat Satellite 6 | dynflow-utils | Not affected | |
| Red Hat Satellite 6 | rubygem-dynflow | Not affected | |
| Red Hat Satellite 6 | satellite-capsule:el8/dynflow-utils | Not affected | |
| Red Hat Satellite 6 | satellite/iop-vmaas-rhel9 | Not affected | |
| Red Hat Satellite 6 | satellite:el8/yggdrasil-worker-forwarder | Not affected | |
| Red Hat Satellite 6 | yggdrasil-worker-forwarder | Not affected | |
| Red Hat Service Interconnect 2 | skupper-router | Not affected | |
| Red Hat Trusted Artifact Signer | rhtas/ec-rhel9 | Not affected | |
| Red Hat Web Terminal | web-terminal/web-terminal-exec-rhel9 | Not affected | |
| Security Profiles Operator | compliance/openshift-selinuxd-rhel8 | Not affected | |
| Service Telemetry Framework 1.5 | stf/sg-core-rhel9 | Not affected | |
| Zero Trust Workload Identity Manager | zero-trust-workload-identity-manager/spiffe-csi-driver-rhel9 | Not affected | |
| Zero Trust Workload Identity Manager - Tech Preview | zero-trust-workload-identity-manager/spiffe-spire-agent-rhel9 | Not affected | |
| cert-manager Operator for Red Hat OpenShift | cert-manager/jetstack-cert-manager-rhel9 | Not affected | |
| mirror registry for Red Hat OpenShift 2 | openshift/mirror-registry-rhel8 | Not affected | |
| streams for Apache Kafka 2 | golang-github-danielqsj-kafka_exporter | Not affected | |
| streams for Apache Kafka 3 | golang-github-danielqsj-kafka_exporter | Not affected |
Common Vulnerability Scoring System (CVSS) Score Details
Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authorities (CNA) source for its products and services (see Red Hat classifications ).
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| CVSS v3 Base Score | 7.8 | N/A | 7.8 |
| Attack Vector | Local | N/A | Local |
| Attack Complexity | Low | N/A | Low |
| Privileges Required | Low | N/A | Low |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality Impact | High | N/A | High |
| Integrity Impact | High | N/A | High |
| Availability Impact | High | N/A | High |
CVSS v3 Vector
Red Hat CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
cve.org CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Frequently Asked Questions
Why is Red Hat's CVSS v3 score or Impact different from other vendors?
For more information, see https://access.redhat.com/solutions/762393.
My product is listed as "Under investigation" or "Affected", when will Red Hat release a fix for this vulnerability?
- "Under investigation" doesn't necessarily mean that the product is affected by this vulnerability. It only means that our Analysis Team is still working on determining whether the product is affected and how it is affected.
- "Affected" means that our Analysis Team has determined that this product is affected by this vulnerability and might release a fix to address this in the near future.
What can I do if my product is listed as "Will not fix"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Upgrade to a supported product version that includes a fix for this vulnerability (recommended).
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
What can I do if my product is listed as "Fix deferred"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
- Red Hat Engineering focuses on addressing high-priority issues based on their complexity or limited lifecycle support. Therefore, lower-priority issues will not receive immediate fixes.
What is a mitigation?
I have a Red Hat product but it is not in the above list, is it affected?
Why is my security scanner reporting my product as vulnerable to this vulnerability even though my product version is fixed or not affected?
My product is listed as "Out of Support Scope". What does this mean?
Not sure what something means? Check out our Security Glossary.