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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-89258— Hugo before v0.165.0 Symlink Confinement Bypass via 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.

Hugo 是一款静态站点生成器。在高于 v0.123.0 且低于 v0.165.0 的版本中,在直接资源查找过程中,父目录中的符号链接(symlinks)未被忽略,从而导致路径限制(path confinement)机制可以被绕过。 如果攻击者能够——或者能够说服站点作者在——某个已挂载的目录(例如,位于 下本地引入的主题)中放置一个符号链接,那么执行直接查找的功能(如 和 )将会跟随该符号链接,从而读取预期项目边界之外的文件,并将其内容暴露在构建好的站点中。 作为 Go 模块从 GitHub 获取的主题在下载时会

CVSS 6.3 · Medium

Possible ATT&CK Techniques 1 AI

T1082 · System Information Discovery

Affected Version Matrix 2

VendorProduct Version RangeStatus
gohugoio hugo < 0.165.0 affected
0.165.0 unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-89258

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 before v0.165.0 Symlink Confinement Bypass via resources.Get
Source: CVE Program / CVE List V5
Vulnerability Description
Hugo is a static site generator. In versions after v0.123.0 and before v0.165.0, symlinks in parent directories were not dropped during direct resource lookups, allowing path confinement to be bypassed. An attacker who can place — or who convinces a site author to place — a symlink inside a mounted directory (for example, in a locally vendored theme under themes/) can cause functions that perform direct lookups, such as resources.Get and os.ReadFile, to follow that symlink and read files outside the intended project boundaries, disclosing their contents in the built site. Themes mounted as Go modules fetched from GitHub have symlinks stripped on download and are not affected, and multi-directory walks (e.g. content/asset walking) are not affected. This issue is an incomplete-fix follow-up to GHSA-c3wq-j5vh-68rc and GHSA-fw87-fv5r-9fpw; it is fixed in v0.165.0.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
在文件访问前对链接解析不恰当(链接跟随)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
gohugoio hugo 0 ~ 0.165.0 -

II. Public POCs for CVE-2026-89258

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

登录查看更多情报信息。

Vendor Advisories for CVE-2026-89258 (2)

IV. Related Vulnerabilities

V. Comments for CVE-2026-89258

No comments yet


Leave a comment