Skip to content
Heist/ feed
Back to feed
LowFix available

nltk — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-71514

NLTK 3.9.4 through 3.10.2 contains a path traversal vulnerability in CrubadanCorpusReader. _load_lang_ngrams joins the corpus root with crubadan_code, the column-0 value read from the corpus table.txt mapping file, and opens the result with the builtin open() rather than the pathsec-validated opener, so os.path.join discards the root when that value is absolute and the read escapes the corpus directory without the containment check nltk.pathsec applies when ENFORCE is set. An attacker who controls a corpus package can disclose file contents outside the corpus root through lang_freq, limited to paths ending in -3grams.txt whose contents parse as token count lines.

Products
nltk
Affected versions
3.10.0-1, 3.10.1-1, 3.10.3-1, 3.8-1, 3.8.1-1, 3.9.1-1, 3.9.1-2, 3.9.2-1, 3.9.3-1
Fixed versions
3.10.3-1
CVEs
CVE-2026-71514
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 16:21 UTC · Revision 1

Source evidence

DEBIAN-CVE-2026-71514

core-osv · Original source

Published 22 Aug 2026, 14:16 UTC

NLTK 3.9.4 through 3.10.2 contains a path traversal vulnerability in CrubadanCorpusReader. _load_lang_ngrams joins the corpus root with crubadan_code, the column-0 value read from the corpus table.txt mapping file, and opens the result with the builtin open() rather than the pathsec-validated opener, so os.path.join discards the root when that value is absolute and the read escapes the corpus directory without the containment check nltk.pathsec applies when ENFORCE is set. An attacker who controls a corpus package can disclose file contents outside the corpus root through lang_freq, limited to paths ending in -3grams.txt whose contents parse as token count lines.

osv:DEBIAN-CVE-2026-71514

nltk

Fixed versions: Not specified

nltk

Fixed versions: Not specified

nltk

Fixed versions: 3.10.3-1

Complete source record
{
  "id": "611e2b2069d5217396f4c62114b4eedcb1899e5cad528e1eb057339b78f592f6",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-71514",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-71514",
    "summary": "NLTK 3.9.4 through 3.10.2 contains a path traversal vulnerability in CrubadanCorpusReader. _load_lang_ngrams joins the corpus root with crubadan_code, the column-0 value read from the corpus table.txt mapping file, and opens the result with the builtin open() rather than the pathsec-validated opener, so os.path.join discards the root when that value is absolute and the read escapes the corpus directory without the containment check nltk.pathsec applies when ENFORCE is set. An attacker who controls a corpus package can disclose file contents outside the corpus root through lang_freq, limited to paths ending in -3grams.txt whose contents parse as token count lines.",
    "evidence": "osv:DEBIAN-CVE-2026-71514",
    "products": [
      {
        "name": {
          "value": "nltk",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.10.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.10.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.10.3-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.8-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.8.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.9.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.9.1-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.9.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.9.3-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "nltk",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.10.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.10.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.10.3-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.9.1-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.9.2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.9.3-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "nltk",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.10.3-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "3.10.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.10.1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.9.1-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.9.2-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.9.3-1",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "low",
    "structured": {
      "id": "DEBIAN-CVE-2026-71514",
      "aliases": [
        "DEBIAN-CVE-2026-71514"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "nltk",
            "purl": "pkg:deb/debian/nltk?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "3.10.0-1",
            "3.10.1-1",
            "3.10.3-1",
            "3.8-1",
            "3.8.1-1",
            "3.9.1-1",
            "3.9.1-2",
            "3.9.2-1",
            "3.9.3-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-71514.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "nltk",
            "purl": "pkg:deb/debian/nltk?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "3.10.0-1",
            "3.10.1-1",
            "3.10.3-1",
            "3.9.1-2",
            "3.9.2-1",
            "3.9.3-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-71514.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.10.3-1"
                }
              ]
            }
          ],
          "package": {
            "name": "nltk",
            "purl": "pkg:deb/debian/nltk?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "3.10.0-1",
            "3.10.1-1",
            "3.9.1-2",
            "3.9.2-1",
            "3.9.3-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-71514.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-15T09:47:30.555742557Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-71514"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-71514"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-71514",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 327553,
  "published_at": "2026-08-22T14:16:33.56+00:00"
}