CVE details
CVE-2026-39822
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.
- Score
- 7.8 high
- Published
- 2026-07-08
- Links
- NVD · cve.org · Report wrong data
Matched ports (1)
| Port | Package | Version | Status | Maintainer |
|---|---|---|---|---|
| lang/go | go | 1.27_21,2 | unaddressed | go@FreeBSD.org |
Template for a VuXML entry
Range taken from the CVE record, check it before committing. make newentry in security/vuxml creates the vid.
<vuln vid="FIXME (make newentry)">
<topic>FIXME -- FIXME</topic>
<affects>
<package>
<name>go</name>
<range><lt>1.25.12</lt></range>
</package>
</affects>
<description>
<body xmlns="http://www.w3.org/1999/xhtml">
<p>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.</p>
</body>
</description>
<references>
<cvename>CVE-2026-39822</cvename>
<url>https://nvd.nist.gov/vuln/detail/CVE-2026-39822</url>
</references>
<dates>
<discovery>2026-07-08</discovery>
<entry>2026-10-26</entry>
</dates>
</vuln>