
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
- Severity
- Medium · CVSS 6.5
CVSS: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.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | hugo | sid | 0.168.0-3 | fixed |
| Debian | hugo | forky | 0.167.0-7 | fixed |
| Debian | hugo | trixie | 0.131.0-1 | vulnerable |
| Debian | hugo | bookworm | 0.111.3-1 | not affected |
| Cpe | hugo | Not reported | Not reported | vulnerable |
| Cpe | hugo | Not reported | 0.163.1 | fixed |
| Cpe | hugo | Not reported | 0.163.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | hugo | source | sid | 0.165.0-1 | not yet assigned | Not reported | [1141772] |
| Debian | hugo | source | forky | 0.165.0-1 | not yet assigned | Not reported | [1141772] |
| Debian | hugo | source | trixie | (unfixed) | not yet assigned | Not reported | [1141772] |
| Debian | hugo | source | bookworm | Not affected | unimportant | Not reported | [1141772] |
| Cpe | hugo | cpe | Not reported | 0.163.1 | Not reported | Not reported | Not reported |
| Cpe | hugo | cpe | Not reported | 0.163.1 | Not reported | NVD-CVE-2026-58403 | Not reported |
Notes
[trixie] hugo: Minor issue
OpenFactory catalog packages
[Debian 13 (Trixie)]
- [hugo]Affected
Details (2)
0.131.0-1· amd64 · trixieAffected
nvd · hugo · debian · 13
0.131.0-1· arm64 · trixieAffected
nvd · hugo · debian · 13
[Debian 12 (Bookworm)]
- [hugo]Not affected
Details (2)
0.111.3-1· amd64 · bookwormNot affected
nvd · hugo · debian · bookworm
0.111.3-1· arm64 · bookwormNot affected
nvd · hugo · debian · bookworm
Observed:
References
- [https://github.com/gohugoio/hugo/commit/cf9c8f93ca2a2838ce378f9e36d052ac2f79e229]
- [https://github.com/gohugoio/hugo/pull/15020]
- [https://github.com/gohugoio/hugo/releases/tag/v0.163.1]
- [https://github.com/gohugoio/hugo/security/advisories/GHSA-c3wq-j5vh-68rc]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-58403]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-58403]
- [https://security-tracker.debian.org/tracker/CVE-2026-58403]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-58403.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]