CVE-2026-121691
Received Received - Intake

Memory Exhaustion in whatstk ZIP Parser

Vulnerability report for CVE-2026-121691, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-10

Last updated on: 2026-11-10

Assigner: Secur0

Description

Improper Handling of Highly Compressed Data (CWE-409) in the ZIP loader of whatstk from 0.7.0 before 0.9.0 allows a party that supplies a chat export to exhaust the memory and the disk of the process that parses it, because _str_from_file() (whatstk/whatsapp/parser.py) calls zip_ref.extractall() with no bound on the size of the members and no check of the compression ratio, then reads the extracted file in full with f.read(). The only guard on the archive counts the extracted files and raises when there is not exactly one, but it runs after extractall() has already written them, so it does not prevent the cost. _clean_text() then passes the whole text through unicodedata.normalize("NFKD", text), which holds a second copy, and the parse builds a list of regular expression matches and a DataFrame over it, so peak memory is a multiple of the decompressed text rather than of the archive. A ZIP is a documented input of WhatsAppChat.from_source() and df_from_whatsapp(), and is the form in which WhatsApp exports a chat on iOS, so the attacker supplies the whole file. This results in a small upload costing hundreds of megabytes of memory and of disk, and in the process being killed where that exceeds what is available.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-10
Last Modified
2026-11-10
Generated
2026-11-11
AI Q&A
2026-11-10
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
lucasrodes whatstk From 0.7.0 (inc) to 0.9.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-409 The product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an Improper Handling of Highly Compressed Data (CWE-409) in the whatstk library's ZIP loader. It allows a malicious ZIP file to cause memory and disk exhaustion by exploiting unbounded decompression. The parser extracts files without size limits, reads them fully into memory, and processes the text through normalization and regex matching, amplifying resource usage. A small upload can expand to hundreds of megabytes of memory and disk usage.

Detection Guidance

Monitor for unusually high memory or disk usage when processing ZIP files with whatstk. Check for processes using excessive resources after handling WhatsApp chat exports. Use tools like top, htop, or ps to track memory consumption during parsing operations.

Impact Analysis

This vulnerability can impact you by causing system crashes or slowdowns due to excessive memory and disk usage. If you process WhatsApp chat exports using whatstk versions 0.7.0 to 0.9.0, a maliciously crafted ZIP file could exhaust your system's resources, leading to denial of service or data loss. Upgrading to version 0.9.0 or later mitigates this risk.

Mitigation Strategies

Upgrade whatstk to version 0.9.0 or later to enforce a 50 MB size limit for decompressed data. Avoid processing untrusted ZIP files from WhatsApp exports until updated. Set max_size parameter explicitly if using the library programmatically.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-121691. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...