CVE-2026-50135 json
Hugo: Symlink confinement bypass in resources.Get
published 2026-06-16 4 mo ago modified 2026-10-25 14 d ago also GHSA-fw87-fv5r-9fpw , GO-2026-5380 , EUVD-2026-41922
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 35%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/gohugoio/hugo 0.162.0
- gohugo hugo 0.161.1
- hugo Debian 14 0.162.1-1
debian advisories DEBIAN-CVE-2026-50135
- hugo hummingbird 1 0.162.1-1.hum1
red hat advisories RHSA-2026:24577
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
opensuse advisories openSUSE-SU-2026:21483-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-50135 updated cvss 5.5
github.com/gohugoio/hugo: Hugo: Information disclosure due to symlink confinement bypass
-
Red Hat Hardened Images hugo 0.162.1-1.hum1fixed: vendor fix RHSA-2026:24577
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 4 mo ago
Exploit prediction
0.41% chance of exploitation in the next 30 days, higher than 35% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 6.9 | 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 |
| CNA | 4.0 | 6.9 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/gohugoio/hugo | >=0.123.0, <0.162.0 |
0.162.0 |
Affected products
- gohugoio hugo
Classification
- Weakness
-
- CWE-59 Improper Link Resolution Before File Access
References
-
github.com
/gohugoio/hugo/commit/f8b5fa09a64950c32b803821ede411ebfe772b7a
web, patch
-
github.com
/gohugoio/hugo/security/advisories/GHSA-fw87-fv5r-9fpw
web, patch, vendor-advisory, advisory
-
github.com
/gohugoio/hugo/releases/tag/v0.162.0
web, product, release-notes
-
github.com
/gohugoio/hugo
package
Sources
- CVE List CVE-2026-50135
- GitHub Advisory GHSA-fw87-fv5r-9fpw
- NVD CVE-2026-50135
- OSV GO-2026-5380
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.