# CVE-2026-48594: Decompression bomb in Tesla.Middleware.DecompressResponse and Tesla.Middleware.Compression

- Severity: High 8.2 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-02T19:08:49.596Z
- Modified: 2026-11-26T17:23:04.463Z
- Also known as: GHSA-mc85-72gr-vm9f, EEF-CVE-2026-48594
- Weaknesses: CWE-409
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: EEF

## Description

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.

(As written by CVE List.)

## Affected

- tesla: from 0.6.0 before 1.18.3
- elixir-tesla/tesla: from 5bd90bb5cf0d15e375edc2a66fa322292940fce2 before 340f75b5d191dc747ef7ac6365bd002d1cd55a9d
- tesla (Hex): from 0.6.0 before 1.18.3
- https://github.com/elixir-tesla/tesla: from 5bd90bb5cf0d15e375edc2a66fa322292940fce2 before 340f75b5d191dc747ef7ac6365bd002d1cd55a9d
- elixir-tesla tesla: from 0.6.0 before 1.18.3

## Every score

- EEF: CVSS:4.0 8.2 High `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`
- GitHub: CVSS:4.0 High `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/elixir-tesla/tesla/security/advisories/GHSA-mc85-72gr-vm9f> (exploit, advisory, related, vendor-advisory, web)
- <https://cna.erlef.org/cves/CVE-2026-48594.html> (related, third-party-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-48594> (related, third-party-advisory, web)
- <https://github.com/elixir-tesla/tesla/commit/5bd90bb5cf0d15e375edc2a66fa322292940fce2> (related, web)
- <https://github.com/elixir-tesla/tesla/commit/340f75b5d191dc747ef7ac6365bd002d1cd55a9d> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-48594> (advisory)
- <https://github.com/elixir-tesla/tesla> (package)
- <https://hex.pm/packages/tesla> (package)

## Sources

- CVE List: [CVE-2026-48594](https://www.cve.org/CVERecord?id=CVE-2026-48594), CVE Terms of Use, modified 2026-11-19
- GitHub Advisory Database: [GHSA-mc85-72gr-vm9f](https://github.com/advisories/GHSA-mc85-72gr-vm9f), CC-BY-4.0, modified 2026-07-10
- Erlang Ecosystem Foundation: [EEF-CVE-2026-48594](https://osv.dev/vulnerability/EEF-CVE-2026-48594), CC-BY-4.0, modified 2026-11-26
- NVD: [CVE-2026-48594](https://nvd.nist.gov/vuln/detail/CVE-2026-48594), Public domain, modified 2026-09-24

---

Page: https://cve.day/CVE-2026-48594 · Whole record: https://cve.day/CVE-2026-48594.json · Rebuilt by cve.day 2026-11-26T17:37:06.421Z
