{"schemaVersion":4,"id":"CVE-2026-120287","aliases":[],"status":"published","duplicateOf":null,"title":"Multipart `:length` limit not charged for part and header framing in Plug.Parsers.MULTIPART","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.\n\nIn 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.\n\nThis issue affects plug: from 1.13.0 before 1.20.4.","dates":{"published":"2026-11-17T16:53:38.533Z","modified":"2026-11-20T05:55:56.118Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.9,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6.9,"severity":"medium","vector":"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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6.9,"severity":"medium","vector":"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","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00562,"percentile":0.48211,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-18T00:00:00.000Z","score":0.0073,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.0073,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.0073,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.0073,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.0073,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.0073,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.0073,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00562,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00562,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00562,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00562,"percentile":0.48211}],"last30":[{"date":"2026-11-18T00:00:00.000Z","score":0.0073,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.0052,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.0073,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.0073,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.0073,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.0073,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.0073,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.0073,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00562,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00562,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00562,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00562,"percentile":0.48211}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling","description":"The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/770.html"}],"affected":[{"vendor":"elixir-plug","product":"plug","name":"plug","label":"plug","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.13.0, < 1.20.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"1.13.0","startInclusive":true,"end":"1.20.4","endInclusive":false}},{"text":"≥ e06acbd3d381931f23cbde7d763136c9ccb091ac","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"range","start":"e06acbd3d381931f23cbde7d763136c9ccb091ac","startInclusive":true,"end":null,"endInclusive":false}}],"versionsText":"≥ 1.13.0, < 1.20.4 | ≥ e06acbd3d381931f23cbde7d763136c9ccb091ac (No fix recorded)","eol":null,"hubHref":"/vendor/elixir-plug/plug"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/elixir-plug/plug/security/advisories/GHSA-qj4r-jh2r-rw3f","label":"github.com/elixir-plug/plug/security/advisories/GHSA-qj4r-jh2r-rw3f","hostname":"github.com","tags":["Vendor Advisory","Related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-120287.html","label":"cna.erlef.org/cves/CVE-2026-120287.html","hostname":"cna.erlef.org","tags":["Related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-120287","label":"osv.dev/vulnerability/EEF-CVE-2026-120287","hostname":"osv.dev","tags":["Related"]},{"url":"https://github.com/elixir-plug/plug/commit/e06acbd3d381931f23cbde7d763136c9ccb091ac","label":"github.com/elixir-plug/plug/commit/e06acbd3d381931f23cbde7d763136c9ccb091ac","hostname":"github.com","tags":["Related"]},{"url":"https://github.com/elixir-plug/plug/commit/497913f2a6d744d693e98e96c5b9c6d88c265695","label":"github.com/elixir-plug/plug/commit/497913f2a6d744d693e98e96c5b9c6d88c265695","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/elixir-plug/plug/commit/3d3fb645323643935c6c94863c1b3edfd62e2828","label":"github.com/elixir-plug/plug/commit/3d3fb645323643935c6c94863c1b3edfd62e2828","hostname":"github.com","tags":["Patch"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-17T16:53:38.533Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-20T05:55:56.118Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,1,69],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00562,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-20T05:55:56.118Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.9,"vector":"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","version":"4.0","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-20T05:55:56.118Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.9,"vector":"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","version":"4.0"},{"type":"adp","source":"cisa-adp","date":"2026-11-17T17:57:59.776Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00562,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T09:01:26.874Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T09:01:27.430Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T09:01:27.610Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T09:01:02.756Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T09:01:25.188Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T09:01:24.136Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T09:21:45.382Z","stale":false,"partial":false}}