CVE catalog

CVE-2026-58403

Hugo is a static site generator. From v0.123.0 through v0.163.0, Hugo's virtual filesystem is designed so that files under a mount cannot reach outside the mount tree, but a regression caused RootMapp

[CVE catalog]

Severity
Medium · CVSS 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.47% · Oct 25, 2026

Hugo is a static site generator. From v0.123.0 through v0.163.0, Hugo's virtual filesystem is designed so that files under a mount cannot reach outside the mount tree, but a regression caused RootMappingFs.statRoot to call Stat, which follows symlinks, instead of Lstat, so a direct os.ReadFile "somefile" where somefile was a symlink pointing outside the mount would return the target's contents. This effectively let a symlink planted inside a theme or local mount read arbitrary files reachable to the user running hugo. This issue is fixed in v0.163.1.

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.163.1fixed
CpehugoNot reported0.163.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianhugosourcesid0.165.0-1not yet assignedNot reported[1141772]
Debianhugosourceforky0.165.0-1not yet assignedNot reported[1141772]
Debianhugosourcetrixie(unfixed)not yet assignedNot reported[1141772]
DebianhugosourcebookwormNot affectedunimportantNot reported[1141772]
CpehugocpeNot reported0.163.1Not reportedNot reportedNot reported
CpehugocpeNot reported0.163.1Not reportedNVD-CVE-2026-58403Not reported

[Debian bug #1141772]

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