{"id":"CVE-2026-119434","published":"2026-11-05T20:15:56Z","modified":"2026-11-19T07:54:21Z","title":"Decompression bomb in ezstd:decompress_using_ddict/2 allows BEAM memory exhaustion via unbounded output buffer","vendor":"silviucpp","product":"ezstd","tier":"tail","description":{"text":"Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in silviucpp ezstd allows an attacker who supplies a zstd frame to ezstd:decompress_using_ddict/2 to exhaust memory and terminate the Erlang VM via a small frame that declares a very large content size.\n\nzstd_nif_decompress_using_ddict in c_src/ezstd_nif.cc reads the frame's declared content size with ZSTD_getFrameContentSize and passes it directly to enif_make_new_binary, without the 1 GiB MAX_BUFFER_SIZE check that ezstd:decompress/1 applies before allocating. A valid 65,550-byte frame of RLE blocks declaring 2 GiB is rejected by ezstd:decompress/1 but is fully allocated and decompressed by the dictionary path. The allocation happens inside a NIF, so when it exceeds the memory available to the VM the operating system kills the whole node rather than the calling process.\n\nThis issue affects ezstd: from 1.0.5 before 1.2.5.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00178,"percentile":0.07532,"provenance":"source"},"cwes":[{"id":"CWE-409","name":"Improper Handling of Highly Compressed Data (Data Amplification)"}],"references":[{"url":"https://github.com/silviucpp/ezstd/releases/tag/v1.2.5","tags":["release-notes","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-119434.html","tags":["related","third-party-advisory"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-119434","tags":["related"]},{"url":"https://github.com/silviucpp/ezstd/commit/6730128b1d35eca02a2028671421471ff651f423","tags":["related"]},{"url":"https://github.com/silviucpp/ezstd/commit/e34f4a4f6dc18d990d1cece2d5fceef8e934a195","tags":["patch"]}],"priority":{"score":6.3,"factors":[{"name":"EPSS percentile","points":1.51},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"silviucpp","affectedVersions":[{"vendor":"silviucpp","product":"ezstd","versions":[">= 1.0.5, < 1.2.5"]},{"vendor":"silviucpp","product":"ezstd","versions":[">= 6730128b1d35eca02a2028671421471ff651f423, < e34f4a4f6dc18d990d1cece2d5fceef8e934a195"]}],"workarounds":{"items":["Replace calls to ezstd:decompress_using_ddict/2 with the streaming API: create a context with ezstd:create_decompression_context/1 using a small output buffer, attach the dictionary with ezstd:select_ddict/2, and decompress with ezstd:decompress_streaming/2. The streaming path decompresses into the caller-sized buffer and gives up with {error, decompressor_stuck} after 1000 chunks, so a 64 KiB buffer caps a single call at 64 MiB of output. Treat that error as a rejected input. Legitimate frames whose output exceeds 1000 times the buffer size fail the same way, so size the buffer for the largest expected payload."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-130","name":"An attacker who can submit a zstd frame to a service that decompresses it with a fixed dictionary can crash the entire Erlang VM with a single request of about 65 KiB. Every application and process hosted in that VM is taken down, not only the one that called the decompressor."}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-05T20:45:27.204341Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-117783","exploited":false,"provenance":"source"}}