CVE-2026-126296: NLTK before 3.10.4 Path Traversal via save_maxent_params and load_maxent_params

Published Nov 13, 2026
·
Updated

NLTK before 3.10.4 contains a path traversal vulnerability in savemaxentparams() and loadmaxentparams() that bypasses the pathsec filesystem restriction mechanism. Attackers who control the tabdir argument can read or overwrite model parameter files outside permitted data roots, because the functions call Python's built-in open() directly.

Affected Software

1 affected component
pypi/nltk<3.10.4

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.4

Event History

Nov 13, 2026
CVE Published
via MITRE·09:36 AM
Data Sourced
via MITRE·09:36 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:17 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using NLTK versions before 3.10.4 are exposed if an attacker can control the tab_dir argument passed to save_maxent_params() or load_maxent_params(). The issue is remotely reachable only where that attacker-controlled input can be supplied through the application.

2

What access does an attacker need?

The attacker does not need prior privileges or user interaction, but exploitation requires control of the tab_dir argument. Exploitation has high attack complexity.

3

What can an attacker do?

An attacker can use path traversal to read or overwrite model parameter files outside the permitted data roots. The reported impact is limited to integrity and availability; confidentiality impact is listed as none.

4

How can I determine whether my deployment is affected?

Check whether the application uses an NLTK release before 3.10.4 and calls save_maxent_params() or load_maxent_params(). Review whether untrusted or externally influenced values can reach their tab_dir argument.

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