---
id: CVE-2026-81724
title: 'nltk: NLTK: Denial of Service via Uncontrolled Recursion (CVE-2026-81724)'
summary: >-
  A flaw was found in NLTK. This uncontrolled recursion vulnerability in
  `nltk.featstruct.FeatStructReader` allows unauthenticated attackers to cause a
  denial of service. Attackers can achieve this by supplying deeply nested
  feature-structur…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cvssSource: vendor
cwe:
  - CWE-606
  - CWE-674
vendor: Red Hat
product: Red Hat OpenShift AI (RHOAI)
affected:
  - exploit_intelligence
  - lightspeed_core
  - openshift_lightspeed
  - ansible_automation_platform 2
  - openshift_ai_rhoai
  - openshift_ai 3.5
patched:
  - openshift_ai 3.5
published: '2026-08-27'
updated: '2026-09-22'
sourceUpdated: '2026-09-22T05:58:51+00:00'
source: CSAF
sourceUrl: 'https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-81724.json'
references:
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-81724.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-81724'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2525072'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-81724'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-81724'
  - url: 'https://github.com/nltk/nltk/security/advisories/GHSA-cw6x-m8jw-qmrh'
  - url: >-
      https://www.vulncheck.com/advisories/nltk-before-3.10.3-denial-of-service-via-uncontrolled-recursion
  - url: 'https://access.redhat.com/errata/RHSA-2026:69539'
  - url: >-
      https://github.com/nltk/nltk/commit/43c7b78cc8ea37e5cd3a129e27e32c415ea21cf1
  - url: 'https://github.com/nltk/nltk/releases/tag/v3.10.3'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3739.yaml
  - url: 'https://github.com/advisories/GHSA-cw6x-m8jw-qmrh'
tags:
  - csaf
  - vex
  - red-hat
  - ghsa
  - pip
  - score-dispute
epss: 0.00456
epssPercentile: 0.36946
aliases:
  - GHSA-cw6x-m8jw-qmrh
ecosystem: pip
scores:
  vendor: 7.5
  ghsa: 5.3
ingestedAt: '2026-09-02T14:45:30.430Z'
---

## Overview

A flaw was found in NLTK. This uncontrolled recursion vulnerability in `nltk.featstruct.FeatStructReader` allows unauthenticated attackers to cause a denial of service. Attackers can achieve this by supplying deeply nested feature-structure input, which can lead to applications crashing when parsing user-supplied feature structures or feature grammars.

## Vendor advisories

- **RHSA-2026:69539** · Red Hat · fixed in: Red Hat OpenShift AI 3.5 · released 2026-09-21 · [advisory](https://access.redhat.com/errata/RHSA-2026:69539)
- **Red Hat VEX** · Important · affected: Exploit Intelligence, Lightspeed Core, OpenShift Lightspeed, Red Hat Ansible Automation Platform 2, Red Hat OpenShift AI (RHOAI) · no fix planned: Exploit Intelligence, Red Hat Ansible Automation Platform 2, Lightspeed Core, OpenShift Lightspeed, … · updated 2026-09-22 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-81724.json)

**nltk: NLTK: Denial of Service via Uncontrolled Recursion** — rated Important by Red Hat. Released 2026-08-27, updated 2026-09-22.

Affected:

- Exploit Intelligence
- Lightspeed Core
- OpenShift Lightspeed
- Red Hat Ansible Automation Platform 2
- Red Hat OpenShift AI (RHOAI)

Fixed:

- Red Hat OpenShift AI 3.5

No fix planned:

- Exploit Intelligence
- Red Hat Ansible Automation Platform 2
- Lightspeed Core
- OpenShift Lightspeed
- Red Hat OpenShift AI (RHOAI)

Not affected:

- Red Hat OpenShift AI 3.5
- OpenShift Lightspeed

## Remediation

For Red Hat OpenShift AI 3.5.1 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this errata update:

https://docs.redhat.com/en/documentation/red_hat_openshift_ai/ https://access.redhat.com/errata/RHSA-2026:69539

Workarounds / mitigations:

- Applications that process untrusted feature-structure input using NLTK should implement robust input validation and sanitization to prevent deeply nested structures from being processed by `nltk.featstruct.FeatStructReader`. If input cannot be validated, avoid processing untrusted feature-structure input with affected versions of NLTK.

## Package advisory (CVE-2026-81724)

Affected packages:

- `nltk <= 3.10.2`

Patched in:

- `nltk 3.10.3`

Source: https://github.com/advisories/GHSA-cw6x-m8jw-qmrh
