CVE-2026-48598: CWE-116 Improper Encoding or Escaping of Output in elixir-tesla tesla
CVE-2026-48598 is a low-severity vulnerability in the elixir-tesla tesla library affecting versions 0.8.0 up to but not including 1.18.3. It involves improper encoding or escaping of output in multipart part headers, allowing injection via unescaped Content-Disposition parameter values. This occurs because the library interpolates disposition parameters without validating carriage return, line feed, or double-quote characters, enabling header injection. The issue can arise when attacker-controlled input is passed as filename or disposition parameters, potentially leading to forged headers or malformed multipart bodies.
AI Analysis
Technical Summary
The elixir-tesla tesla library versions 0.8.0 through before 1.18.3 have an improper encoding or escaping vulnerability (CWE-116) in multipart part header construction. Specifically, Tesla.Multipart.part_headers_for_disposition/1 directly interpolates disposition parameters into the Content-Disposition header without sanitizing CR (\r), LF (\n), or double-quote characters. This allows an attacker to inject additional headers or manipulate multipart boundaries by including these characters in parameters such as filename or name, which are passed verbatim from caller functions like Tesla.Multipart.add_field/4 and Tesla.Multipart.add_file/3. The default filename extraction does not strip CR or LF characters, further enabling this injection if attacker-controlled file paths are forwarded. This vulnerability can lead to multipart part header injection but has a low CVSS score of 2.1 and no known exploits in the wild.
Potential Impact
The vulnerability allows injection of multipart part headers via unescaped Content-Disposition parameters, potentially enabling an attacker to forge headers or manipulate multipart message structure. However, the impact is limited due to the low CVSS score (2.1) and the requirement for local access or partial control of input parameters. There are no known exploits in the wild, and the vulnerability does not lead to remote code execution or privilege escalation by itself.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid passing untrusted input directly to multipart disposition parameters or sanitize inputs to remove CR, LF, and double-quote characters before use. Monitor the elixir-tesla project for updates and apply official patches once released.
CVE-2026-48598: CWE-116 Improper Encoding or Escaping of Output in elixir-tesla tesla
Description
CVE-2026-48598 is a low-severity vulnerability in the elixir-tesla tesla library affecting versions 0.8.0 up to but not including 1.18.3. It involves improper encoding or escaping of output in multipart part headers, allowing injection via unescaped Content-Disposition parameter values. This occurs because the library interpolates disposition parameters without validating carriage return, line feed, or double-quote characters, enabling header injection. The issue can arise when attacker-controlled input is passed as filename or disposition parameters, potentially leading to forged headers or malformed multipart bodies.
CVSS v4.0
Score 2.1low
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The elixir-tesla tesla library versions 0.8.0 through before 1.18.3 have an improper encoding or escaping vulnerability (CWE-116) in multipart part header construction. Specifically, Tesla.Multipart.part_headers_for_disposition/1 directly interpolates disposition parameters into the Content-Disposition header without sanitizing CR (\r), LF (\n), or double-quote characters. This allows an attacker to inject additional headers or manipulate multipart boundaries by including these characters in parameters such as filename or name, which are passed verbatim from caller functions like Tesla.Multipart.add_field/4 and Tesla.Multipart.add_file/3. The default filename extraction does not strip CR or LF characters, further enabling this injection if attacker-controlled file paths are forwarded. This vulnerability can lead to multipart part header injection but has a low CVSS score of 2.1 and no known exploits in the wild.
Potential Impact
The vulnerability allows injection of multipart part headers via unescaped Content-Disposition parameters, potentially enabling an attacker to forge headers or manipulate multipart message structure. However, the impact is limited due to the low CVSS score (2.1) and the requirement for local access or partial control of input parameters. There are no known exploits in the wild, and the vulnerability does not lead to remote code execution or privilege escalation by itself.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid passing untrusted input directly to multipart disposition parameters or sanitize inputs to remove CR, LF, and double-quote characters before use. Monitor the elixir-tesla project for updates and apply official patches once released.
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: 6a1f3494e29bf47b50fa2543
Added to database: 06/02/2026, 19:52:52 UTC
Last enriched: 07/10/2026, 09:31:56 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 59
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.