Security mailing lists by PureSourceCode

CVE-2026-0846

HIGH 7.5CVSS 3.1

NLTK has Arbitrary File Read via Absolute Path Input in nltk.util.filestring()

A vulnerability in the filestring() function of the nltk.util module in nltk version 3.9.2 allows arbitrary file read due to improper validation of input paths. The function directly opens files specified by user input without sanitization, enabling attackers to access sensitive system files by providing absolute paths or traversal paths. This vulnerability can be exploited locally or remotely, particularly in scenarios where the function is used in web APIs or other interfaces that accept user-supplied input.

Published
9 Mar 2026
Last modified
15 Jul 2026
Assigned by
security@huntr.dev
NVD status
Modified
Weakness
CWE-22CWE-36
Also known as
GHSA-h8wq-7xc4-p3qxPYSEC-2026-97
Sources
NVDJSONOSV GHSA-h8wq-7xc4-p3qxJSONOSV PYSEC-2026-97JSON

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:*:*:*:*:*:*:*
= 3.9.2
OSV PyPI nltk < 3.9.3 3.9.3
OSV PyPI nltk <= 3.9.2

References

History

  • 25 Nov 2026 21:01 UTC · NVD: first stored (published 9 Mar 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Mar 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 9 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.