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.
Published: 2026-08-27
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Filesystem Manipulation
Action: Apply Patch
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Tue, 01 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Thu, 27 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 27 Aug 2026 16:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-27T17:43:34.469Z

Reserved: 2026-08-27T11:15:29.420Z

Link: CVE-2026-81727

cve-icon Vulnrichment

Updated: 2026-08-27T17:43:07.927Z

cve-icon NVD

Status : Analyzed

Published: 2026-08-27T17:21:03.533

Modified: 2026-08-31T19:08:45.560

Link: CVE-2026-81727

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-27T14:51:19Z

Links: CVE-2026-81727 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-27T22:30:03Z

Weaknesses
  • CWE-59

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