Live threats

All CVEs / Gohugo

CVE-2026-58403Gohugo Hugo

Medium 5.9 No auth needed

Priority
50
CVSS 4.0
5.9
EPSS
—
Auth required
No
Published
Jul 6, 2026
Updated
Oct 25, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-59
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Hugo.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/gohugoio/hugo ≥ 0.123.0 < 0.163.1 0.163.1 go get github.com/gohugoio/hugo@v0.163.1
Go github.com/gohugoio/hugo ≥ 0.123.0 < 0.163.1 0.163.1 go get github.com/gohugoio/hugo@v0.163.1

Per OSV / GitHub Advisories (GHSA-c3wq-j5vh-68rc, GO-2026-5309). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
gohugohugo≥ 0.123.0 < 0.163.1

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.