{"id":"CVE-2026-50135","published":"2026-07-06T19:52:04Z","modified":"2026-07-07T16:57:29Z","title":"Hugo: Symlink confinement bypass in resources.Get","vendor":"gohugoio","product":"hugo","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00411,"percentile":0.36253,"provenance":"source"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-fw87-fv5r-9fpw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gohugoio/hugo/commit/f8b5fa09a64950c32b803821ede411ebfe772b7a","tags":["x_refsource_MISC"]},{"url":"https://github.com/gohugoio/hugo/releases/tag/v0.162.0","tags":["x_refsource_MISC"]}],"priority":{"score":12.1,"factors":[{"name":"EPSS percentile","points":7.25},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"gohugoio","affectedVersions":[{"vendor":"gohugoio","product":"hugo","versions":[">= 0.123.0, < 0.162.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-07T16:52:31.351209Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/gohugoio/hugo","vulnerableRanges":[">=0.123.0, <0.162.0"],"patched":["0.162.0"],"from":["GHSA-fw87-fv5r-9fpw","GO-2026-5380"],"provenance":"source"}],"summary":{"text":"Hugo's resources.Get function, in the RootMappingFs.statRoot component, fails to confine symlinks to their mount in versions 0.123.0 through 0.161.1, because a regression made it follow symlinks instead of inspecting them. An attacker who can plant a symlink in a local mount, such as a vendored themes/ directory, can read arbitrary files accessible to the Hugo user, provided a site build is run that calls resources.Get on that symlink and the user interacts with the build; Go-module themes from GitHub and directory walks are not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:51:42Z"},"euvd":{"id":"EUVD-2026-41922","exploited":false,"provenance":"source"}}