CVE-2026-81727

NLTK before 3.10.3 Hardlink File Overwrite via downloader

Published Aug 27, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
NLTK versions before 3.10.3 contain a filesystem containment bypass vulnerability in the Downloader.download and Downloader.incr_download methods that allows attackers to overwrite files outside the install root through pre-existing hardlinks. Attackers with write access to a shared downloader directory can create hardlinks pointing to outside-root files that are then overwritten during normal package extraction, mutating files outside the intended install tree.

Analysis

AI-generated

Technical impact

NLTK versions prior to 3.10.3 contain a filesystem containment bypass in the Downloader.download and Downloader.incr_download methods. This flaw allows an attacker who has write access to the shared downloader directory to create hardlinks that point to files located outside the intended install tree. When the package is downloaded and extracted, those hardlinked files are overwritten by the package contents, effectively allowing the attacker to modify arbitrary files on the system.

Affected Systems

The NLTK library released under the package name NLTK, version 3.10.3 and earlier, is susceptible to this issue.

Risk and Exploitability

The vulnerability has a CVSS score of 6.9, indicating moderate impact. EPSS data is not available, and the flaw has not been identified as a Known Exploited Vulnerability by CISA. Based on the description, the likely attack vector is a local attacker who can write to the downloader directory. Successful exploitation would enable overwrite of files outside the installation root, compromising confidentiality, integrity, and potentially availability of system components.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the NLTK library to version 3.10.3 or later to remove the hardlink overwrite flaw.
  • Restrict write permissions to the shared downloader directory so that only trusted users can write files there; consider mounting it as read‑only or changing its ownership.
  • Audit the directory for existing hardlinks that point outside the intended installation tree and delete any that are found to reduce residual risk.

Generated by OpenCVE AI on August 27, 2026 at 18:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-f794-5jv7-7672 NLTK: Downloader.download follows hardlinks and overwrites outside-root files
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description NLTK versions before 3.10.3 contain a filesystem containment bypass vulnerability in the Downloader.download and Downloader.incr_download methods that allows attackers to overwrite files outside the install root through pre-existing hardlinks. Attackers with write access to a shared downloader directory can create hardlinks pointing to outside-root files that are then overwritten during normal package extraction, mutating files outside the intended install tree.
Title NLTK before 3.10.3 Hardlink File Overwrite via downloader
First Time appeared Nltk
Nltk nltk
Weaknesses CWE-59
CPEs cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:*
Vendors & Products Nltk
Nltk nltk
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 27, 2026, 5:43 PM
Reserved
Aug 27, 2026, 11:15 AM
Status
Analyzed
Published
Aug 27, 2026, 5:21 PM
Modified
Aug 31, 2026, 7:08 PM
Severity
Important
Public date
Aug 27, 2026, 2:51 PM