CVE-2026-48594: CWE-409 Improper Handling of Highly Compressed Data (Data Amplification) in elixir-tesla tesla
A vulnerability in elixir-tesla's tesla library allows denial of service via decompression bomb attacks. When certain middleware decompress HTTP response bodies, there is no limit on decompressed size, enabling exponential memory amplification. This can crash or freeze the process handling the response. The issue affects version 0.6.0 and versions before 1.18.3.
AI Analysis
Technical Summary
The elixir-tesla tesla library improperly handles highly compressed HTTP response bodies when using Tesla.Middleware.DecompressResponse or Tesla.Middleware.Compression. The decompress_body/2 function decompresses data eagerly without limiting output size, passing the entire response body to :zlib.gunzip/1 or :zlib.unzip/1. Additionally, multiple content-encoding headers cause recursive decompression passes, exponentially amplifying memory usage. For example, a response with content-encoding: gzip, gzip, gzip, gzip causes four decompression passes, each expanding roughly 1000x, which can inflate a small payload into gigabytes of memory usage, leading to denial of service by exhausting the BEAM heap and crashing or freezing the process. This affects tesla versions from 0.6.0 up to but not including 1.18.3.
Potential Impact
An attacker can craft HTTP responses with multiple layers of compression to cause exponential memory amplification during decompression. This leads to denial of service by exhausting memory resources, crashing, or freezing the application process using the tesla library. No remote code execution or data disclosure is described.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using Tesla.Middleware.DecompressResponse or Tesla.Middleware.Compression with untrusted or potentially malicious HTTP responses. Implement application-level limits on decompressed response size if possible to mitigate memory exhaustion.
CVE-2026-48594: CWE-409 Improper Handling of Highly Compressed Data (Data Amplification) in elixir-tesla tesla
Description
A vulnerability in elixir-tesla's tesla library allows denial of service via decompression bomb attacks. When certain middleware decompress HTTP response bodies, there is no limit on decompressed size, enabling exponential memory amplification. This can crash or freeze the process handling the response. The issue affects version 0.6.0 and versions before 1.18.3.
CVSS v4.0
Score 8.2high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The elixir-tesla tesla library improperly handles highly compressed HTTP response bodies when using Tesla.Middleware.DecompressResponse or Tesla.Middleware.Compression. The decompress_body/2 function decompresses data eagerly without limiting output size, passing the entire response body to :zlib.gunzip/1 or :zlib.unzip/1. Additionally, multiple content-encoding headers cause recursive decompression passes, exponentially amplifying memory usage. For example, a response with content-encoding: gzip, gzip, gzip, gzip causes four decompression passes, each expanding roughly 1000x, which can inflate a small payload into gigabytes of memory usage, leading to denial of service by exhausting the BEAM heap and crashing or freezing the process. This affects tesla versions from 0.6.0 up to but not including 1.18.3.
Potential Impact
An attacker can craft HTTP responses with multiple layers of compression to cause exponential memory amplification during decompression. This leads to denial of service by exhausting memory resources, crashing, or freezing the application process using the tesla library. No remote code execution or data disclosure is described.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using Tesla.Middleware.DecompressResponse or Tesla.Middleware.Compression with untrusted or potentially malicious HTTP responses. Implement application-level limits on decompressed response size if possible to mitigate memory exhaustion.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-05-22T09:36:56.834Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a1f3494e29bf47b50fa252b
Added to database: 06/02/2026, 19:52:52 UTC
Last enriched: 07/10/2026, 09:32:19 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 46
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.