# CVE-2026-54892: Plug: quadratic-time decoding of nested query/body parameters enables denial of service

- Severity: High 8.7 (CVSS:4.0, scored by EEF) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.13%, higher than 67% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-23T12:31:12.629Z
- Modified: 2026-11-25T17:23:14.061Z
- Also known as: GHSA-j43x-5hjq-rgxf, EEF-CVE-2026-54892
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: EEF

## Description

Inefficient algorithmic complexity in Plug's nested-parameter decoder allows an unauthenticated remote attacker to cause denial of service. Plug.Conn.Query.decode/4 (and Plug.Conn.Query.decode_each/2) parse query strings and application/x-www-form-urlencoded request bodies. When a key contains many bracketed segments such as a[a][a][a]=1, the decoder walks the brackets and, for each of the N levels, performs a map operation keyed on an ever-growing binary prefix of the key, hashing the full byte range at each step. The total decode cost is therefore quadratic in the number of nesting levels.

With the default Plug.Parsers.URLENCODED body limit of 1,000,000 bytes, a single request can carry roughly 333,000 nesting levels and saturate a BEAM scheduler for minutes. A small number of concurrent requests can saturate all schedulers and render a Plug-based server unresponsive. No authentication or knowledge of application routes is required.

This vulnerability is associated with program files lib/plug/conn/query.ex and program routines Plug.Conn.Query.decode/4, Plug.Conn.Query.decode_each/2, Plug.Conn.Query.split_keys/6, Plug.Conn.Query.insert_keys/3, and Plug.Conn.Query.finalize_pointer/2.

This issue affects plug: from 1.15.0 before 1.15.5, from 1.16.0 before 1.16.4, from 1.17.0 before 1.17.2, from 1.18.0 before 1.18.3, and from 1.19.0 before 1.19.3.

(As written by CVE List.)

## Affected

- plug: from 1.15.0 before 1.15.5; from 1.16.0 before 1.16.4; from 1.17.0 before 1.17.2; from 1.18.0 before 1.18.3; from 1.19.0 before 1.19.3
- elixir-plug/plug: from 712b875d3442c765d8d37e546ffd5ad9f8afcc55 before *
- plug (Hex): from 1.15.0 before 1.15.5; from 1.16.0 before 1.16.4; from 1.17.0 before 1.17.2; from 1.18.0 before 1.18.3; from 1.19.0 before 1.19.3
- https://github.com/elixir-plug/plug: from 712b875d3442c765d8d37e546ffd5ad9f8afcc55 before 9c5d37c440eaae92869eed7c014c47266744fadb; before a61124aa625d819a218fb07f90afbac8aa85eb0e; before b4aa8a0665ce2726a6d5af44467fb4f59595b107; before c317d08fdcf96e17931f7419275b2b8c4bf3e951; before d4e5568392a4b29e545b91e12e87d6098f976145; before d737eb236f17e31a36290e39f9ef3cd86a1343bd

## Every score

- EEF: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Erlang Ecosystem Foundation: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/elixir-plug/plug/security/advisories/GHSA-j43x-5hjq-rgxf> (exploit, advisory, related, vendor-advisory, web)
- <https://cna.erlef.org/cves/CVE-2026-54892.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-54892> (related, web)
- <https://github.com/elixir-plug/plug/commit/712b875d3442c765d8d37e546ffd5ad9f8afcc55> (related, web)
- <https://github.com/elixir-plug/plug/commit/9c5d37c440eaae92869eed7c014c47266744fadb> (fix, patch, web)
- <https://github.com/elixir-plug/plug/commit/a61124aa625d819a218fb07f90afbac8aa85eb0e> (fix, patch, web)
- <https://github.com/elixir-plug/plug/commit/b4aa8a0665ce2726a6d5af44467fb4f59595b107> (fix, patch)
- <https://github.com/elixir-plug/plug/commit/c317d08fdcf96e17931f7419275b2b8c4bf3e951> (fix, patch, web)
- <https://github.com/elixir-plug/plug/commit/d4e5568392a4b29e545b91e12e87d6098f976145> (fix, patch, web)
- <https://github.com/elixir-plug/plug/commit/d737eb236f17e31a36290e39f9ef3cd86a1343bd> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54892> (advisory)
- <https://github.com/elixir-plug/plug> (package)
- <https://github.com/elixir-plug/plug/blob/v1.19.3/CHANGELOG.md#v1193-2026-06-23> (web)
- <https://hex.pm/packages/plug> (package)

## Sources

- CVE List: [CVE-2026-54892](https://www.cve.org/CVERecord?id=CVE-2026-54892), CVE Terms of Use, modified 2026-11-24
- GitHub Advisory Database: [GHSA-j43x-5hjq-rgxf](https://github.com/advisories/GHSA-j43x-5hjq-rgxf), CC-BY-4.0, modified 2026-09-23
- Erlang Ecosystem Foundation: [EEF-CVE-2026-54892](https://osv.dev/vulnerability/EEF-CVE-2026-54892), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-54892](https://nvd.nist.gov/vuln/detail/CVE-2026-54892), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2026-54892 · Whole record: https://cve.day/CVE-2026-54892.json · Rebuilt by cve.day 2026-11-25T22:59:25.450Z
