Skip to main content
No exploitation reportedFix available

CVE-2026-58403

No exploitation reported by the sources we read.

  • Published2026-07-06
  • Fixed in0.163.1
  • WeaknessCWE-59

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-07-0620:16CVE publishedNVD

Versions per branch

NVD · OSV
Gohugo hugo
BranchAffectedFixed in
0.x≥ 0.123.0, < 0.163.10.163.1

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • gohugoio hugo
    Affected
    • = >= 0.123.0, < 0.163.1no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-07-06

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • hugoUbuntu:Pro:24.04:LTSall versions · no fixed version listed
  • hugoUbuntu:26.10all versions · no fixed version listed
  • hugoUbuntu:26.04:LTSall versions · no fixed version listed
  • hugoUbuntu:25.10all versions · no fixed version listed
  • hugoUbuntu:22.04:LTSall versions · no fixed version listed
  • hugoUbuntu:20.04:LTSall versions · no fixed version listed
  • hugoUbuntu:18.04:LTSall versions · no fixed version listed
  • hugoUbuntu:16.04:LTSall versions · no fixed version listed

3 more package ranges on OSV.dev

Vendor advisories

  • CVE-2026-58403 Red Hat Product Security3 products fixed

    github.com/gohugoio/hugo: Hugo: Information disclosure via symlink confinement bypass in virtual filesystem

  • RHSA-2026:36862 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update

Full record on NVD

Fix

  1. Update Gohugo hugo to 0.163.1
  2. Vendor fix Red Hat Product Security RHSA-2026:36862 · 3 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://images.redhat.com/

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionnone2026-07-06
  • CNACVSS 4.05.9known since 2026-10-26
  • NVDCVSS 3.16.5read 2026-10-26
  • CNAweakness (CWE)CWE-59known since 2026-10-26
  • FIRST EPSSEPSS score0.5 %2026-11-18
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryMODERATE2026-06-19

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
CVSS 4.0 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
Published
2026-07-06
Last Modified
2026-10-25
NVD status
Analyzed
GitHub Advisory
GHSA-c3wq-j5vh-68rc

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.

Is CVE-2026-58403 actively exploited?

Active exploitation of CVE-2026-58403 has not been confirmed. Its EPSS score was 0.5% on 2026-11-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-58403?

CVE-2026-58403 has a CVSS v3 base score of 6.5 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N.

Running gohugoio/hugo? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record