CVE-2026-62388: NLTK before 3.10.0 Insecure Default Configuration pathsec

Published Aug 22, 2026
·
Updated

NLTK versions before 3.10.0 default to ENFORCE=False in pathsec.py, causing all security validation functions to emit warnings instead of raising exceptions. Attackers can bypass path traversal and pickle deserialization protections by exploiting the disabled security controls that are only active when manually enabled.

Affected Software

1 affected component
NLTK Project 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. Configuration

    Ensure ENFORCE is set to True in pathsec.py (versions before 3.10.0 default to ENFORCE=False, which disables enforcement by turning validations into warnings instead of exceptions).

    NLTK pathsec.py ENFORCE = True

Event History

Aug 22, 2026
CVE Published
via MITRE·02:12 PM
Data Sourced
via MITRE·02:12 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:16 PM
DescriptionSeverityWeakness
Aug 19, 58611
Event
via NVD·08:48 PM

Frequently Asked Questions

1

Which deployments are exposed by default?

NLTK versions before 3.10.0 are exposed when using the default pathsec.py configuration, because ENFORCE defaults to False. In that state, security validation functions warn instead of raising exceptions.

2

What does an attacker need to exploit this issue?

An attacker needs an opportunity to trigger code paths that rely on NLTK's path traversal or pickle deserialization protections. No authentication or user interaction is required according to the supplied severity vector.

3

Is there a mitigation if upgrading is not immediately possible?

Manually enable the pathsec security controls by setting ENFORCE to True. This changes validation failures from warnings to exceptions and activates the described protections.

4

How can I determine whether an installation is affected?

Check whether the installed NLTK version is earlier than 3.10.0 and inspect pathsec.py configuration. An installation is affected by this default-configuration issue if ENFORCE is set to False or left at its default value.

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