CVE-2026-65627

Decompression bomb via unbounded zlib:inflate in jose_jwe_zip:uncompress/2

Published Oct 26, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in potatosalad jose (erlang-jose) allows a remote attacker to exhaust a node's memory with a small crafted JWE token.

The jose_jwe_zip:uncompress/2 function in src/jwe/jose_jwe_zip.erl decompresses the DEFLATE-compressed plaintext of a JWE that carries the optional zip: DEF header by calling zlib:inflate/2 on the entire attacker-controlled stream, with no bound on the output size or the inflation ratio. Raw DEFLATE reaches ratios around 1000:1 on highly repetitive input, so a few-kilobyte token inflates to hundreds of megabytes or gigabytes in a single call.

Decompression runs automatically during decryption through jose_jwe:block_decrypt/2 (JOSE.JWE.block_decrypt/2 in Elixir), before the recipient can inspect or reject the payload. With the common asymmetric key-management algorithms (RSA-OAEP, ECDH-ES) an attacker needs only the recipient's public key to craft such a token, so no authentication or secret material is required. A single small token can exhaust the node's memory and crash the BEAM, denying service to all users.

This issue affects jose: from 1.0.0 before 1.11.13.

Analysis

AI-generated

Technical impact

Improper handling of highly compressed data in the jose_jwe_zip:uncompress/2 function allows a remote attacker to send a very small JWE token that, when decompressed, expands to hundreds of megabytes or more, exhausting the BEAM process's memory and causing a crash. The attacker only needs the recipient's public key and requires no authentication or secret material, making the attack straightforward. The resulting memory exhaustion leads to a denial of service for all users of the affected node.

Affected Systems

The vulnerability affects potatosalad jose (erlang‑jose) from version 1.0.0 up to and including 1.11.12. Any deployment using these versions is susceptible. Versions 1.11.13 and later are not affected.

Risk and Exploitability

With a CVSS score of 6.9 the vulnerability is classified as moderate. EPSS data is not available, and the issue is not listed in the CISA KEV catalog. The attack vector is network-based: the attacker crafts a JWE token with a zip: DEF header and transmits it to the target system. The malicious payload automatically triggers during decryption, making exploitation trivial and immediate.

Remediation

Vendor Workaround

Reject JWE tokens that carry a zip header before passing them to jose_jwe:block_decrypt/2. DEFLATE compression is rarely used in legitimate JWE traffic, so untrusted tokens whose protected header contains zip: DEF can be inspected and filtered out before decryption.


OpenCVE Recommended Actions

  • Implement the official workaround by inspecting the JWE header and rejecting any token that contains a zip: DEF header before calling jose_jwe:block_decrypt/2.
  • Upgrade potatosalad jose to version 1.11.13 or later, when the upstream fix is available.
  • Add monitoring or limits on memory usage and application restart policies to detect and recover from unexpected memory exhaustion events.

Generated by OpenCVE AI on October 27, 2026 at 01:18 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': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Important

Type Values Removed Values Added
Description Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in potatosalad jose (erlang-jose) allows a remote attacker to exhaust a node's memory with a small crafted JWE token. The jose_jwe_zip:uncompress/2 function in src/jwe/jose_jwe_zip.erl decompresses the DEFLATE-compressed plaintext of a JWE that carries the optional zip: DEF header by calling zlib:inflate/2 on the entire attacker-controlled stream, with no bound on the output size or the inflation ratio. Raw DEFLATE reaches ratios around 1000:1 on highly repetitive input, so a few-kilobyte token inflates to hundreds of megabytes or gigabytes in a single call. Decompression runs automatically during decryption through jose_jwe:block_decrypt/2 (JOSE.JWE.block_decrypt/2 in Elixir), before the recipient can inspect or reject the payload. With the common asymmetric key-management algorithms (RSA-OAEP, ECDH-ES) an attacker needs only the recipient's public key to craft such a token, so no authentication or secret material is required. A single small token can exhaust the node's memory and crash the BEAM, denying service to all users. This issue affects jose: from 1.0.0 before 1.11.13.
Title Decompression bomb via unbounded zlib:inflate in jose_jwe_zip:uncompress/2
First Time appeared Potatosalad
Potatosalad jose
Weaknesses CWE-409
CPEs cpe:2.3:a:potatosalad:jose:*:*:*:*:*:*:*:*
Vendors & Products Potatosalad
Potatosalad jose
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 2, 2026, 9:25 PM
Reserved
Jul 22, 2026, 1:58 PM
Status
Deferred
Published
Oct 26, 2026, 8:17 PM
Modified
Nov 2, 2026, 10:17 PM
Severity
Important
Public date
Oct 26, 2026, 7:53 PM