Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft tiny high-ratio ZIP chat export
-
DeliveryVictim app parses it via whatstk
-
Exploitextractall writes huge file to disk
-
Executionf.read/NFKD normalize inflate memory
-
ImpactProcess OOM-killed, service denied
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Compression ratio limits
|
| Exploitation Conditions | Requires that an affected version of whatstk (0.7.0 up to but not including 0.9.0) parse an attacker-supplied chat export through WhatsAppChat.from_source() or df_from_whatsapp(). The ZIP path is the documented iOS WhatsApp export format, so the attacker controls the entire archive; before the fix there was no bound on member size and no compression-ratio check, and the sole guard (requiring exactly one extracted file) ran only after extractall() had already written to disk. Limiting factors: exploitation is Local and needs active user/application interaction - a victim must actually feed the file to whatstk - so the realistic exposure is confined to services or tools that accept and parse untrusted chat exports; there is no remote network-facing vector and no authentication is involved in calling the library. The uncompressed-text path (plain .txt) is affected by the same unbounded read, so the cap is not ZIP-specific. |
| Impact | The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N, base 6.7 MEDIUM) frames this accurately as a local, availability-only denial of service: the only impact metric that is High is VA, while VC and VI are None, consistent with CWE-409 (improper handling of highly compressed data). Attack vector is Local with Active user interaction (UI:A) because a victim process must be fed and must parse the attacker's chat export - there is no remote, service-side vector unless an application deliberately exposes whatstk parsing to untrusted uploads. Not in CISA KEV, so exploitation status is not confirmed active; no EPSS score was supplied in the input, so probabilistic exploitation likelihood cannot be quantified here. The vendor priority label is 'this_month' (not act_now/emergency), which matches a self-contained resource-exhaustion bug rather than a code-execution or data-breach emergency. Net: this is a genuine but bounded availability risk - real priority only for systems that parse attacker-supplied WhatsApp exports (e.g. an upload/analysis service built on whatstk); for ad-hoc local analysis of one's own exports the practical risk is low. No confidentiality or integrity exposure despite the (incorrect) 'Information Disclosure' tag in the input. |
| Exploit ScenarioDerived | An attacker sends a victim a small WhatsApp iOS chat-export ZIP (tens of KB) that decompresses to hundreds of megabytes of repetitive text. When the victim's application calls WhatsAppChat.from_source() or df_from_whatsapp() on it, _str_from_file() runs zip_ref.extractall() with no size or compression-ratio bound and then f.read()s the whole member, so a tiny upload inflates to hundreds of MB of disk and several multiples of that in memory, and the process is killed where that exceeds available resources. No standalone weaponized exploit is published, but the fix PR's regression tests demonstrate how to construct the bomb (a single highly compressible member repeated ~200,000 times). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 10, 2026
Memory and disk exhaustion in whatstk 0.7.0 through 0.8.x lets anyone who supplies a chat export force the parsing process to expand a small archive into hundreds of megabytes of decompressed text, ultimately killing it where memory is constrained. The ZIP loader calls zipfile.extractall() with no cap on member size and no compression-ratio check, then reads the extracted file in full; the single-file guard runs only after extraction has already written to disk. The flaw is availability-only (CVSS 4.0 base 6.7, AV:L/UI:A, VA:H, no confidentiality or integrity impact) and requires a victim to actually feed the malicious export to WhatsAppChat.from_source() or df_from_whatsapp(); no public exploit code was identified at time of analysis, and vendor fixes ship in 0.9.0.
RemediationAI
Upgrade whatstk to 0.9.0, the vendor-released fix that caps input at MAX_INPUT_SIZE (50 MiB) by default, checks the ZIP member count before decompressing anything, reads the member straight from the archive rather than extracting it to disk, and applies a bounded read for URL sources; the change is in PR #182 / commit 01d66d8 and the release at https://github.com/lucasrodes/whatstk/releases/tag/v0.9.0, with the advisory at https://secur0.com/en/cna/cve-list/cve-2026-121691-whatstk-zip-decompression-bomb. Where upgrading is not immediately possible, the practical compensating controls are to place a hard decompressed-size and compression-ratio limit in front of any service that accepts chat exports (rejecting archives whose expansion factor is implausible, at the cost of occasionally refusing legitimate large exports), to run the parser in a process or container with a strict memory and disk quota so an over-large export kills only the sandboxed worker, and to restrict who can submit exports to trusted users - noting that on 0.8.x and earlier there is no in-library size parameter to tune, and the library's own single-file check still runs only after extraction, so it provides no protection on its own. Callers who adopt 0.9.0 should avoid passing max_size=None unless the input is fully trusted, since that disables the only size guard.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
whatstk parses WhatsApp chat exports, and on iOS those exports arrive as a ZIP archive, which is a documented input form for WhatsAppChat.from_source() and df_from_whatsapp(). The vulnerable path lives in whatstk/whatsapp/parser.py, where _str_from_file() invoked zip_ref.extractall() with no limit on the decompressed size of archive members and no check of the compression ratio. The only sanity check counted the extracted files and raised unless exactly one was present, but that check sat after extractall(), so the full decompression cost was already paid before rejection. The extracted file was then read entirely with f.read(), _clean_text() ran unicodedata.normalize("NFKD", text) creating a second full copy of the string, and the parse built a list of regular-expression matches plus a DataFrame over it, so peak memory was a multiple of the decompressed text rather than of the archive - the classic CWE-409 (Improper Handling of Highly Compressed Data) decompression-bomb pattern. The upstream fix in PR #182 / commit 01d66d8 introduces MAX_INPUT_SIZE (50 MiB) as a max_size parameter defaulted on both df_from_whatsapp and _str_from_file, validates member count before any decompression, reads the member directly from the archive instead of extracting to a temporary directory, and uses a bounded read for URL inputs where no trustworthy size is known upfront. Notably, the cap applies to plain .txt inputs as well, since the unbounded read was never ZIP-specific; callers can opt out by passing max_size=None.
Know when Whatstk gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Attacker-supplied file parsed locally so AV:L and UI:R; no auth to invoke the library so PR:N; only process availability is harmed, hence C:N/I:N/A:H.
Primary rating from Vendor (Secur0).
CVSS VectorVendor: Secur0
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
EUVD-2026-121394
GHSA-q683-6fhr-jvg2
NVD
CVE.org
EPSS
Exploit-DB