{"id":"CVE-2026-48594","aliases":["CVE-2026-48594","GHSA-mc85-72gr-vm9f","EEF-CVE-2026-48594"],"related":[],"kind":"vulnerability","state":"published","title":"Decompression bomb in Tesla.Middleware.DecompressResponse and Tesla.Middleware.Compression","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.\n\nWhen 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.\n\nThis issue affects tesla: from 0.6.0 before 1.18.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\n\nWhen 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.\n\nThis issue affects tesla: from 0.6.0 before 1.18.3.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nAny Tesla client pipeline that includes `Tesla.Middleware.DecompressResponse` or `Tesla.Middleware.Compression` eagerly decompresses HTTP response bodies with no size limit. A server under attacker control (or reached via a redirect) can return a tiny gzip-encoded payload that expands into gigabytes of BEAM heap, crashing or freezing the calling process. Stacking multiple `content-encoding` tokens multiplies the amplification exponentially.\n\n### Details\n\n`decompress_body/2` in `lib/tesla/middleware/compression.ex` passes the full response body to `:zlib.gunzip/1` or `:zlib.unzip/1` with no cap on output size. The list of codec tokens comes from splitting the `content-encoding` header on commas, and `decompress_body/2` recurses once per token. A response advertising `content-encoding: gzip, gzip, gzip, gzip` triggers four recursive decompression passes. Each gzip layer can expand its input roughly 1000x, so a 284-byte wire payload with four layers inflates to approximately 1 GB at the innermost pass, all materialised as a single binary in the caller's heap.\n\n### PoC\n\n1. Serve an HTTP response with `content-encoding: gzip, gzip, gzip, gzip` where the body is a 1 GB block of zeros compressed through four successive gzip passes.\n2. Send that response to a Tesla client whose pipeline includes `Tesla.Middleware.DecompressResponse`.\n3. `decompress_body/2` recurses four times without any size check, materialising ~1 GB in the calling process's heap.\n4. Repeated or sufficiently large requests exhaust available memory and crash or freeze the node.\n\n### Impact\n\nHigh severity (CVSS v4.0: 8.2). Any application using `tesla` 0.6.0 through 1.18.2 with `Tesla.Middleware.DecompressResponse` or `Tesla.Middleware.Compression` in its pipeline is vulnerable. The attacker only needs to control a server the client contacts, including via redirects. Fixed in tesla 1.18.3.\n\n### Configurations\n\nThe application must include `Tesla.Middleware.DecompressResponse` or `Tesla.Middleware.Compression` in its Tesla middleware pipeline.\n\n### Resources\n\n* Introduction commit: https://github.com/elixir-tesla/tesla/commit/5bd90bb5cf0d15e375edc2a66fa322292940fce2\n* Patch commit: https://github.com/elixir-tesla/tesla/commit/340f75b5d191dc747ef7ac6365bd002d1cd55a9d","format":"markdown","source":"ghsa"},{"lang":"en","text":"## Summary\n\nImproper Handling of Highly Compressed Data (Data Amplification) vulnerability in elixir-tesla tesla allows a denial of service via decompression bomb in HTTP response bodies.\n\nWhen `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.\n\nThis issue affects tesla: from 0.6.0 before 1.18.3.\n\n## Configurations\n\nThe application must include `Tesla.Middleware.DecompressResponse` or `Tesla.Middleware.Compression` in its Tesla middleware pipeline.","format":"markdown","source":"eef"},{"lang":"es","text":"Vulnerabilidad de Manejo Inadecuado de Datos Altamente Comprimidos (Amplificación de Datos) en elixir-tesla tesla permite una denegación de servicio a través de una bomba de descompresión en los cuerpos de respuesta HTTP.\n\nCuando Tesla.Middleware.DecompressResponse o Tesla.Middleware.Compression se incluye en una tubería de middleware de Tesla, los cuerpos de respuesta HTTP se descomprimen de forma ávida sin límite de tamaño. La función decompress_body/2 en lib/tesla/middleware/compression.ex pasa el cuerpo completo de la respuesta a :zlib.gunzip/1 o :zlib.unzip/1 sin ningún límite en el tamaño de salida. Además, compression_algorithms/1 divide el encabezado content-encoding por comas y decompress_body/2 recurre una vez por token, aplicando un paso de descompresión en cada iteración. Un servidor que anuncia content-encoding: gzip, gzip, gzip, gzip causa cuatro pases de descompresión recursivos, lo que resulta en una amplificación exponencial: cada capa gzip puede expandir su entrada aproximadamente 1000 veces, por lo que una carga útil de unos pocos cientos de bytes en la red se infla a gigabytes de pila BEAM, agotando la memoria y bloqueando o congelando el proceso de llamada.\n\nEste problema afecta a tesla: desde 0.6.0 antes de 1.18.3.","source":"nvd"}],"published":"2026-06-02T19:08:49.596Z","modified":"2026-11-26T17:23:04.463Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"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","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"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","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"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"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-409"],"affected":[{"ranges":[{"type":"semver","introduced":"0.6.0","fixed":"1.18.3","status":"affected"}],"vendor":"elixir-tesla","product":"tesla","package":"tesla","cpe":"cpe:2.3:a:elixir-tesla:tesla:*:*:*:*:*:*:*:*","repo":"https://github.com/elixir-tesla/tesla","source":"cvelist"},{"ranges":[{"type":"git","introduced":"5bd90bb5cf0d15e375edc2a66fa322292940fce2","fixed":"340f75b5d191dc747ef7ac6365bd002d1cd55a9d","status":"affected"}],"vendor":"elixir-tesla","product":"tesla","package":"elixir-tesla/tesla","cpe":"cpe:2.3:a:elixir-tesla:tesla:*:*:*:*:*:*:*:*","repo":"https://github.com/elixir-tesla/tesla","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.6.0","status":"affected","fixed":"1.18.3"}],"ecosystem":"Hex","package":"tesla","purl":"pkg:hex/tesla","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.6.0","status":"affected","fixed":"1.18.3"}],"ecosystem":"Hex","package":"tesla","purl":"pkg:hex/tesla","source":"eef"},{"ranges":[{"type":"git","introduced":"5bd90bb5cf0d15e375edc2a66fa322292940fce2","status":"affected","fixed":"340f75b5d191dc747ef7ac6365bd002d1cd55a9d"}],"repo":"https://github.com/elixir-tesla/tesla","source":"eef"},{"ranges":[{"status":"affected","introduced":"0.6.0","fixed":"1.18.3"}],"vendor":"elixir-tesla","product":"tesla","cpe":"cpe:2.3:a:elixir-tesla:tesla:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/elixir-tesla/tesla/security/advisories/GHSA-mc85-72gr-vm9f","tags":["advisory","exploit","related","vendor-advisory","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-48594.html","tags":["related","third-party-advisory","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-48594","tags":["related","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/elixir-tesla/tesla/commit/5bd90bb5cf0d15e375edc2a66fa322292940fce2","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/elixir-tesla/tesla/commit/340f75b5d191dc747ef7ac6365bd002d1cd55a9d","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48594","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/elixir-tesla/tesla","tags":["package"],"sources":["ghsa"]},{"url":"https://hex.pm/packages/tesla","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Yordis Prieto"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-03T14:39:48.594Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-48594","url":"https://www.cve.org/CVERecord?id=CVE-2026-48594","licence":"CVE Terms of Use","modified":"2026-11-19T08:25:00.880Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mc85-72gr-vm9f","url":"https://github.com/advisories/GHSA-mc85-72gr-vm9f","licence":"CC-BY-4.0","modified":"2026-07-10T00:15:09.275Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-48594","url":"https://osv.dev/vulnerability/EEF-CVE-2026-48594","licence":"CC-BY-4.0","modified":"2026-11-26T17:23:04.463Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-48594","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48594","licence":"Public domain","modified":"2026-09-24T21:17:12.963Z"}],"updatedAt":"2026-11-26T17:37:06.421Z","epss":{"score":0.00564,"percentile":0.48232,"date":"2026-12-01T12:00:22.000Z"}}