PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-129231 nltk CVE debrief

CVE-2026-129231 is a vulnerability in NLTK's SeekableUnicodeStreamReader.readline function, which can lead to a denial of service (DoS) due to quadratic CPU consumption when processing an attacker-controlled corpus file with a very long unterminated line. This issue arises because the readline function appends each new block to a growing character buffer and reruns splitlines over the entire buffer on every iteration. The vulnerability is particularly concerning in systems that process untrusted or user-supplied corpus files, as it can cause significant performance degradation and potential system resource exhaustion. Defenders should assess exposure and prioritize patching or miti

Vendor
nltk
Product
Unknown
CVSS
MEDIUM 5.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-11-19
Original CVE updated
2026-11-20
Advisory published
2026-11-19
Advisory updated
2026-11-20

Who should care

Defenders responsible for systems that process untrusted or user-supplied corpus files using NLTK should assess exposure and prioritize patching or mitigating this vulnerability. This includes operators of systems that use NLTK for natural language processing tasks, as well as security teams responsible for monitoring and securing these systems. Additionally, platform administrators and vulnerability management teams should be aware of this vulnerability

Why it matters

CVE-2026-129231 is a vulnerability in NLTK's SeekableUnicodeStreamReader.readline function that can lead to a denial of service (DoS) due to quadratic CPU consumption. Defenders should prioritize patching or mitigating this vulnerability, especially in systems that process untrusted or user-supplied corpus files.

  • Denial of service (DoS) due to quadratic CPU consumption
  • Potential for system resource exhaustion
  • Need for verification of NLTK version and corpus file handling
  • Possible impact on system availability and performance

Technical summary

The vulnerability is caused by the readline function in SeekableUnicodeStreamReader appending each new block to a growing character buffer and rerunning splitlines over the entire buffer on every iteration. This results in quadratic CPU consumption when processing an attacker-controlled corpus file with a very long unterminated line. The issue is fixed in version 3.10.4. The vulnerability can be mitigated by restricting access to corpus files to trusted sources only and monitoring systems for unusual CPU consumption patterns. Additionally, defenders should consider implementing additional security measures such as logging and incident response planning.

Defensive priority

Defenders should prioritize patching or mitigating this vulnerability, especially in systems that process untrusted or user-supplied corpus files.

Recommended defensive actions

  • Patch NLTK to version 3.10.4 or later
  • Restrict access to corpus files to trusted sources only
  • Monitor systems for unusual CPU consumption patterns
  • Implement additional logging and monitoring to detect potential attacks
  • Conduct regular security audits to identify and address vulnerabilities
  • Review and update incident response plans to include procedures for handling potential DoS attacks
  • Verify that NLTK is properly configured and secured in the environment

Evidence notes

The vulnerability is caused by the readline function in SeekableUnicodeStreamReader appending each new block to a growing character buffer and rerunning splitlines over the entire buffer on every iteration. This issue is fixed in version 3.10.4.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-129231 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-129231

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-129231 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-129231

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • NLTK: Quadratic-time DoS in SeekableUnicodeStreamReader.readline on an unterminated corpus line

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/129xxx/CVE-2026-129231.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://github.com/nltk/nltk/security/advisories/GHSA-q4c8-9gwf-255x

    Supplemental source - x_refsource_CONFIRM

  • Source reference

    Unverified legacy reference

    URL: https://github.com/nltk/nltk/pull/3895

    Supplemental source - x_refsource_MISC

  • Source reference

    Unverified legacy reference

    URL: https://github.com/nltk/nltk/commit/002bcf714ef8cb8baf94436f4be73e5516914412

    Supplemental source - x_refsource_MISC

  • Source reference

    Unverified legacy reference

    URL: https://github.com/nltk/nltk/releases/tag/v3.10.4

    Supplemental source - x_refsource_MISC

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.