Security mailing lists by PureSourceCode

CVE-2026-0847

HIGH 7.5CVSS 3.1

NLTK has a Path Traversal issue

A vulnerability in NLTK versions up to and including 3.9.2 allows arbitrary file read via path traversal in multiple CorpusReader classes, including WordListCorpusReader, TaggedCorpusReader, and BracketParseCorpusReader. These classes fail to properly sanitize or validate file paths, enabling attackers to traverse directories and access sensitive files on the server. This issue is particularly critical in scenarios where user-controlled file inputs are processed, such as in machine learning APIs, chatbots, or NLP pipelines. Exploitation of this vulnerability can lead to unauthorized access to sensitive files, including system files, SSH private keys, and API tokens, and may potentially escalate to remote code execution when combined with other vulnerabilities.

Published
4 Mar 2026
Last modified
4 Nov 2026
Assigned by
security@huntr.dev
NVD status
Modified
Weakness
CWE-22
Also known as
GHSA-68j8-pq59-fqgmPYSEC-2026-98
Sources
NVDJSONOSV GHSA-68j8-pq59-fqgmJSONOSV PYSEC-2026-98JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
OSV PyPA CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD security@huntr.dev (Secondary) CVSS 3.0 HIGH 8.6 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
OSV GitHub CVSS 3.0 HIGH 8.6 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD nltk nltk
cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:*
<= 3.9.2
OSV PyPI nltk < 3.9.3 3.9.3

References

History

  • 25 Nov 2026 21:01 UTC · NVD: first stored (published 4 Mar 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 4 Mar 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 4 Mar 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.