{"schemaVersion":3,"id":"CVE-2026-12252","aliases":["GHSA-9r6g-266r-89x4","PYSEC-2026-2085","UBUNTU-CVE-2026-12252","DEBIAN-CVE-2026-12252"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2026-07-04T00:58:58.930Z","modified":"2026-07-06T18:33:11.411Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"CVE.org","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Pypi","score":7.8,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00195,"percentile":0.0861,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":-0.04000000000000002,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00235},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00195,"percentile":0.0861}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00195,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00195,"percentile":0.0861}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_23E7FB01E0D1A628","name":"Exploit Reference (huntr.com)","source":"reference","url":"https://huntr.com/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efb","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"debian","product":"nltk","name":"nltk","label":"nltk","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/nltk","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 3.10.3-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 3.10.3-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"nltk","name":"nltk","label":"nltk","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/nltk","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"nltk","product":"nltk","name":"nltk","label":"nltk","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 3.9.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 3.9.3","eol":null,"hubHref":"/vendor/nltk/nltk"},{"vendor":"nltk","product":"nltk/nltk","name":"nltk/nltk","label":"nltk/nltk","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, ≤ latest","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, ≤ latest","eol":null,"hubHref":"/vendor/nltk/nltknltk"},{"vendor":"PyPI","product":"nltk","name":"nltk","label":"nltk","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/nltk","purlType":"pypi","versions":[{"text":"< 3.9.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.9.4","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://huntr.com/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efb","label":"huntr.com/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efb","hostname":"huntr.com","tags":["WEB","EVIDENCE","REPORT","Exploit","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12252","label":"nvd.nist.gov/vuln/detail/CVE-2026-12252","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/nltk/nltk/pull/3743","label":"github.com/nltk/nltk/pull/3743","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/nltk/nltk/commit/006f4b83d430147b067b81e2cddd226d6fa405c8","label":"github.com/nltk/nltk/commit/006f4b83d430147b067b81e2cddd226d6fa405c8","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/nltk/nltk/commit/24777f0cb8c33ed2839d16e0f8169a3c312a6806","label":"github.com/nltk/nltk/commit/24777f0cb8c33ed2839d16e0f8169a3c312a6806","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/nltk/nltk","label":"github.com/nltk/nltk","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/nltk/nltk/releases/tag/v3.10.3","label":"github.com/nltk/nltk/releases/tag/v3.10.3","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-2085.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-2085.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2026-12252","label":"ubuntu.com/security/CVE-2026-12252","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-12252","label":"www.cve.org/CVERecord?id=CVE-2026-12252","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-12252","label":"security-tracker.debian.org/tracker/CVE-2026-12252","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/advisories/GHSA-9r6g-266r-89x4","label":"github.com/advisories/GHSA-9r6g-266r-89x4","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:11587-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:11587-1"]},"timeline":[{"kind":"published","date":"2026-07-04T00:58:58.930Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-06T18:33:11.411Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T03:39:56.287Z","stale":false,"partial":false}}