CVE catalog

CVE-2026-50135

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

[CVE catalog]

Severity
Medium · CVSS 6.9CVSS: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
Published
Source
[NVD] · [CVE record]
EPSS
0.41% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianhugosid0.168.0-3fixed
Debianhugoforky0.167.0-7fixed
Debianhugotrixie0.131.0-1vulnerable
Debianhugobookworm0.111.3-1not affected
CpehugoNot reportedNot reportedvulnerable
CpehugoNot reported0.161.1fixed
Gogithub.com/gohugoio/hugoNot reported0.162.0fixed
CpehugoNot reported0.161.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianhugosourcesid0.162.1-1not yet assignedNot reportedNot reported
Debianhugosourceforky0.162.1-1not yet assignedNot reportedNot reported
Debianhugosourcetrixie(unfixed)not yet assignedNot reportedNot reported
DebianhugosourcebookwormNot affectedunimportantNot reportedNot reported
CpehugocpeNot reported0.161.1Not reportedNot reportedNot reported
Gogithub.com/gohugoio/hugoGoNot reported0.162.0Not reportedNot reportedNot reported
CpehugocpeNot reported0.161.1Not reportedNVD-CVE-2026-50135Not reported

Notes

[trixie] hugo: Minor issue

OpenFactory catalog packages

[Debian 13 (Trixie)]

  • [hugo]Affected
    Details (2)
    • 0.131.0-1 · amd64 · trixie

      Affected

      nvd · hugo · debian · 13

    • 0.131.0-1 · arm64 · trixie

      Affected

      nvd · hugo · debian · 13

[Debian 12 (Bookworm)]

  • [hugo]Not affected
    Details (2)
    • 0.111.3-1 · amd64 · bookworm

      Not affected

      nvd · hugo · debian · bookworm

    • 0.111.3-1 · arm64 · bookworm

      Not affected

      nvd · hugo · debian · bookworm

Observed:

References