CVE-2026-58403

Hugo symlink confinement bypass in os.ReadFile

MEDIUM
6.5
CVSS Score
Published: July 6, 2026 at 07:25 PM UTC
Updated: October 25, 2026 at 08:10 PM UTC
2 products affected across 2 vendorsHugoHugo

Using hugo by gohugoio?

Get instant alerts when new vulnerabilities affect hugo - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.5
Exploit prediction
EPSS 0.5%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

All versions0.123.0 ≤ v < 0.163.1
Affected range stops below 0.163.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 0.163.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (4)

x_refsource_CONFIRMVendor Advisory
Source: cverecord
https://github.com/gohugoio/hugo/security/advisories/GHSA-c3wq-j5vh-68rc
x_refsource_MISCIssue Tracking
Source: cverecord
https://github.com/gohugoio/hugo/pull/15020
x_refsource_MISCRelease Notes
Source: cverecord
https://github.com/gohugoio/hugo/releases/tag/v0.163.1

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-59

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card