# CVE-2026-58403: Hugo symlink confinement bypass in os.ReadFile

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-06 · Modified: 2026-07-06
- Aliases: UBUNTU-CVE-2026-58403, DEBIAN-CVE-2026-58403, GHSA-c3wq-j5vh-68rc, GO-2026-5309
- Record: https://cvemate.com/vulnerability/CVE-2026-58403 · JSON: https://cvemate.com/vulnerability/CVE-2026-58403/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- EPSS: 0.318%, percentile 26.688%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian hugo (Debian): All versions (No fix recorded) \| \< 0.165.0-1
- ubuntu hugo (Ubuntu): All versions (No fix recorded)
- gohugo hugo: ≥ 0.123.0, \< 0.163.1
- gohugoio hugo: ≥ 0.123.0, \< 0.163.1
- github.com/gohugoio hugo (Go): ≥ 0.123.0, \< 0.163.1

## References

- <https://github.com/gohugoio/hugo/security/advisories/GHSA-c3wq-j5vh-68rc>
- <https://github.com/gohugoio/hugo/pull/15020>
- <https://github.com/gohugoio/hugo/commit/cf9c8f93ca2a2838ce378f9e36d052ac2f79e229>
- <https://github.com/gohugoio/hugo/releases/tag/v0.163.1>
- <https://ubuntu.com/security/CVE-2026-58403>
- <https://www.cve.org/CVERecord?id=CVE-2026-58403>
- <https://security-tracker.debian.org/tracker/CVE-2026-58403>
- <https://github.com/gohugoio/hugo>

---

Data as of 2026-12-05T12:34:24.479Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
