CVE Explorer
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 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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"hugo","vendor":"gohugoio","versions":[{"status":"affected","version":">= 0.123.0, < 0.163.1"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:bdb8124d544f4730fb5f2c2f1f63bf22c8e68f56ca9d337d2cd3445d8aadecbd · sha256:90375b98f4c02dd6… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":5.9,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"ACTIVE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"NONE"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:bdb8124d544f4730fb5f2c2f1f63bf22c8e68f56ca9d337d2cd3445d8aadecbd · sha256:90375b98f4c02dd6… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-59","description":"CWE-59: Improper Link Resolution Before File Access ('Link Following')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:bdb8124d544f4730fb5f2c2f1f63bf22c8e68f56ca9d337d2cd3445d8aadecbd · sha256:90375b98f4c02dd6… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"https://github.com/gohugoio/hugo/commit/cf9c8f93ca2a2838ce378f9e36d052ac2f79e229","tags":["x_refsource_MISC"],"url":"https://github.com/gohugoio/hugo/commit/cf9c8f93ca2a2838ce378f9e36d052ac2f79e229"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:bdb8124d544f4730fb5f2c2f1f63bf22c8e68f56ca9d337d2cd3445d8aadecbd · sha256:90375b98f4c02dd6… · /containers/cna/references/2
{"name":"https://github.com/gohugoio/hugo/pull/15020","tags":["x_refsource_MISC"],"url":"https://github.com/gohugoio/hugo/pull/15020"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:bdb8124d544f4730fb5f2c2f1f63bf22c8e68f56ca9d337d2cd3445d8aadecbd · sha256:90375b98f4c02dd6… · /containers/cna/references/1
{"name":"https://github.com/gohugoio/hugo/releases/tag/v0.163.1","tags":["x_refsource_MISC"],"url":"https://github.com/gohugoio/hugo/releases/tag/v0.163.1"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:bdb8124d544f4730fb5f2c2f1f63bf22c8e68f56ca9d337d2cd3445d8aadecbd · sha256:90375b98f4c02dd6… · /containers/cna/references/3
{"name":"https://github.com/gohugoio/hugo/security/advisories/GHSA-c3wq-j5vh-68rc","tags":["x_refsource_CONFIRM"],"url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-c3wq-j5vh-68rc"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:bdb8124d544f4730fb5f2c2f1f63bf22c8e68f56ca9d337d2cd3445d8aadecbd · sha256:90375b98f4c02dd6… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.