CVE-2026-62388

Description

A flaw was found in NLTK. The software's default settings in pathsec.py cause security checks to only issue warnings rather than actively preventing malicious actions. This allows attackers to bypass safeguards designed to prevent unauthorized access to files (path traversal) and the execution of harmful code through data processing (pickle deserialization). Consequently, attackers can exploit these disabled security controls to compromise the system.

Statement

NLTK versions before 3.10.0 in Red Hat products are configured by default to not enforce security validations for path traversal and pickle deserialization. This insecure default allows attackers to bypass these protections, as security controls are only active when manually enabled, increasing the risk of arbitrary code execution or unauthorized file access.

Mitigation

To mitigate this issue, ensure that the NLTK security validation enforcement is enabled. This can be achieved by setting `nltk.internals.pathsec.ENFORCE = True` in your application's initialization code before processing untrusted data. This change may require restarting any services or applications that utilize NLTK.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score7.5N/A7.5
Attack VectorNetworkN/ANetwork
Attack ComplexityLowN/ALow
Privileges RequiredNoneN/ANone
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityHighN/AHigh
Integrity ImpactNoneN/ANone
Availability ImpactNoneN/ANone

Vector

Red Hat: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

cve.org: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Understanding the Weakness (CWE)

Other

Technical Impact: Varies by Context

The impact of insecure defaults varies widely depending on the functionality that the product controls.

Frequently Asked Questions

Want to get errata notifications? Sign up here.