CVE-2026-58404 Hugo security.http.urls deny rules bypassed by alternate IPv4 encodings
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebianRed Hat
Description
Hugo is a static site generator. From v0.162.0 through v0.163.0, the default security.http.urls policy denies requests to loopback, internal, and cloud-metadata IPv4 literals, but the deny rule only matched dotted-decimal notation, so alternate IPv4 encodings of the same addresses, including integer, hex, or octal, passed the policy. When a template passes an untrusted or data-derived URL to resources.GetRemote and the host platform uses the cgo system resolver, these encodings resolve to the blocked address, allowing build-time server-side requests to loopback and internal services, including the cloud-metadata endpoint in hosted or CI builds; the same check is reused on redirects, so the gap also applies to each redirect hop. This issue is fixed in v0.163.1.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gohugoio github.com/gohugoio/hugo(Go) | >= 0.162.0, < 0.163.1 | 0.163.1 |
| gohugoio github.com/gohugoio/hugo | = >= v0.162.0, < v0.163.1 | No fix listed |
| redhat/hugo-main(Red Hat:hummingbird:1) | < 0.163.3-0.1.hum1 | 0.163.3-0.1.hum1 |
| debian/hugo(Debian:14) | < 0.165.0-1 | 0.165.0-1 |
| debian/hugo(Debian:14) | = 0.131.0-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.131.0-2 | No fix listed |
| debian/hugo(Debian:14) | = 0.150.0-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.150.1-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.151.0-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.151.1-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.151.2-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.152.1-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.152.2-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.153.0-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.153.1-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.153.1-2 | No fix listed |
| debian/hugo(Debian:14) | = 0.153.1-3 | No fix listed |
| debian/hugo(Debian:14) | = 0.153.2-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.154.1-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.154.2-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.154.2-2 | No fix listed |
| debian/hugo(Debian:14) | = 0.154.3-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.154.5-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.155.1-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.155.2-1 | No fix listed |
Show 27 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/hugo(Debian:14) | = 0.155.3-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.157.0-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.157.0-2 | No fix listed |
| debian/hugo(Debian:14) | = 0.157.0-3 | No fix listed |
| debian/hugo(Debian:14) | = 0.158.0-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.158.0-2 | No fix listed |
| debian/hugo(Debian:14) | = 0.158.0-3 | No fix listed |
| debian/hugo(Debian:14) | = 0.159.0-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.159.1-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.159.2-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.160.0-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.160.0-2 | No fix listed |
| debian/hugo(Debian:14) | = 0.160.1-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.161.0-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.161.1-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.162.1-1 | No fix listed |
| debian/hugo(Debian:14) | = 0.162.1-2 | No fix listed |
| debian/hugo(Debian:14) | = 0.162.1-3 | No fix listed |
| debian/hugo(Debian:14) | = 0.162.1-4 | No fix listed |
| debian/hugo(Debian:14) | = 0.162.1-5 | No fix listed |
| debian/hugo(Debian:14) | = 0.162.1-6 | No fix listed |
| debian/hugo(Debian:14) | = 0.162.1-7 | No fix listed |
| ubuntu/hugo(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/hugo(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/hugo(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/hugo(Ubuntu:26.10) | All versions | No fix listed |
| gohugo hugo | >= 0.162.0, < 0.163.1 | 0.163.1 |
References
- https://github.com/gohugoio/hugo/security/advisories/GHSA-r46f-3rpw-hxrv mitigation vendor-advisory
- github.com product
- https://github.com/gohugoio/hugo/commit/a00b5c72ac57afe26df6688ece3ca544a56df372 patch
- https://github.com/gohugoio/hugo/pull/15020 issue-tracking
- https://github.com/gohugoio/hugo/releases/tag/v0.163.1 release-notes
- Red Hat CVE page vendor-advisory
- RHSA-2026:36862 patch vendor-advisory
- Red Hat Bugzilla 2497450 issue-tracking
- www.cve.org
- nvd.nist.gov
- github.com
- Debian Security Tracker CVE-2026-58404 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking