3.7low
Server-Side Request Forgery (SSRF) in nltk/nltk
- Severity
- 3.7low CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 0.31% (higher than 16% of CVEs)
- Published
- Last changed
- Assigned by
- @huntr_ai
- Also known as
- GHSA-2jhm-w3mp-jcwrPYSEC-2026-3955
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| nltk nltk/nltk | from unspecified up to latest | CVE List |
| nltk (PyPI) | before 3.10.0, up to 3.9.4 | GitHub Advisory Database, PyPA Advisory Database |
| nltk nltk | 3.9.4 | NVD |
All scores
| @huntr_ai | 3.7low CVSS:3.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 3.7low CVSS:3.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
| PyPA Advisory Database | 3.7low CVSS:3.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Una vulnerabilidad de falsificación de petición del lado del servidor (SSRF) existe en las versiones 3.9.4 de nltk/nltk y en la rama de desarrollo actual. La función ’nltk.pathsec.validate_network_url()’, destinada a prevenir SSRF al rechazar direcciones de red internas, no logra rechazar IPs en el espacio de direcciones compartidas RFC 6598 (’100.64.0.0/10’). Esto ocurre porque el módulo ’ipaddress’ de Python no clasifica dichas direcciones como ’is_private’ o ’is_global’, y la protección actual solo verifica ’is_private’ y algunas categorías explícitas. Un atacante que puede influir en una URL pasada a las funciones de ayuda de carga de red de NLTK puede explotar esta vulnerabilidad para hacer que una aplicación en modo estricto envíe peticiones a hosts del espacio de direcciones compartidas, exponiendo potencialmente infraestructura no pública accesible desde el host de la aplicación. El impacto se limita a la exposición de confidencialidad de tipo SSRF, sin ejecución de código reclamada.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-12372 changed 2026-08-12 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2jhm-w3mp-jcwr changed 2026-10-02 | CC-BY-4.0 |
| NVD | CVE-2026-12372 changed 2026-10-23 | Public domain |
| PyPA Advisory Database | PYSEC-2026-3955 changed 2026-10-15 | CC-BY-4.0 |