{"id":"CVE-2026-12252","aliases":["CVE-2026-12252","GHSA-9r6g-266r-89x4","PYSEC-2026-2085"],"related":[],"kind":"vulnerability","state":"published","title":"Untrusted JAR Code Execution in Multiple Stanford Interface Classes in nltk/nltk","summary":"In nltk/nltk versions 3.9.3 and earlier, five Stanford interface classes (StanfordPOSTagger, StanfordNERTagger, StanfordParser, StanfordDependencyParser, and StanfordNeuralDependencyParser) are vulnerable to untrusted JAR code execution. These classes accept user-controllable JAR paths and execute them via the `java()` function, which invokes `subprocess.Popen()` without integrity verification. This vulnerability is identical to CVE-2026-0848, which was fixed for StanfordSegmenter by adding SHA256 verification. However, the fix was not applied to these additional classes, leaving them susceptible to arbitrary code execution when loading untrusted JAR files.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In nltk/nltk versions 3.9.3 and earlier, five Stanford interface classes (StanfordPOSTagger, StanfordNERTagger, StanfordParser, StanfordDependencyParser, and StanfordNeuralDependencyParser) are vulnerable to untrusted JAR code execution. These classes accept user-controllable JAR paths and execute them via the `java()` function, which invokes `subprocess.Popen()` without integrity verification. This vulnerability is identical to CVE-2026-0848, which was fixed for StanfordSegmenter by adding SHA256 verification. However, the fix was not applied to these additional classes, leaving them susceptible to arbitrary code execution when loading untrusted JAR files.","source":"cvelist"},{"lang":"es","text":"En las versiones 3.9.3 y anteriores de nltk/nltk, cinco clases de interfaz de Stanford (StanfordPOSTagger, StanfordNERTagger, StanfordParser, StanfordDependencyParser y StanfordNeuralDependencyParser) son vulnerables a la ejecución de código JAR no confiable. Estas clases aceptan rutas JAR controlables por el usuario y las ejecutan a través de la función ’java()’, que invoca a ’subprocess.Popen()’ sin verificación de integridad. Esta vulnerabilidad es idéntica a CVE-2026-0848, que fue corregida para StanfordSegmenter mediante la adición de verificación SHA256. Sin embargo, la corrección no se aplicó a estas clases adicionales, dejándolas susceptibles a la ejecución de código arbitrario al cargar archivos JAR no confiables.","source":"nvd"}],"published":"2026-07-04T00:58:58.930Z","modified":"2026-10-25T15:10:00.147Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"latest","status":"affected"}],"vendor":"nltk","product":"nltk/nltk","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.9.4"}],"ecosystem":"PyPI","package":"nltk","purl":"pkg:pypi/nltk","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"3.9.3"}],"vendor":"nltk","product":"nltk","cpe":"cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.9.4"}],"ecosystem":"PyPI","package":"nltk","purl":"pkg:pypi/nltk","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efb","tags":["evidence","exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12252","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/nltk/nltk/pull/3743","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nltk/nltk/commit/006f4b83d430147b067b81e2cddd226d6fa405c8","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nltk/nltk/commit/24777f0cb8c33ed2839d16e0f8169a3c312a6806","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nltk/nltk","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/nltk/nltk/releases/tag/v3.10.3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-2085.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-9r6g-266r-89x4","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-07-06T18:32:42.979Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-12252","url":"https://www.cve.org/CVERecord?id=CVE-2026-12252","licence":"CVE Terms of Use","modified":"2026-07-06T18:33:11.411Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9r6g-266r-89x4","url":"https://github.com/advisories/GHSA-9r6g-266r-89x4","licence":"CC-BY-4.0","modified":"2026-10-02T18:55:37.071Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-12252","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12252","licence":"Public domain","modified":"2026-10-25T15:10:00.147Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2085","url":"https://osv.dev/vulnerability/PYSEC-2026-2085","licence":"CC-BY-4.0","modified":"2026-10-15T14:45:11.790Z"}],"updatedAt":"2026-11-25T22:59:27.135Z","epss":{"score":0.00195,"percentile":0.09606,"date":"2026-12-01T12:00:22.000Z"}}