CVE-2026-119434

Decompression bomb in ezstd:decompress_using_ddict/2 allows BEAM memory exhaustion via unbounded output buffer

Published Nov 5, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
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.

zstd_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.

This issue affects ezstd: from 1.0.5 before 1.2.5.

Analysis

AI-generated

Technical impact

The vulnerability resides in the ezstd NIF function that decompresses zstd frames with an attached dictionary. When a frame declares a content size far larger than the actual compressed data, the function passes the declared size straight to the Erlang memory allocator without performing the 1 GiB maximum buffer check used by the regular decompress/1 function. The size is therefore used to allocate a new binary inside the NIF context, which can exceed the Erlang VM's memory limits and cause the operating system to terminate the entire node, resulting in a denial‑of‑service condition.

Affected Systems

This issue affects the silviucpp ezstd library, specifically versions from 1.0.5 through 1.2.4. Any Erlang or BEAM application that links against these versions and uses the ezstd:decompress_using_ddict/2 API is potentially vulnerable, including systems that load the library as part of larger distributed workflows.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity, and the EPSS score is not available, suggesting limited publicly reported exploitation. The vulnerability is not listed in CISA's KEV catalog. An attacker must be able to supply a crafted zstd frame that targets the vulnerable API, which may be achieved over a network connection, file upload, or other input channels used by the application. Once the malicious data is processed, memory exhaustion will occur, leading to node termination.

Remediation

Vendor Workaround

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.


OpenCVE Recommended Actions

  • Upgrade ezstd to version 1.2.5 or later to apply the vendor patch that restores the maximum buffer size check
  • Replace any use of ezstd:decompress_using_ddict/2 with the streaming decompression API, creating a context with a bounded output buffer (e.g., 64 KiB) and handling the {error,decompressor_stuck} result as malformed input
  • Apply the official workaround by configuring the streaming context to limit decompression to 64 MiB per call, and reject any payload that causes the decompressor to fail

Generated by OpenCVE AI on November 5, 2026 at 21:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.2, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Description 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. zstd_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. This issue affects ezstd: from 1.0.5 before 1.2.5.
Title Decompression bomb in ezstd:decompress_using_ddict/2 allows BEAM memory exhaustion via unbounded output buffer
First Time appeared Silviucpp
Silviucpp ezstd
Weaknesses CWE-409
CPEs cpe:2.3:a:silviucpp:ezstd:*:*:*:*:*:*:*:*
Vendors & Products Silviucpp
Silviucpp ezstd
References
Metrics cvssV4_0

{'score': 6.9, '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'}

Weaknesses
  • CWE-409

    Improper Handling of Highly Compressed Data (Data Amplification)

Sources

Status
PUBLISHED
Assigner
EEF
Published
Updated
Nov 19, 2026, 7:54 AM
Reserved
Oct 30, 2026, 10:30 AM
Status
Deferred
Published
Nov 5, 2026, 9:18 PM
Modified
Nov 12, 2026, 8:07 PM
Severity
Moderate
Public date
Nov 5, 2026, 8:15 PM