CVE-2026-12252
Full vulnerability record from the local CVENow database.
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.
Severity
HIGH
CVSS score
7.8
(v3.0)
Vulnerability status
Analyzed
Source identifier
Published
2026-07-04 02:16:23.603000
Last modified
2026-10-25 15:10:00.147000
View original CVE JSON
{
"id": "CVE-2026-12252",
"sourceIdentifier": "[email protected]",
"published": "2026-07-04T02:16:23.603",
"lastModified": "2026-10-25T15:10:00.147",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "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."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "nltk",
"product": "nltk/nltk",
"versions": [
{
"version": "unspecified",
"lessThanOrEqual": "latest",
"versionType": "custom",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV30": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.0",
"vectorString": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"baseScore": 7.8,
"baseSeverity": "HIGH",
"attackVector": "LOCAL",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "REQUIRED",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 1.8,
"impactScore": 5.9
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-07-06T18:32:42.979501Z",
"id": "CVE-2026-12252",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "no"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-94"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:*",
"versionEndIncluding": "3.9.3",
"matchCriteriaId": "E3C35863-7D82-4EEF-BDE8-E94C559CF4FB"
}
]
}
]
}
],
"references": [
{
"url": "https://huntr.com/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efb",
"source": "[email protected]",
"tags": [
"Exploit",
"Third Party Advisory"
]
},
{
"url": "https://huntr.com/bounties/f5c93982-0cc9-4e2e-bb85-1b6ab29a2efb",
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"tags": [
"Exploit",
"Third Party Advisory"
]
}
]
}