Descrizione
NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. From 3.10.3 until 3.10.4, the NLTK 3.10.3 JVM hardening validates Java launcher tokens in the options channel but appends the caller-controlled cmd sequence without requiring its first token to be a main class. Supplying -jar or an @argfile through nltk.internals.java or StanfordSegmenter.java_class can therefore execute attacker-selected Java bytecode without the unsafe-JAR opt-in. This issue is fixed in version 3.10.4.
Come correggere
Priorità: Alta — pianificare la correzione entro pochi giorni. Motivazione: CVSS 9.8, EPSS 0.9% (percentile 61).
Versioni da aggiornare
- nltk nltk: vulnerabile la versione
>= 3.10.3, < 3.10.4→ installare l'ultima release supportata dal vendor.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Limitare l'accesso all'interfaccia vulnerabile (VPN o allowlist IP), disabilitare le funzionalità non necessarie e monitorare processi anomali avviati dal servizio.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| nltk | nltk | >= 3.10.3, < 3.10.4 | — |
Riferimenti
- Riferimentohttps://github.com/nltk/nltk/commit/b36212795a522d2b7b176cf0e0d9d8da489ba6e6
- Riferimentohttps://github.com/nltk/nltk/pull/3771
- Riferimentohttps://github.com/nltk/nltk/releases/tag/v3.10.4
- Riferimentohttps://github.com/nltk/nltk/security/advisories/GHSA-x8q7-6c7m-52gw
- Riferimentohttps://github.com/nltk/nltk/security/advisories/GHSA-x8q7-6c7m-52gw