{"id":"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.","aliases":["GHSA-c3wq-j5vh-68rc"],"modified":"2026-07-09T04:02:35.999862903Z","published":"2026-07-06T19:25:45.971Z","database_specific":{"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58403.json","cwe_ids":["CWE-59"]},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/gohugoio/hugo","events":[{"introduced":"3c8a4713908e48e6523f058ca126710397aa4ed5"},{"fixed":"2a4fd58818ffdf45bbb2a97ab119bb4c46cd93f0"},{"fixed":"cf9c8f93ca2a2838ce378f9e36d052ac2f79e229"}],"database_specific":{"extracted_events":[{"introduced":"0.123.0"},{"fixed":"0.163.1"}],"cpe":"cpe:2.3:a:gohugo:hugo:*:*:*:*:*:*:*:*","source":["CPE_RANGE","REFERENCES"]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-58403.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}]}