CVE-2026-89258
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.
Scoring
- Severity
- CRITICAL
- CVSS base score
- 9.3
- CVSS vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- EPSS probability
- 0.32%
- CWE
- CWE-59
- Published
- 2026-09-11
- Last modified
- 2026-09-11
Affected products
- gohugoio hugo
- gohugoio hugo
Weakness type
Related vulnerabilities
- CVE-2026-11940 — tarfile extraction filter bypass allows escaping the destination directory
- CVE-2026-7374 — Kubevirt: kubevirt virt-handler: privilege escalation and node compromise via symlink following vulnerability
- CVE-2026-63294 — Root RCE via image backup.yaml symlink
- CVE-2026-63293 — Arbitrary File Read/Write: metadata.yaml symlink in image allows host filesystem access as root
- CVE-2026-63125 — Incus vulnerable to root RCE via image backup.yaml symlink
- CVE-2026-57571 — Crawl4AI arbitrary file write via download filename path traversal
- CVE-2026-54352 — Budibase: Arbitrary file read by workspace-builder via PWA-zip symlink upload
- CVE-2026-53476 — Assisted-migration-agent: vddk tarball chained-symlink arbitrary file write