PT-2026-79564 · Pypi · Nltk
CVSS v4.0
7.1
High
| Vector | AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Name of the Vulnerable Software and Affected Versions
NLTK versions prior to 3.10.0
Description
A logic bug exists in the
FileSystemPathPointer.open() function where the sandbox validation check compares a normalized path against itself, rendering the security check ineffective. This allows attackers to use file:// URLs via the nltk.data.load() function to read arbitrary files accessible to the process user, such as configuration files and credentials.Recommendations
Update NLTK to version 3.10.0 or later.
As a temporary mitigation, restrict the use of the
nltk.data.load() function when handling untrusted input.Exploit
Fix
Improper Access Control
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Nltk