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

Status: published. Published: 2026-06-23. Updated: 2026-11-24.

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.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: EEF) — https://github.com/elixir-plug/plug/commit/9c5d37c440eaae92869eed7c014c47266744fadb
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: EEF) — https://github.com/elixir-plug/plug/commit/a61124aa625d819a218fb07f90afbac8aa85eb0e
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: EEF) — https://github.com/elixir-plug/plug/commit/b4aa8a0665ce2726a6d5af44467fb4f59595b107
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: EEF) — https://github.com/elixir-plug/plug/commit/c317d08fdcf96e17931f7419275b2b8c4bf3e951
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: EEF) — https://github.com/elixir-plug/plug/commit/d4e5568392a4b29e545b91e12e87d6098f976145
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: EEF) — https://github.com/elixir-plug/plug/commit/d737eb236f17e31a36290e39f9ef3cd86a1343bd
- fix: plug (Hex): OSV reports a fixed version 1.15.5. Check the advisory for supported release branches. (source: OSV GHSA-j43x-5hjq-rgxf) — https://github.com/advisories/GHSA-j43x-5hjq-rgxf
- fix: plug (Hex): OSV reports a fixed version 1.16.4. Check the advisory for supported release branches. (source: OSV GHSA-j43x-5hjq-rgxf) — https://github.com/advisories/GHSA-j43x-5hjq-rgxf
- fix: plug (Hex): OSV reports a fixed version 1.17.2. Check the advisory for supported release branches. (source: OSV GHSA-j43x-5hjq-rgxf) — https://github.com/advisories/GHSA-j43x-5hjq-rgxf
- fix: plug (Hex): OSV reports a fixed version 1.18.3. Check the advisory for supported release branches. (source: OSV GHSA-j43x-5hjq-rgxf) — https://github.com/advisories/GHSA-j43x-5hjq-rgxf
- fix: plug (Hex): OSV reports a fixed version 1.19.3. Check the advisory for supported release branches. (source: OSV GHSA-j43x-5hjq-rgxf) — https://github.com/advisories/GHSA-j43x-5hjq-rgxf

## Affected products and versions

- elixir-plug / plug (plug): ≥ 1.15.0; < 1.15.5 (affected, semver); ≥ 1.16.0; < 1.16.4 (affected, semver); ≥ 1.17.0; < 1.17.2 (affected, semver); ≥ 1.18.0; < 1.18.3 (affected, semver); ≥ 1.19.0; < 1.19.3 (affected, semver). Source: CNA: EEF
- elixir-plug / plug (elixir-plug/plug): ≥ 712b875d3442c765d8d37e546ffd5ad9f8afcc55; < * (affected, git); unaffected at 9c5d37c440eaae92869eed7c014c47266744fadb; unaffected at a61124aa625d819a218fb07f90afbac8aa85eb0e; unaffected at b4aa8a0665ce2726a6d5af44467fb4f59595b107; unaffected at c317d08fdcf96e17931f7419275b2b8c4bf3e951; unaffected at d4e5568392a4b29e545b91e12e87d6098f976145; unaffected at d737eb236f17e31a36290e39f9ef3cd86a1343bd. Source: CNA: EEF
-  / plug (plug): 1.15.0 (affected, Hex); 1.15.1 (affected, Hex); 1.15.2 (affected, Hex); 1.15.3 (affected, Hex); 1.15.4 (affected, Hex); ≥ 1.15.0; < 1.15.5 (affected, semver); OSV events: introduced 1.15.0; fixed 1.15.5. Source: OSV GHSA-j43x-5hjq-rgxf
-  / plug (plug): 1.16.0 (affected, Hex); 1.16.1 (affected, Hex); 1.16.2 (affected, Hex); 1.16.3 (affected, Hex); ≥ 1.16.0; < 1.16.4 (affected, semver); OSV events: introduced 1.16.0; fixed 1.16.4. Source: OSV GHSA-j43x-5hjq-rgxf
-  / plug (plug): 1.17.0 (affected, Hex); 1.17.1 (affected, Hex); ≥ 1.17.0; < 1.17.2 (affected, semver); OSV events: introduced 1.17.0; fixed 1.17.2. Source: OSV GHSA-j43x-5hjq-rgxf
-  / plug (plug): 1.18.0 (affected, Hex); 1.18.1 (affected, Hex); 1.18.2 (affected, Hex); ≥ 1.18.0; < 1.18.3 (affected, semver); OSV events: introduced 1.18.0; fixed 1.18.3. Source: OSV GHSA-j43x-5hjq-rgxf
-  / plug (plug): 1.19.0 (affected, Hex); 1.19.1 (affected, Hex); 1.19.2 (affected, Hex); ≥ 1.19.0; < 1.19.3 (affected, semver); OSV events: introduced 1.19.0; fixed 1.19.3. Source: OSV GHSA-j43x-5hjq-rgxf

## Severity and prioritization

- 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; source: CNA: EEF

- CISA KEV: No listing in collected sources

- EPSS: 0.89% as of 2026-11-23; percentile 60.39%

- SSVC: exploitation poc; automatable yes; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-407

## Exploit evidence

- exploit: https://github.com/elixir-plug/plug/security/advisories/GHSA-j43x-5hjq-rgxf (ADP: CISA-ADP)

## References

- https://github.com/elixir-plug/plug/security/advisories/GHSA-j43x-5hjq-rgxf (CNA: EEF; vendor-advisory, related)

- https://cna.erlef.org/cves/CVE-2026-54892.html (CNA: EEF; related)

- https://osv.dev/vulnerability/EEF-CVE-2026-54892 (CNA: EEF; related)

- https://github.com/elixir-plug/plug/commit/712b875d3442c765d8d37e546ffd5ad9f8afcc55 (CNA: EEF; related)

- https://github.com/elixir-plug/plug/commit/9c5d37c440eaae92869eed7c014c47266744fadb (CNA: EEF; patch)

- https://github.com/elixir-plug/plug/commit/a61124aa625d819a218fb07f90afbac8aa85eb0e (CNA: EEF; patch)

- https://github.com/elixir-plug/plug/commit/b4aa8a0665ce2726a6d5af44467fb4f59595b107 (CNA: EEF; patch)

- https://github.com/elixir-plug/plug/commit/c317d08fdcf96e17931f7419275b2b8c4bf3e951 (CNA: EEF; patch)

- https://github.com/elixir-plug/plug/commit/d4e5568392a4b29e545b91e12e87d6098f976145 (CNA: EEF; patch)

- https://github.com/elixir-plug/plug/commit/d737eb236f17e31a36290e39f9ef3cd86a1343bd (CNA: EEF; patch)

- https://github.com/elixir-plug/plug/security/advisories/GHSA-j43x-5hjq-rgxf (ADP: CISA-ADP; exploit)

- https://github.com/advisories/GHSA-j43x-5hjq-rgxf (OSV / GitHub Security Advisories; advisory)

- https://osv.dev/vulnerability/GHSA-j43x-5hjq-rgxf (OSV / GitHub Security Advisories; osv)

## Provenance

- CNA: EEF: https://www.cve.org/CVERecord?id=CVE-2026-54892; retrieved 2026-11-24; source updated 2026-11-24

- OSV / GitHub Security Advisories: https://osv.dev/vulnerability/GHSA-j43x-5hjq-rgxf; retrieved 2026-11-24; source updated 2026-09-23

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-54892; retrieved 2026-11-24; source updated Not reported

Revision: 28ed44ada15bfe1bdac0aa15e752fd89b261e3fae2d44e0622662e3c987de9fe

Canonical: https://y2.dev/cve/CVE-2026-54892

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.