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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-50135— Hugo: Symlink confinement bypass in resources.Get

Quick assessment

Affected
gohugoio hugo
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.

gohugo hugo是gohugo团队开源的一个生成静态网站的框架。 GoHugo Hugo 0.123.0版本至0.161.1版本存在后置链接漏洞,该漏洞源于RootMappingFs.statRoot使用Stat(跟踪符号链接)而不是Lstat,可能导致本地挂载中符号链接读取任意文件。

AI Predicted 5.3 Difficulty: Easy EPSS 0.41% · P35

Affected Version Matrix 1

VendorProduct Version RangeStatus
gohugoio hugo >= 0.123.0, < 0.162.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-50135

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
Hugo: Symlink confinement bypass in resources.Get
Source: CVE Program / CVE List V5
Vulnerability Description
Hugo is a static site generator. From 0.123.0 to 0.161.1, a regression made  RootMappingFs.statRoot  use  Stat  (follows symlinks) instead of  Lstat , so a direct  resources.Get  of a symlink pointing outside its mount returned the target's contents — letting a symlink planted in a local mount (e.g. a vendored  themes/  theme) read arbitrary files accessible to the Hugo user. Go-module themes from GitHub (symlinks stripped) and directory walks were unaffected. Fixed in 0.162.0.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
在文件访问前对链接解析不恰当(链接跟随)
Source: CVE Program / CVE List V5
Vulnerability Title
GoHugo Hugo 后置链接漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
gohugo hugo是gohugo团队开源的一个生成静态网站的框架。 GoHugo Hugo 0.123.0版本至0.161.1版本存在后置链接漏洞,该漏洞源于RootMappingFs.statRoot使用Stat(跟踪符号链接)而不是Lstat,可能导致本地挂载中符号链接读取任意文件。
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
gohugoio hugo >= 0.123.0, < 0.162.0 -

II. Public POCs for CVE-2026-50135

# 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-50135

登录查看更多情报信息。

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

Vendor Advisories for CVE-2026-50135 (1)

Vendor Pages for CVE-2026-50135 (1)

Same Patch Batch · gohugoio · 2026-07-06 · 6 CVEs total

CVE-2026-58404 Hugo security.http.urls deny rules bypassed by alternate IPv4 encodings
CVE-2026-58402 Hugo default code block renderer XSS via unescaped code-fence language
CVE-2026-58403 Hugo symlink confinement bypass in os.ReadFile
CVE-2026-50134 Hugo: security.http.urls allow-list bypass via HTTP redirects
CVE-2026-50133 Hugo: XSS via text/html content files

IV. Related Vulnerabilities

V. Comments for CVE-2026-50135

No comments yet


Leave a comment