CVE-2026-58403
Last modified
CVE-2026-58403 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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. EPSS estimates a 0.37% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
CVSS:4.0/AV:N/AC:L/AT:P/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
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Gohugo | Hugo | >= 0.123.0, < 0.163.1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-58403?
How severe is CVE-2026-58403?
How do I fix CVE-2026-58403?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-58384A flaw was found in GIMP's PSD parser. An integer overflow i…7.8
- CVE-2026-58389Allocation of Resources Without Limits or Throttling vulnera…7.5
- CVE-2026-5839A vulnerability was identified in PHPGurukul News Portal Pro…4.7
- CVE-2026-58399@acastellon/auth is an authentication control system for mic…8.7
- CVE-2026-5840A security flaw has been discovered in PHPGurukul News Porta…4.7
- CVE-2026-58402Hugo is a static site generator. From 0.60.0 until 0.163.3, …5.4
- CVE-2026-58404Hugo is a static site generator. From v0.162.0 through v0.16…6.8
- CVE-2026-58407Rejected reason: Please submit CVE requests for each vulnera…
- CVE-2026-58408ChurchCRM is an open-source church management system. Prior …6.5
- CVE-2026-58409ChurchCRM is an open-source church management system. Prior …9.1
- CVE-2026-5841A weakness has been identified in Tenda i3 1.0.0.6(2204). Th…9.8
- CVE-2026-58410ChurchCRM is an open-source church management system. Prior …7.1
Are you affected by CVE-2026-58403?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
