CVE-2026-50135
published medium CVSS 4.0 · 6.9Hugo: Symlink confinement bypass in resources.Get
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gohugoio | — | hugo>= 0.123.0, < 0.162.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gohugoio | hugo | >= 0.123.0, < 0.162.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-59 CWE-59: Improper Link Resolution Before File Access ('Link Following')
References
3Provider assertions
2GitHub_M · cna
Hugo: Symlink confinement bypass in resources.Get
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d01b47385ccae5a0ff054ebf1814bee13e3fc5e82fbe4e9a5fa3e82a840f4510
- Ingested
- 23 Sep 2026, 09:18:37 UTC
- Source record
- Official CVE record