{"id":"CVE-2026-58403","aliases":["GHSA-c3wq-j5vh-68rc","GO-2026-5309"],"url":"https://o3.security/vulnerability/CVE-2026-58403","summary":"Hugo symlink confinement bypass in os.ReadFile","details":"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.","published":"2026-07-06T19:25:45.971Z","modified":"2026-08-12T03:51:08.938673450Z","cvss":null,"epss":{"score":0.00475,"percentile":0.39738,"asOf":"2026-09-12"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/gohugoio/hugo","fixedVersion":"0.163.1"}],"fix":{"url":"https://github.com/gohugoio/hugo/commit/cf9c8f93ca2a2838ce378f9e36d052ac2f79e229","label":"gohugoio/hugo@cf9c8f9"},"references":[{"type":"WEB","url":"https://github.com/gohugoio/hugo/releases/tag/v0.163.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58403.json"},{"type":"ADVISORY","url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-c3wq-j5vh-68rc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58403"},{"type":"FIX","url":"https://github.com/gohugoio/hugo/commit/cf9c8f93ca2a2838ce378f9e36d052ac2f79e229"},{"type":"FIX","url":"https://github.com/gohugoio/hugo/pull/15020"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:08.938673450Z"}}