SSRF (Falsification de requête côté serveur) dans nltk (CVE-2026-78682)
Résumé
SSRF dans nltk (CVE-2026-78682). Des informations confidentielles peuvent être exposées. Exploitable via nltk.pathsec.urlopen. Atténuation : mise à jour vers 3.10.3 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Summary
Current NLTK source reopens SSRF in proxied environments. pathsec.urlopen() validates the requested hostname locally, but once proxy inheritance is enabled the real fetch is performed by the proxy rather than by the validated direct-connect socket path.
Details
- Vulnerability type: Server-side request forgery
- Affected component:
nltk.pathsec.urlopen,nltk.data.load,nltk.downloader.Downloader.index,nltk.downloader.Downloader.download - Affected versions: Current source
v3.10.0-rc2; published3.9.4was a negative control and did not reproduce. - Patched versions: Not yet patched
- Root cause: Proxy-handler inheritance disables
_SafeHTTPHandlerand_SafeHTTPSHandler, so the validated hostname no longer matches the actual egress destination.
The hardened direct path pins the validated numeric destination IP before opening the socket. The proxied branch instead copies ProxyHandler instances from the global opener, marks the request as proxied, and skips the pinned handlers. I confirmed that a validated public URL can be fetched from a loopback-only internal service through the proxy path via pathsec.urlopen(), nltk.data.load(), Downloader.index(), and Downloader.download().
PoC
Preconditions
- The runtime has an HTTP proxy configured and the caller relies on
pathsecto keep network fetches SSRF-safe.
Steps
- Start a loopback-only HTTP server that serves secret text, a valid downloader index,…
Source: NIST National Vulnerability Database NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-78682 a été découverte dans nltk.
Des attaquants peuvent cibler un point d'entrée spécifique comme nltk.pathsec.urlopen à distance pour détourner le produit.
Des informations confidentielles peuvent être exposées. Score CVSS : 7.5/10.
Action : mettez à jour nltk vers 3.10.3 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « nltk CVE-2026-78682 » sur le site de l'éditeur.
CVE-2026-78682 (nltk) — CWE-918 / CVSS v3 7.5
Vecteur d'attaque : distant (réseau) / non authentifié / sans interaction utilisateur
Surface d'attaque : nltk.pathsec.urlopen / nltk.data.load / nltk.downloader.Downloader.index / nltk.downloader.Downloader.download
Correctif : 3.10.3 — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une SSRF (CWE-918) affecte nltk. Les attaquants atteignent le code vulnérable via nltk.pathsec.urlopen sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de nltk. Surface d'attaque : nltk.pathsec.urlopen / nltk.data.load / nltk.downloader.Downloader.index / nltk.downloader.Downloader.download.
Gravité : Élevée (CVSS 7.5/10). Des informations confidentielles peuvent être exposées.
Mettre à jour vers 3.10.3.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'nltk' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
nltkを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade nltk to 3.10.3ステージング環境で 3.10.3 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
État des correctifs par distribution
Paquets corrigés publiés par chaque distribution pour cette CVE
- Debian DEBIAN-CVE-2026-78682 nltk
Références
- advisory nvd.nist.gov
- package github.com
- web github.com
- web vulncheck.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com