CVE-2026-39822
Root escape via symlink plus trailing slash in os
7.8
HIGH
CVSS 3.1
EPSS 0.18%
Description
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.
How to fix CVE-2026-39822
To remediate CVE-2026-39822, upgrade the affected package to a fixed version below.
- —upgrade to 1.25.12 or later
- —upgrade to 1.25.12 or later
Is CVE-2026-39822 being exploited?
Low — EPSS is 0.2%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 1.25.12, >= 1.26.0-0, < 1.26.5, >= 1.27.0-0, < 1.27.0
- from 0, < 1.25.12, >= 1.26.0-0, < 1.26.5, >= 1.27.0-0, < 1.27.0-rc.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |