| Name | CVE-2026-50135 |
| 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 (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| hugo (PTS) | bullseye | 0.80.0-6 | fixed |
| bullseye (security) | 0.80.0-6+deb11u1 | fixed | |
| bookworm | 0.111.3-1 | fixed | |
| trixie | 0.131.0-1 | vulnerable | |
| forky, sid | 0.162.1-7 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| hugo | source | bullseye | (not affected) | |||
| hugo | source | bookworm | (not affected) | |||
| hugo | source | (unstable) | 0.162.1-1 |
[trixie] - hugo <no-dsa> (Minor issue)
[bookworm] - hugo <not-affected> (resources.Get symlink-following regression in RootMappingFs.statRoot introduced in v0.123.0)
[bullseye] - hugo <not-affected> (resources.Get symlink-following regression in RootMappingFs.statRoot introduced in v0.123.0)
https://github.com/gohugoio/hugo/security/advisories/GHSA-fw87-fv5r-9fpw
Fixed by: https://github.com/gohugoio/hugo/commit/f8b5fa09a64950c32b803821ede411ebfe772b7a (v0.162.0)