# CVE-2026-120287: Multipart \`:length\` limit not charged for part and header framing in Plug.Parsers.MULTIPART

- **Severity:** MEDIUM 6.9
- **CVSS:** 6.9 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.73% (percentile 50, 2026-11-28)
- **CWE:** CWE-770
- **Published:** 2026-11-17T16:53:38.533Z
- **Modified:** 2026-11-23T15:08:56.100Z

## Who should check

- Anyone running elixir-plug plug \>= 1.13.0, \< 1.20.4
- Anyone running elixir-plug plug \>= e06acbd3d381931f23cbde7d763136c9ccb091ac, \< \*

## Description

Allocation of Resources Without Limits or Throttling vulnerability in Plug.Parsers.MULTIPART in elixir-plug plug allows an unauthenticated remote attacker to exhaust memory via a multipart request body built from parts without headers, or from header lines without a name and a value. The parser charges the :length limit only with the name and value bytes of each part header and the bytes of each part body. The part delimiter, the header separator, and the line endings cost nothing.

In lib/plug/parsers/multipart.ex, Plug.Parsers.MULTIPART.parse\_multipart\_headers/5 keeps an entry for every part without a content-disposition header, together with its header list, until the whole body is read. A request made of such parts does not reach the limit at any size, and the parser process holds a multiple of the request size in memory until parsing completes. Any endpoint that uses Plug.Parsers with the :multipart parser is reachable.

This issue affects plug: from 1.13.0 before 1.20.4.

## Affected and fixed versions

- elixir-plug plug: \>= 1.13.0, \< 1.20.4 (cvelist)
- elixir-plug plug: \>= e06acbd3d381931f23cbde7d763136c9ccb091ac, \< \* (cvelist)

## Mitigation

- Upgrade plug to 1.20.4 or later.
- Vendor workaround: Limit the request body size in a reverse proxy in front of the application, for example with client\_max\_body\_size in nginx. The proxy rejects a larger body before it reaches the parser. This limits the memory that one request can hold but does not remove the multiplication: a body below the proxy limit still passes the :length limit.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-120287. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-120287.md
Affected: elixir-plug plug >= 1.13.0, < 1.20.4; elixir-plug plug >= e06acbd3d381931f23cbde7d763136c9ccb091ac, < *
Fixed in: elixir-plug plug 1.20.4

Steps:
1. Search this machine and project for elixir-plug plug: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-120287 being exploited?

There is no confirmed exploitation: CVE-2026-120287 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.73% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-120287?

Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-120287?

elixir-plug plug \>= 1.13.0, \< 1.20.4; elixir-plug plug \>= e06acbd3d381931f23cbde7d763136c9ccb091ac, \< \*.

### Is there a fix for CVE-2026-120287?

Yes. Fixed in elixir-plug plug 1.20.4. Upgrade plug to 1.20.4 or later. Vendor workaround: Limit the request body size in a reverse proxy in front of the application, for example with client\_max\_body\_size in nginx. The proxy rejects a larger body before it reaches the parser. This limits the memory that one request can hold but does not remove the multiplication: a body below the proxy limit still passes the :length limit.

### How do I check if I'm affected by CVE-2026-120287?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/elixir-plug/plug/security/advisories/GHSA-qj4r-jh2r-rw3f>
- patch: <https://github.com/elixir-plug/plug/commit/e06acbd3d381931f23cbde7d763136c9ccb091ac>
- patch: <https://github.com/elixir-plug/plug/commit/3d3fb645323643935c6c94863c1b3edfd62e2828>
- patch: <https://github.com/elixir-plug/plug/commit/497913f2a6d744d693e98e96c5b9c6d88c265695>
- other: <https://cna.erlef.org/cves/CVE-2026-120287.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-120287>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-120287>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-120287> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-120287>
