Files
vuln-cve/data/2026/121xxx/CVE-2026-121691.json
T

199 lines
9.9 KiB
JSON

{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2026-121691",
"assignerOrgId": "4daa8cea-433a-44bd-9456-53b127fc289a",
"state": "PUBLISHED",
"assignerShortName": "Secur0",
"dateReserved": "2026-11-03T20:07:54.134Z",
"datePublished": "2026-11-10T17:29:34.562Z",
"dateUpdated": "2026-11-10T17:29:34.562Z"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "4daa8cea-433a-44bd-9456-53b127fc289a",
"shortName": "Secur0",
"dateUpdated": "2026-11-10T17:29:34.562Z"
},
"title": "Unbounded decompression in the whatstk ZIP loader exhausts memory and disk",
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"cweId": "CWE-409",
"description": "CWE-409 Improper Handling of Highly Compressed Data (Data Amplification)",
"type": "CWE"
}
]
}
],
"affected": [
{
"vendor": "lucasrodes",
"product": "whatstk",
"collectionURL": "https://pypi.org",
"packageName": "whatstk",
"repo": "https://github.com/lucasrodes/whatstk",
"programFiles": [
"whatstk/whatsapp/parser.py"
],
"versions": [
{
"status": "affected",
"version": "0.7.0",
"lessThan": "0.9.0",
"versionType": "semver"
}
],
"defaultStatus": "unaffected"
}
],
"cpeApplicability": [
{
"operator": "OR",
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:lucasrodes:whatstk:*:*:*:*:*:python:*:*",
"versionStartIncluding": "0.7.0",
"versionEndExcluding": "0.9.0"
}
]
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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.",
"supportingMedia": [
{
"type": "text/html",
"base64": false,
"value": "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 <code>_str_from_file()</code> (<code>whatstk/whatsapp/parser.py</code>) calls <code>zip_ref.extractall()</code> with no bound on the size of the members and no check of the compression ratio, then reads the extracted file in full with <code>f.read()</code>. The only guard on the archive counts the extracted files and raises when there is not exactly one, but it runs after <code>extractall()</code> has already written them, so it does not prevent the cost. <code>_clean_text()</code> then passes the whole text through <code>unicodedata.normalize(\"NFKD\", text)</code>, 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 <code>WhatsAppChat.from_source()</code> and <code>df_from_whatsapp()</code>, 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."
}
]
}
],
"tags": [
"x_open-source"
],
"references": [
{
"url": "https://github.com/lucasrodes/whatstk/pull/182",
"tags": [
"patch"
]
},
{
"url": "https://github.com/lucasrodes/whatstk/commit/01d66d8",
"tags": [
"patch"
]
},
{
"url": "https://github.com/lucasrodes/whatstk/releases/tag/v0.9.0",
"tags": [
"release-notes"
]
},
{
"url": "https://secur0.com/en/cna/cve-list/cve-2026-121691-whatstk-zip-decompression-bomb",
"tags": [
"third-party-advisory",
"technical-description"
]
}
],
"metrics": [
{
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
],
"cvssV4_0": {
"attackVector": "LOCAL",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"privilegesRequired": "NONE",
"userInteraction": "ACTIVE",
"vulnConfidentialityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"subIntegrityImpact": "NONE",
"vulnAvailabilityImpact": "HIGH",
"subAvailabilityImpact": "NONE",
"exploitMaturity": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"valueDensity": "NOT_DEFINED",
"vulnerabilityResponseEffort": "NOT_DEFINED",
"providerUrgency": "NOT_DEFINED",
"version": "4.0",
"baseSeverity": "MEDIUM",
"baseScore": 6.7,
"vectorString": "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"
}
}
],
"solutions": [
{
"lang": "en",
"value": "Upgrade to whatstk 0.9.0 or later, which rejects a source larger than 50 MB by default and accepts a max_size argument to lower that bound.",
"supportingMedia": [
{
"type": "text/html",
"base64": false,
"value": "Upgrade to whatstk 0.9.0 or later, which rejects a source larger than 50 MB by default and accepts a <code>max_size</code> argument to lower that bound."
}
]
}
],
"credits": [
{
"lang": "en",
"value": "Jorge Rey Cotallo (reddev)",
"type": "finder"
},
{
"lang": "en",
"value": "Xoán M. Otero Jorge",
"type": "analyst"
},
{
"lang": "en",
"value": "Darío Rivas",
"type": "analyst"
},
{
"lang": "en",
"value": "Secur0 CNA",
"type": "coordinator"
},
{
"lang": "en",
"value": "Lucas Rodés-Guirao",
"type": "remediation developer"
}
],
"source": {
"discovery": "EXTERNAL"
},
"x_generator": {
"engine": "Vulnogram 1.0.5"
}
}
}
}