{"id":"CVE-2026-8468","aliases":["CVE-2026-8468","GHSA-468c-vq7p-gh64","EEF-CVE-2026-8468"],"related":[],"kind":"vulnerability","state":"published","title":"Unbounded buffer accumulation in multipart header parsing causes denial of service in plug","summary":"Allocation of Resources Without Limits or Throttling vulnerability in plug_project plug allows denial of service via unbounded buffer accumulation in multipart header parsing.\n\nPlug.Conn.read_part_headers/2 in lib/plug/conn.ex does not obey its :length parameter. There is no upper bound on the size of the accumulated buffer. By contrast, the sibling function read_part_body has an explicit byte_size(acc) > length guard that stops accumulation once a limit is reached. No such guard exists in read_part_headers. An unauthenticated remote attacker can exhaust server memory by sending a crafted multipart/form-data request, causing a denial of service.\n\nThis issue affects plug: from 1.4.0-rc.0 before 1.15.4, from 1.16.0 before 1.16.3, from 1.17.0 before 1.17.1, from 1.18.0 before 1.18.2, and from 1.19.0 before 1.19.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Allocation of Resources Without Limits or Throttling vulnerability in plug_project plug allows denial of service via unbounded buffer accumulation in multipart header parsing.\n\nPlug.Conn.read_part_headers/2 in lib/plug/conn.ex does not obey its :length parameter. There is no upper bound on the size of the accumulated buffer. By contrast, the sibling function read_part_body has an explicit byte_size(acc) > length guard that stops accumulation once a limit is reached. No such guard exists in read_part_headers. An unauthenticated remote attacker can exhaust server memory by sending a crafted multipart/form-data request, causing a denial of service.\n\nThis issue affects plug: from 1.4.0-rc.0 before 1.15.4, from 1.16.0 before 1.16.3, from 1.17.0 before 1.17.1, from 1.18.0 before 1.18.2, and from 1.19.0 before 1.19.2.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nAn Allocation of Resources Without Limits or Throttling vulnerability in `Plug.Conn.read_part_headers/2` allows an unauthenticated attacker to exhaust server memory by sending a crafted `multipart/form-data` request, causing a denial of service.\n\n### Details\n\n`Plug.Conn.read_part_headers/2` in `lib/plug/conn.ex` does not obey its `:length` parameter. There is no upper bound on the size of the accumulated buffer. By contrast, the sibling function `read_part_body` has an explicit `byte_size(acc) > length` guard that stops accumulation once a limit is reached. No such guard exists in `read_part_headers`.\n\n### Impact\n\nThis is a denial-of-service vulnerability. Any application using `Plug.Parsers` with the `:multipart` parser, or calling `Plug.Conn.read_part_headers/2` directly, is affected. An unauthenticated remote attacker can trigger the issue by sending crafted HTTP requests with no special privileges.\n\n### References\n\n* Intro Commit: https://github.com/elixir-plug/plug/commit/c52b2f32c90bccd718202bafccb5f95594e30183\n* Patch Commit: https://github.com/elixir-plug/plug/commit/d878b42efea9f12b243dc3e362a2ed048a798203","format":"markdown","source":"ghsa"},{"lang":"en","text":"## Summary\n\nAllocation of Resources Without Limits or Throttling vulnerability in plug_project plug allows denial of service via unbounded buffer accumulation in multipart header parsing.\n\n`Plug.Conn.read_part_headers/2` in `lib/plug/conn.ex` does not obey its `:length` parameter. There is no upper bound on the size of the accumulated buffer. By contrast, the sibling function `read_part_body` has an explicit `byte_size(acc) > length` guard that stops accumulation once a limit is reached. No such guard exists in `read_part_headers`. An unauthenticated remote attacker can exhaust server memory by sending a crafted `multipart/form-data` request, causing a denial of service.\n\nThis issue affects plug: from 1.4.0-rc.0 before 1.15.4, from 1.16.0 before 1.16.3, from 1.17.0 before 1.17.1, from 1.18.0 before 1.18.2, and from 1.19.0 before 1.19.2.\n\n## Configurations\n\nThe application must use `Plug.Parsers` with the `:multipart` parser, or otherwise call `Plug.Conn.read_part_headers/2` to process `multipart/form-data` request bodies. Deployments that do not handle multipart uploads are not affected.","format":"markdown","source":"eef"},{"lang":"es","text":"Vulnerabilidad de asignación de recursos sin límites o estrangulamiento en el plug de plug_project permite la denegación de servicio mediante la acumulación ilimitada de búfer en el análisis de encabezados multipart.\n\n’Elixir.Plug.Conn’:read_part_headers/2 en lib/plug/conn.ex no obedece su parámetro :length. No hay un límite superior en el tamaño del búfer acumulado. Por el contrario, la función hermana read_part_body tiene una guarda explícita byte_size(acc) > length que detiene la acumulación una vez que se alcanza un límite. No existe tal guarda en read_part_headers. Un atacante remoto no autenticado puede agotar la memoria del servidor enviando una solicitud multipart/form-data manipulada, causando una denegación de servicio.\n\nEste problema afecta a plug desde 1.4.0 antes de 1.15.4, 1.16.3, 1.17.1, 1.18.2 y 1.19.2.","source":"nvd"}],"published":"2026-05-14T10:29:51.062Z","modified":"2026-11-26T17:23:13.701Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"type":"semver","introduced":"1.4.0-rc.0","fixed":"1.15.4","status":"affected"},{"type":"semver","introduced":"1.16.0","fixed":"1.16.3","status":"affected"},{"type":"semver","introduced":"1.17.0","fixed":"1.17.1","status":"affected"},{"type":"semver","introduced":"1.18.0","fixed":"1.18.2","status":"affected"},{"type":"semver","introduced":"1.19.0","fixed":"1.19.2","status":"affected"}],"vendor":"elixir-plug","product":"plug","package":"plug","cpe":"cpe:2.3:a:plug_project:plug:*:*:*:*:*:*:*:*","repo":"https://github.com/elixir-plug/plug","source":"cvelist"},{"ranges":[{"type":"git","introduced":"c52b2f32c90bccd718202bafccb5f95594e30183","fixed":"*","status":"affected"}],"vendor":"elixir-plug","product":"plug","package":"elixir-plug/plug","cpe":"cpe:2.3:a:plug_project:plug:*:*:*:*:*:*:*:*","repo":"https://github.com/elixir-plug/plug","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.4.0","status":"affected","fixed":"1.15.4"}],"ecosystem":"Hex","package":"plug","purl":"pkg:hex/plug","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.16.0","status":"affected","fixed":"1.16.3"}],"ecosystem":"Hex","package":"plug","purl":"pkg:hex/plug","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.17.0","status":"affected","fixed":"1.17.1"}],"ecosystem":"Hex","package":"plug","purl":"pkg:hex/plug","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.18.0","status":"affected","fixed":"1.18.2"}],"ecosystem":"Hex","package":"plug","purl":"pkg:hex/plug","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.19.0","status":"affected","fixed":"1.19.2"}],"ecosystem":"Hex","package":"plug","purl":"pkg:hex/plug","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.4.0-rc.0","status":"affected","fixed":"1.15.4"},{"type":"semver","introduced":"1.16.0","status":"affected","fixed":"1.16.3"},{"type":"semver","introduced":"1.17.0","status":"affected","fixed":"1.17.1"},{"type":"semver","introduced":"1.18.0","status":"affected","fixed":"1.18.2"},{"type":"semver","introduced":"1.19.0","status":"affected","fixed":"1.19.2"}],"ecosystem":"Hex","package":"plug","purl":"pkg:hex/plug","source":"eef"},{"ranges":[{"type":"git","introduced":"c52b2f32c90bccd718202bafccb5f95594e30183","status":"affected","fixed":"2cb7958d33030aa826b0c7404375844d4593d43a"},{"type":"git","status":"affected","fixed":"33858427c7f2737d560a2e40a0c9a9270d77d1d7"},{"type":"git","status":"affected","fixed":"aa69c5ece99c40ded88b8c6581ecc86664b0b734"},{"type":"git","status":"affected","fixed":"d5dfffe25e975585227b1b85d247b0d14164bc45"},{"type":"git","status":"affected","fixed":"d878b42efea9f12b243dc3e362a2ed048a798203"},{"type":"git","status":"affected","fixed":"df812a1527bae9e941965e897308a2b8bbf83a94"}],"repo":"https://github.com/elixir-plug/plug","source":"eef"}],"references":[{"url":"https://github.com/elixir-plug/plug/security/advisories/GHSA-468c-vq7p-gh64","tags":["advisory","related","vendor-advisory","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-8468.html","tags":["related","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-8468","tags":["related","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-8466.html","tags":["related","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://github.com/elixir-plug/plug/commit/c52b2f32c90bccd718202bafccb5f95594e30183","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/elixir-plug/plug/commit/2cb7958d33030aa826b0c7404375844d4593d43a","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://github.com/elixir-plug/plug/commit/33858427c7f2737d560a2e40a0c9a9270d77d1d7","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://github.com/elixir-plug/plug/commit/aa69c5ece99c40ded88b8c6581ecc86664b0b734","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://github.com/elixir-plug/plug/commit/d5dfffe25e975585227b1b85d247b0d14164bc45","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://github.com/elixir-plug/plug/commit/d878b42efea9f12b243dc3e362a2ed048a798203","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/elixir-plug/plug/commit/df812a1527bae9e941965e897308a2b8bbf83a94","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-8468","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/elixir-plug/plug","tags":["package"],"sources":["ghsa"]},{"url":"https://hex.pm/packages/plug","tags":["package"],"sources":["eef"]}],"credits":["José Valim","Jonatan Männchen / EEF"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-14T17:53:52.632Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-8468","url":"https://www.cve.org/CVERecord?id=CVE-2026-8468","licence":"CVE Terms of Use","modified":"2026-11-20T09:43:13.802Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-468c-vq7p-gh64","url":"https://github.com/advisories/GHSA-468c-vq7p-gh64","licence":"CC-BY-4.0","modified":"2026-05-20T15:48:07.798Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-8468","url":"https://osv.dev/vulnerability/EEF-CVE-2026-8468","licence":"CC-BY-4.0","modified":"2026-11-26T17:23:13.701Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-8468","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-8468","licence":"Public domain","modified":"2026-11-20T10:17:11.993Z"}],"updatedAt":"2026-11-26T17:37:17.024Z","epss":{"score":0.00778,"percentile":0.57057,"date":"2026-12-01T12:00:22.000Z"}}