Katalog CVE

CVE-2026-10582

WysokieCVSS 7.4
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.32%

Percentyl 24 - wyżej niż 24% wszystkich znanych CVE

Streszczenie

Hugo nie sprawdza adresu IP, do którego faktycznie łączy się klient HTTP podczas pobierania zasobów przez resources.GetRemote. Lista dozwolonych security.http.urls sprawdza tylko tekst URL, a nie rzeczywisty adres docelowy, co pozwala na dostęp do wewnętrznych zasobów.

Ocena ryzyka

Atakujący może dostarczyć URL przez treść, powodując pobranie wewnętrznych danych i opublikowanie ich w wygenerowanej stronie, co prowadzi do wycieku informacji.

Rekomendacja

Zaktualizuj Hugo do wersji, która zawiera poprawkę, i rozważ dodatkowe zabezpieczenia sieciowe dla procesu budowania.

Inne podatności w Hugo

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

Hugo's security.http.urls allowlist is the only control on outbound fetches made by resources.GetRemote, and it inspects the URL text alone. CheckAllowedHTTPURL in config/security/securityConfig.go applies the configured pattern list and then re-checks a canonicalised form of an integer, hex or octal IPv4 host, but it never resolves the hostname and never inspects the address the HTTP client actually connects to. The client constructed in resources/resource_factories/create/create.go installs no dial-time hook, so no check occurs at connection time either. A hostname that resolves to a loopback, private or cloud-metadata address therefore satisfies the policy, and the response body is embedded in the generated site. An attacker who can supply a URL through content, for example a front-matter field or a CMS field, can make the build fetch an internal endpoint and publish the response in the static output, so the build artifact itself carries the data out.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS