# CVE-2026-58404: Hugo security.http.urls deny rules bypassed by alternate IPv4 encodings

- Priority: **Routine**
- Reason: Not severe (CVSS 4.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-06 · Modified: 2026-07-07
- Aliases: UBUNTU-CVE-2026-58404, DEBIAN-CVE-2026-58404, GHSA-r46f-3rpw-hxrv, GO-2026-5606
- Record: https://cvemate.com/vulnerability/CVE-2026-58404 · JSON: https://cvemate.com/vulnerability/CVE-2026-58404/json

## Description

```text
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.
```

## Signals

- CVSS: 6.8 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N
- EPSS: 0.208%, percentile 11.467%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian hugo (Debian): \< 0.165.0-1
- ubuntu hugo (Ubuntu): All versions (No fix recorded)
- gohugo hugo: ≥ 0.162.0, \< 0.163.1
- gohugoio hugo: ≥ v0.162.0, \< v0.163.1
- github.com/gohugoio hugo (Go): ≥ 0.162.0, \< 0.163.1

## References

- <https://github.com/gohugoio/hugo/security/advisories/GHSA-r46f-3rpw-hxrv>
- <https://github.com/gohugoio/hugo/pull/15020>
- <https://github.com/gohugoio/hugo/commit/a00b5c72ac57afe26df6688ece3ca544a56df372>
- <https://github.com/gohugoio/hugo/releases/tag/v0.163.1>
- <https://ubuntu.com/security/CVE-2026-58404>
- <https://www.cve.org/CVERecord?id=CVE-2026-58404>
- <https://security-tracker.debian.org/tracker/CVE-2026-58404>
- <https://github.com/gohugoio/hugo>

---

Data as of 2026-12-05T13:03:17.074Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
