CVE-2026-78683: NLTK before 3.10.0 Remote Code Execution via Unsafe Pickle Deserialization

Published Aug 25, 2026
·
Updated

NLTK before 3.10.0 (affected versions <=3.9.4) contains an unsafe pickle deserialization vulnerability in the TransitionParser.parse() method (nltk/parse/transitionparser.py). The method calls pickleload() with the default restricted=False, routing deserialization through WarningUnpickler, which does not override findclass() and therefore permits arbitrary class resolution. When an application loads an attacker-crafted model file, embedded pickle gadget chains execute arbitrary Python code with the privileges of the user running the application. NLTK provides a RestrictedUnpickler for safe deserialization, but it is not used by production code paths. Fixed in 3.10.0.

Affected Software

1 affected component
nltk nltk<3.10.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade NLTK to a version that resolves this vulnerability.

    Fixed in 3.10.0
  2. Compensating control

    Avoid loading attacker-controlled NLTK model files; ensure model files used by TransitionParser.parse() are from trusted sources only to prevent unsafe pickle deserialization.

Event History

Aug 25, 2026
CVE Published
via MITRE·01:30 AM
Data Sourced
via MITRE·01:30 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:16 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to exploitation?

Applications using NLTK versions through 3.9.4 are exposed if they invoke TransitionParser.parse() on a model file that an attacker can craft or control. The resulting code runs with the privileges of the user running the application.

2

Does an attacker need prior access or interaction to exploit this?

The vulnerability is network-reachable with low attack complexity and requires no privileges, but it requires a user or application to load the attacker-crafted model file. The supplied severity vector indicates user interaction is required.

3

What should be done to remediate the issue?

Upgrade NLTK to version 3.10.0, which fixes the issue. NLTK versions at or below 3.9.4 are affected.

4

What can be done if an immediate upgrade is not possible?

Do not load TransitionParser model files from untrusted or attacker-controlled sources. Restrict which users or processes can supply model files, because loading a crafted file can execute arbitrary Python code.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203