Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Tesla-based service fetching untrusted URLs
-
DeliveryStand up malicious HTTP endpoint serving small gzip bomb
-
ExploitLure or coerce victim into requesting it
-
ExecutionReturn body with stacked content-encoding: gzip, gzip, gzip, gzip
-
PersistTesla middleware recursively inflates to gigabytes of BEAM heap
-
ImpactWorker process OOMs or freezes, denying service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Compression ratio limits
|
| Exploitation Conditions | The target application must (1) use the elixir-tesla 'tesla' library at any version from 0.6.0 through 1.18.2, (2) include Tesla.Middleware.DecompressResponse or Tesla.Middleware.Compression in the middleware pipeline of the affected client, and (3) issue an HTTP request to a server an attacker controls or can tamper with - directly (outbound fetch of attacker-supplied URLs, SSRF, webhook callbacks, federation) or via an on-path MITM of an unencrypted or compromised TLS channel. The vulnerable server response is a small body compressed with gzip or deflate combined with a content-encoding header that either advertises a single deeply-nested gzip stream or stacks codecs (e.g. 'gzip, gzip, gzip, gzip') to trigger recursive amplification. HEAD-method requests are not affected. No authentication, user interaction, or non-default configuration on the Tesla client side beyond having decompression middleware enabled (which is the documented and common pattern) is required. |
| Impact | CVSS 4.0 vector AV:N/AC:L/AT:P/PR:N/UI:N rates this as network-reachable, low complexity, requiring no privileges or user interaction, with the only impact being high availability loss (VA:H, VC:N, VI:N) - score 8.2. The AT:P (attack requirements: present) flag correctly captures that the victim must initiate or follow an HTTP request to an attacker-controlled (or attacker-influenced) endpoint while the Compression/DecompressResponse middleware is enabled. EPSS and CISA KEV data were not supplied; no public exploit identified at time of analysis, though the malicious-server pattern is trivially reproducible from the public commit diff. Real-world priority is high for any backend service that uses Tesla to fetch URLs supplied by users, partners, or webhooks (SSRF-style call paths, scrapers, federation), and moderate for clients that only contact a fixed list of trusted endpoints. Note: the description mentions 'remote' but the practical reach depends on whether the application calls untrusted servers - defenders should verify exposure rather than assume internet-wide reachability. |
| Exploit ScenarioDerived | An attacker who controls or can MITM a URL that a Tesla-based Elixir service fetches (a webhook target, scraped page, federated peer, SSRF-reachable host) returns a few hundred bytes of gzip-compressed data with a content-encoding header of 'gzip, gzip, gzip, gzip'. The DecompressResponse middleware recursively gunzips four times into multi-gigabyte iodata in BEAM heap, OOM-killing the worker or freezing the node. No POC is published, but the malicious-server payload is straightforward to construct from the patch diff and the AV:N/AC:L/PR:N/UI:N CVSS profile means no authentication or user click is required once the request is initiated. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 02, 2026
Denial-of-service in elixir-tesla Tesla versions 0.6.0 through 1.18.2 allows remote servers to crash or freeze calling Elixir/BEAM processes by returning a tiny gzip- or deflate-encoded response body that decompresses into gigabytes. The flaw lives in Tesla.Middleware.DecompressResponse / Tesla.Middleware.Compression, which eagerly inflated response bodies with no size cap and recursed once per token in the content-encoding header, so a header of 'gzip, gzip, gzip, gzip' produced exponential amplification. No public exploit identified at time of analysis, but the vendor has shipped a patch in 1.18.3 and the CVSS 4.0 score of 8.2 (VA:H) reflects high availability impact.
RemediationAI
Upgrade the tesla Hex dependency to 1.18.3 or later, which lands the fix in commit 340f75b5d191dc747ef7ac6365bd002d1cd55a9d (Vendor-released patch: 1.18.3). The patched middleware now requires an explicit :max_body_size option (e.g. {Tesla.Middleware.Compression, format: "gzip", max_body_size: 32 * 1024 * 1024}), streams inflation through :zlib.safeInflate/2 so the cap aborts decompression before the full body materializes, and refuses responses that advertise more than one supported content-encoding codec by raising Tesla.Middleware.Compression.Error - note this is a behavioral break that will surface as ArgumentError on startup until every Compression middleware call site is updated. If you cannot upgrade immediately, remove Tesla.Middleware.DecompressResponse and Tesla.Middleware.Compression from middleware pipelines that talk to untrusted hosts (trade-off: callers must handle compressed bodies manually or accept uncompressed responses), restrict outbound HTTP via an egress proxy that strips or rejects content-encoding stacking, and constrain the BEAM with per-process heap limits (max_heap_size) so a single runaway decompression does not exhaust the node. See the advisory at https://github.com/elixir-tesla/tesla/security/advisories/GHSA-mc85-72gr-vm9f for full guidance.
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
Tesla is a widely used HTTP client library for Elixir applications running on the BEAM virtual machine. The vulnerable code is in lib/tesla/middleware/compression.ex, where decompress_body/2 passed the entire response body to :zlib.gunzip/1 or :zlib.unzip/1 in one shot and recursed across every comma-separated token in the content-encoding header. CWE-409 (Improper Handling of Highly Compressed Data / 'decompression bomb') is the root-cause class: gzip can achieve ~1000x ratios per layer, so four stacked layers (a few hundred bytes on the wire) inflate to gigabytes that the BEAM holds entirely in heap before yielding control. CPE 2.3 pins the affected product as cpe:2.3:a:elixir-tesla:tesla covering all versions in the 0.6.0-1.18.2 range.
Know when Tesla 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:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Primary rating from Vendor (EEF) · only source for this CVE.
CVSS VectorVendor: EEF
Lifecycle Timeline
1DescriptionCVE.org
Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in elixir-tesla tesla allows a denial of service via decompression bomb in HTTP response bodies.
When Tesla.Middleware.DecompressResponse or Tesla.Middleware.Compression is included in a Tesla middleware pipeline, HTTP response bodies are decompressed eagerly with no size limit. The decompress_body/2 function in lib/tesla/middleware/compression.ex passes the entire response body to :zlib.gunzip/1 or :zlib.unzip/1 without any cap on the output size. Additionally, compression_algorithms/1 splits the content-encoding header on commas and decompress_body/2 recurses once per token, applying a decompression pass on each iteration. A server advertising content-encoding: gzip, gzip, gzip, gzip causes four recursive decompression passes, yielding exponential amplification: each gzip layer can expand its input roughly 1000x, so a payload of a few hundred bytes on the wire inflates to gigabytes of BEAM heap, exhausting memory and crashing or freezing the calling process.
This issue affects tesla: from 0.6.0 before 1.18.3.
Executive ViewAI
Tesla, a widely-used Elixir HTTP client library, contains a denial-of-service vulnerability (CVE-2026-48594) affecting versions 0.6.0 through 1.18.2 that allows remote servers to crash or freeze Elixir applications by sending specially crafted compressed responses. Any organization running Elixir-based services using affected Tesla versions faces potential service disruption and unplanned downtime. A vendor-released patch addressing this issue is available and should be deployed urgently.
Apply vendor patch.
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Credential leakage in elixir-tesla (Tesla HTTP client for Elixir) versions 1.4.0 through 1.18.2 allows Authorization and
Denial of service in the Elixir Tesla HTTP client (versions 1.3.0 through 1.18.2) when using the Tesla.Adapter.Mint adap
Tesla Model X vehicles before 2020-11-23 have key fobs that accept firmware updates without signature verification. Rate
Tesla Model 3 vehicles allow attackers to open a door by leveraging access to a legitimate key card, and then using NFC
The driving interface of Tesla Model 3 vehicles in any release before 2020.4.10 allows Denial of Service to occur due to
Tesla Model 3 V11.0(2022.4.5.1 6b701552d7a6) Tesla mobile app v4.23 is vulnerable to Authentication Bypass by spoofing.
Local privilege escalation and code execution in the NVIDIA Display Driver for Linux (GeForce, RTX/Quadro/NVS, Tesla, an
The renderer process in the entertainment system on Tesla Model 3 vehicles mishandles JIT compilation, which allows atta
Tesla Model X vehicles before 2020-11-23 do not perform certificate validation during an attempt to pair a new key fob w
Tesla Model X vehicles before 2020-11-23 have key fobs that rely on five VIN digits for the authentication needed for a
Certain Tesla vehicles through 2022-03-26 allow attackers to open the charging port via a 315 MHz RF signal containing a
An out-of-bounds read in the kernel-mode layer of NVIDIA GPU Display Driver on Windows and Linux allows a local, authent
EUVD-2026-34015
GHSA-mc85-72gr-vm9f
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB