{"cve":"CVE-2026-58403","nvd":{"published":"2026-07-06T20:16:38.173","modified":"2026-10-25T20:10:00.147","status":"Analyzed","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.","cvss_v4":{"vector":"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","score":5.9},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5},"cwes":["CWE-59"],"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"],"products":["gohugo:hugo"],"source":"nvd","synced_at":"2026-10-25T23:44:34.550481224+00:00"},"epss":{"cve":"CVE-2026-58403","score":0.00475,"percentile":0.40782,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-c3wq-j5vh-68rc","url":"https://osv.dev/vulnerability/GHSA-c3wq-j5vh-68rc","summary":"Hugo: Symlink confinement bypass in os.ReadFile","modified":"2026-07-24T19:11:41.347888762Z","packages":[{"ecosystem":"Go","name":"github.com/gohugoio/hugo","purl":"pkg:golang/github.com/gohugoio/hugo","ranges":[">=0.123.0 <0.163.1"],"fixed":["0.163.1"]}]},{"id":"GO-2026-5309","url":"https://osv.dev/vulnerability/GO-2026-5309","summary":"Hugo: Symlink confinement bypass in os.ReadFile in github.com/gohugoio/hugo","modified":"2026-07-24T19:11:41.347888762Z","packages":[{"ecosystem":"Go","name":"github.com/gohugoio/hugo","purl":"pkg:golang/github.com/gohugoio/hugo","ranges":[">=0.123.0 <0.163.1"],"fixed":["0.163.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}