Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
Go standard library os
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Google Go是美国Google公司开源的一种静态强类型、编译型、并发型,并具有垃圾回收功能的编程语言。 Google Go 1.25.12之前版本、1.26.5之前版本的1.26.0-0版本和1.27.0-rc.2之前版本的1.27.0-0版本存在后置链接漏洞,该漏洞源于在Unix系统上打开os.Root中的文件时,当路径的最后一个组件是符号链接且路径以斜杠结尾时,会错误地跟随指向Root之外的符号链接,可能导致攻击者访问限制外的文件。

AI Predicted 7.8 Difficulty: Easy EPSS 0.23% · P13

Possible ATT&CK Techniques 1 AI

T1083 · File and Directory Discovery

Affected Version Matrix 3

VendorProduct Version RangeStatus
Go standard library os < 1.25.12 affected
1.26.0-0< 1.26.5 affected
1.27.0-0< 1.27.0-rc.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-39822

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Root escape via symlink plus trailing slash in os
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Google Go 后置链接漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Google Go是美国Google公司开源的一种静态强类型、编译型、并发型,并具有垃圾回收功能的编程语言。 Google Go 1.25.12之前版本、1.26.5之前版本的1.26.0-0版本和1.27.0-rc.2之前版本的1.27.0-0版本存在后置链接漏洞,该漏洞源于在Unix系统上打开os.Root中的文件时,当路径的最后一个组件是符号链接且路径以斜杠结尾时,会错误地跟随指向Root之外的符号链接,可能导致攻击者访问限制外的文件。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Go standard library os 0 ~ 1.25.12 -

II. Public POCs for CVE-2026-39822

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-39822

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-39822 (1)

Vendor Advisories for CVE-2026-39822 (3)

IV. Related Vulnerabilities

V. Comments for CVE-2026-39822

No comments yet


Leave a comment