PT-2026-164876

CVE-2026-140395

·

Published

2026-12-01

·

Updated

2026-12-01

Description by

CVSS 4.0
8.7
High
MetricsAV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions Hugo versions 0.56.0 through 0.169.x
Description A path traversal issue exists where malicious themes or modules can read arbitrary files from the build host. This occurs because the collectModulesTXT function in modules/collect.go uses import paths from vendor/modules.txt to build the vendored module directory without verifying that the path remains within the vendor directory. By including .. segments in the import path, an attacker can force the application to treat any directory on the host as a module root. This allows the use of readFile, resources.Get, os.ReadFile, or static mounts to access and publish sensitive information, such as secrets, credentials, and system files, in the generated site.
Recommendations Update Hugo to version 0.170.0 or later.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-R48V-R4VW-H9V8
Found an issue in the description? Have something to add? Feel free to write us 👾