CVE-2026-50135

NameCVE-2026-50135
DescriptionHugo 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
hugo (PTS)bullseye0.80.0-6vulnerable
bullseye (security)0.80.0-6+deb11u1vulnerable
bookworm0.111.3-1vulnerable
trixie0.131.0-1vulnerable
forky0.161.1-1vulnerable
sid0.162.1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
hugosource(unstable)0.162.1-1

Notes

https://github.com/gohugoio/hugo/security/advisories/GHSA-fw87-fv5r-9fpw
Fixed by: https://github.com/gohugoio/hugo/commit/f8b5fa09a64950c32b803821ede411ebfe772b7a (v0.162.0)

Search for package or bug name: Reporting problems