Decompression bomb in Tesla.Middleware.DecompressResponse and Tesla.Middleware.Compression
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| elixir-tesla | tesla | 0.6.0 to before 1.18.3 | 1.18.3 | Patch available | CNA |
| — | tesla (Hex) | 0.6.0 to before 1.18.3 | 1.18.3 | Patch available | GHSA-mc85-72gr-vm9f |
- tesla Vendorelixir-tesla Affected 0.6.0 to before 1.18.3 Fixed in 1.18.3 Patch available CNA
- tesla (Hex) Vendor— Affected 0.6.0 to before 1.18.3 Fixed in 1.18.3 Patch available GHSA-mc85-72gr-vm9f
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:elixir-tesla:tesla:*:*:*:*:*:*:*:* | 0.6.0 to before 1.18.3 | Vulnerable | elixir-tesla |
- cpe:2.3:a:elixir-tesla:tesla:*:*:*:*:*:*:*:* Versions 0.6.0 to before 1.18.3 Vulnerable ·elixir-tesla
Remediation
- Fix · CNA tesla (elixir-tesla) Fixed in 1.18.3
- Fix · GHSA-mc85-72gr-vm9f tesla (Hex) Fixed in 1.18.3 Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
elixir-tesla tesla 1.18.3
5 records Highest priority Priority HIGH 2 HIGH, 2 MEDIUM, 1 LOW
Other records, highest priority first
- TI-2026-35953 Atom table exhaustion via untrusted URL scheme in Tesla.Adapter.MintPriority HIGH 69
- TI-2026-35951 Authorization header leaks to third-party origin on cross-origin redirect in Tesla.Middleware.FollowRedirectsPriority HIGH 69
- TI-2026-35954 CRLF injection in Tesla.Multipart disposition parameters allows multipart part header injectionPriority MEDIUM 44
Timeline
- 2026-10-02 Threatist record created from CVE-2026-48594
- 2026-10-03 Alias added: GHSA-mc85-72gr-vm9f
- 2026-10-25 EPSS moved to the below the 50th percentile
References
Advisory 3
More elixir-tesla Tesla vulnerabilities
- TI-2026-35953 Atom table exhaustion via untrusted URL scheme in Tesla.Adapter.Mint CVSS 4.0HIGH 8.2
- TI-2026-35951 Authorization header leaks to third-party origin on cross-origin redirect in Tesla.Middleware.FollowRedirects CVSS 4.0HIGH 8.2
- TI-2026-35954 CRLF injection in Tesla.Multipart disposition parameters allows multipart part header injection CVSS 4.0LOW 2.1
- TI-2026-35952 CRLF injection in Tesla.Multipart.add_content_type_param/2 allows HTTP header injection CVSS 4.0LOW 2.1
Sources
- CVE-2026-48594 · CVE Program
- CVE-2026-48594 · NVD
- FIRST EPSS
- GHSA-mc85-72gr-vm9f · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences