CVE-2026-120287elixir-plug Plug allocation of resources without limits
CVSS score
6.9
Medium
CVSS 4.0 from 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Exploit probability (EPSS)
0.52%
0.52% chance of exploitation in the next 30 days, higher than 45.0% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official 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.
Source: NVD · CNA: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
How to fix it, step by step
Check whether you're affected
Find every system running elixir-plug Plug and compare its version with the affected versions.
Update to a fixed version
- Update Plug to 1.20.4 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- None
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Values in red make the vulnerability easier to exploit or more damaging. 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Affected products
| Affected products | Versions |
|---|---|
| elixir-plug Plug | ≥ 1.13.0, < 1.20.4 · e06acbd3d381931f23cbde7d763136c9ccb091ac |
Weakness
- CWE-770 allocation of resources without limits
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-120287 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.5% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-120287?
CVE-2026-120287 has a CVSS 4.0 base score of 6.9 (medium).
Which versions are affected?
Elixir Plug Plug (≥ 1.13.0, < 1.20.4; e06acbd3d381931f23cbde7d763136c9ccb091ac)
Is there a patch for CVE-2026-120287?
The official record links to vendor advisories or patches; see “What to do” above.
References
- cna.erlef.org/cves/CVE-2026-120287.html
- github.com/elixir-plug/plug/commit/3d3fb645323643935c6c94863c1b3edfd62e2828
- github.com/elixir-plug/plug/commit/497913f2a6d744d693e98e96c5b9c6d88c265695
- github.com/elixir-plug/plug/commit/e06acbd3d381931f23cbde7d763136c9ccb091ac
- github.com/elixir-plug/plug/security/advisories/GHSA-qj4r-jh2r-rw3f
- osv.dev/vulnerability/EEF-CVE-2026-120287
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.