CVE-2026-58403
CVE-2026-58403 is a medium-severity vulnerability in Gohugo Hugo with a CVSS 3.x base score of 6.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-59.
Key facts
- Severity: Medium (CVSS 3.x base score 6.5)
- CVSS v4: 5.9
- EPSS exploit prediction: 0% (24th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-59
- Affected product: Gohugo Hugo
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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 the user running hugo. This issue is fixed in v0.163.1.
- How severe is CVE-2026-58403?
- CVE-2026-58403 has a CVSS 3.x base score of 6.5, rated medium severity. It is exploitable over network with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity none, and availability none.
- Is CVE-2026-58403 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (24th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-58403?
- CVE-2026-58403 affects Gohugo Hugo. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2026-58403?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2026-58403 published?
- CVE-2026-58403 was published on 2026-07-06 and last updated on 2026-07-08.
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
Affected products (1)
- cpe:2.3:a:gohugo:hugo:*:*:*:*:*:*:*:*
More vulnerabilities in Gohugo Hugo
- CVE-2026-44301 — High (CVSS 8.1): Hugo is a static site generator. From 0.43 to before 0.161.0, when building a Hugo site that uses Node-based asset…
- CVE-2020-26284 — High (CVSS 7.7): Hugo is a fast and Flexible Static Site Generator built in Go. Hugo depends on Go's `os/exec` for certain features,…
- CVE-2026-58404 — Medium (CVSS 6.8): Hugo is a static site generator. From v0.162.0 through v0.163.0, the default security.http.urls policy denies requests…
- CVE-2026-50133 — Medium (CVSS 6.1): Hugo is a static site generator. Prior to 0.162.0, Hugo accepts content files in several markup formats. Files mapped…
- CVE-2026-50134 — Medium (CVSS 5.8): Hugo is a static site generator. From 0.91.0 until 0.162.0, resources.GetRemote enforces security.http.urls on the URL…
- CVE-2026-50135 — Medium (CVSS 5.5): Hugo is a static site generator. From 0.123.0 to 0.161.1, a regression made RootMappingFs.statRoot use Stat…
All CVEs affecting Gohugo Hugo →
Other CWE-59 (Improper Link Resolution Before File Access (Link Following)) vulnerabilities
- CVE-2024-37143 — Critical (CVSS 10.0): Dell PowerFlex appliance versions prior to IC 46.381.00 and IC 46.376.00, Dell PowerFlex rack versions prior to RCM…
- CVE-2024-28189 — Critical (CVSS 10.0): Judge0 is an open-source online code execution system. The application uses the UNIX chown command on an untrusted file…
- CVE-2024-28185 — Critical (CVSS 10.0): Judge0 is an open-source online code execution system. The application does not account for symlinks placed inside the…
- CVE-2022-22995 — Critical (CVSS 10.0): The combination of primitives offered by SMB and AFP in their default configuration allows the arbitrary writing of…
- CVE-2014-4480 — Critical (CVSS 10.0): Directory traversal vulnerability in afc in AppleFileConduit in Apple iOS before 8.1.3 and Apple TV before 7.0.3 allows…
- CVE-2002-2374 — Critical (CVSS 10.0): Unspecified vulnerability in pprosetup in Sun PatchPro 2.0 has unknown impact and attack vectors related to "unsafe use…
Browse all CWE-59 (Improper Link Resolution Before File Access (Link Following)) vulnerabilities →