Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-12372

LOW · 3.7 CVSS Gepubliceerd: CWE-918

Beschrijving NL

Er bestaat een SSRF-kwetsbaarheid (Server-Side Request Forgery) in nltk/nltk-versies 3.9.4 en de huidige ontwikkeltak. De functie `nltk.pathsec.validate_network_url ()`, bedoeld om SSRF te voorkomen door interne netwerkadressen af te wijzen, weigert geen IP's in de gedeelde adresruimte van RFC 6598 (`100.64.0.0/10`). Dit gebeurt omdat de 'ipaddress` -module van Python adressen niet classificeert als `is_private` of `is_global`, en de huidige bewaker alleen `is_private` en een paar expliciete categorieën controleert. Een aanvaller die een URL kan beïnvloeden die is doorgegeven aan de netwerklaadhelpers van NLTK, kan deze kwetsbaarheid misbruiken om een applicatie met strikte modus verzoeken te laten verzenden naar hosts met gedeelde adresruimte, waardoor mogelijk niet-openbare infrastructuur toegankelijk wordt voor de applicatiehost. De impact is beperkt tot blootstelling aan vertrouwelijkheid in SSRF-stijl, zonder dat er code-uitvoering wordt geclaimd.

Origineel (Engels) tonen

A Server-Side Request Forgery (SSRF) vulnerability exists in nltk/nltk versions 3.9.4 and the current develop branch. The `nltk.pathsec.validate_network_url()` function, intended to prevent SSRF by rejecting internal network addresses, fails to reject IPs in the RFC 6598 shared address space (`100.64.0.0/10`). This occurs because Python's `ipaddress` module does not classify such addresses as `is_private` or `is_global`, and the current guard only checks `is_private` and a few explicit categories. An attacker who can influence a URL passed to NLTK's network-loading helpers can exploit this vulnerability to make a strict-mode application send requests to shared-address-space hosts, potentially exposing non-public infrastructure reachable from the application host. The impact is limited to SSRF-style confidentiality exposure, with no code execution claimed.

Vendors

Nltk

Affected products

Nltk

References