CVE Vulnerabilities

CVE-2026-39822

UNIX Symbolic Link (Symlink) Following

Published: Jul 08, 2026 | Modified: Jul 13, 2026
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
7.8 IMPORTANT
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files.

Affected Software

NameVendorStart VersionEnd Version
GoGolang*1.25.12 (excluding)
GoGolang1.26.0 (including)1.26.5 (excluding)
GoGolang1.27-rc1 (including)1.27-rc1 (including)
Red Hat Enterprise Linux 10RedHatgolang-0:1.26.5-1.el10_2*
Red Hat Enterprise Linux 10RedHatbuildah-2:1.43.1-4.el10_2*
Red Hat Enterprise Linux 8RedHatgo-toolset:rhel8-8100020260710105056.a3795dee*
Red Hat Enterprise Linux 9RedHatgolang-0:1.26.5-1.el9_8*
Red Hat Enterprise Linux 9RedHatbuildah-2:1.43.1-4.el9_8*
Red Hat Enterprise Linux 9RedHatpodman-6:5.8.2-5.el9_8*
Red Hat Hardened ImagesRedHatgolang1-26-main-1.26.5-0.1.hum1*
Red Hat Hardened ImagesRedHatgolang1-25-main-1.25.12-0.1.hum1*
Red Hat OpenShift distributed tracing 3.10.2RedHatrhosdt/tempo-gateway-opa-rhel9:1784775772*
Red Hat OpenShift distributed tracing 3.10.2RedHatrhosdt/tempo-gateway-rhel9:1784775770*
Red Hat OpenShift distributed tracing 3.10.2RedHatrhosdt/tempo-jaeger-query-rhel9:1784775834*
Red Hat OpenShift distributed tracing 3.10.2RedHatrhosdt/tempo-operator-bundle:1784777166*
Red Hat OpenShift distributed tracing 3.10.2RedHatrhosdt/tempo-query-rhel9:1784775793*
Red Hat OpenShift distributed tracing 3.10.2RedHatrhosdt/tempo-rhel9:1784775768*
Red Hat OpenShift distributed tracing 3.10.2RedHatrhosdt/tempo-rhel9-operator:1784775782*
Golang-1.23Ubuntuquesting*
Golang-1.24Ubuntuquesting*
Golang-1.25Ubuntuquesting*

Potential Mitigations

  • Follow the principle of least privilege when assigning access rights to entities in a software system.
  • Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

References