PT-2026-55980 · Hugo · Hugo

·

CVE-2026-58403

·

Published

2026-06-19

·

Updated

2026-07-24

CVSS v3.1

6.5

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions Hugo versions 0.123.0 through 0.163.0
Description A regression in the virtual filesystem allows a symlink placed within a theme or local mount to read arbitrary files accessible to the user running the application. This occurs because the RootMappingFs.statRoot function calls Stat, which follows symbolic links, instead of Lstat. Consequently, a direct os.ReadFile call on a symlink pointing outside the mount tree returns the contents of the target file.
Recommendations Update Hugo to version 0.163.1.

Exploit

Fix

DoS

Link Following

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-58403
GHSA-C3WQ-J5VH-68RC
GO-2026-5309

Affected Products

Hugo