Go standard library · Go · published 2026-07-08

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

Routine No exploitation evidence; EPSS 0.2%.

CVE-2026-39822 is not known to be exploited in the wild. EPSS estimates a 0.2% chance of exploitation in the next 30 days, higher than 14% of all CVEs. This Go vulnerability: CVSS 7.8 (v3.1), a successful attack gives total control of the component. Fixed upstream in Go 1.26.5, 1.25.12. Routine: patch when convenient.

Share this

Remediation#

Fixed upstream in Go 1.26.5, 1.25.12.

Patch events

  1. This monthSecurity release

    Language runtimeGo

    Go security releases: 1.26.5, 1.25.12

    Upgrade to 1.26.51.25.12

    Why: Vendor security release for server software (most severe: CVE-2026-39822).

Exploit intelligence#

SignalValueSource
Known exploitedNoCISA KEV
Ransomware use—CISA KEV
EPSS (30-day exploitation probability)0.2% (14th pct)FIRST EPSS v2026.06.15
CVSS base score7.8 (v3.1)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CNA / CISA ADP
SSVC exploitationnoneCISA Vulnrichment
SSVC automatableNoCISA Vulnrichment
SSVC technical impacttotalCISA Vulnrichment

Affected versions (from the CVE record)#

Description (from the CVE record)#

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.

Quoted from the CVE Program record.

Elsewhere#

Distro status: Debian · Ubuntu · Red Hat · Alpine

Something wrong on this page?
Anonymous. Reports are checked against the primary source.

Also on today's list

See today's list → · Coming up →