Bug 2497460 (CVE-2026-58403) - CVE-2026-58403 github.com/gohugoio/hugo: Hugo: Information disclosure via symlink confinement bypass in virtual filesystem
Summary: CVE-2026-58403 github.com/gohugoio/hugo: Hugo: Information disclosure via sym...
Keywords:
Status: NEW
Alias: CVE-2026-58403
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-06 20:02 UTC by OSIDB Bzimport
Modified: 2026-07-28 06:51 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-06 20:02:29 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.