6.5

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

Analyzed
AliasesUBUNTU-CVE-2026-58403DEBIAN-CVE-2026-58403GHSA-c3wq-j5vh-68rc
Published 06-07-2026Last modified 06-07-2026

Vulnerability summary

CVE-2026-58403 is a medium (CVSS 6.5) vulnerability in gohugo hugo. EPSS estimates a 0.32% chance of exploitation in the next 30 days, higher than 26.6% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.32%
0%100%
Low · -0.16 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1

Timeline

  1. 06-07-2026
    PublishedVulnerability first disclosed.
  2. 06-07-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

7 scores · 5 sources · 2 versions

EPSS trend

Probability

0.32%

Chance of exploitation in the next 30 days

Percentile

27%

Versus all other CVEs

30-day change

Decrease -0.16 pp

From 0.47% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Debian1 product
  • hugoAll versions (No fix recorded) | < 0.165.0-1
Github.com/gohugoio1 product
  • hugo≥ 0.123.0, < 0.163.1
Gohugo1 product
  • hugo≥ 0.123.0, < 0.163.1
Gohugoio1 product
  • hugo≥ 0.123.0, < 0.163.1
Ubuntu1 product
  • hugoAll versions (No fix recorded)

5 vendors · 5 products

References

8 links