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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.7
- **CVSS:** 8.7 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.08% (percentile 65, 2026-11-26)
- **CWE:** CWE-407
- **Published:** 2026-06-23T12:31:12.629Z
- **Modified:** 2026-11-24T05:18:25.313Z

## Who should check

- Anyone running elixir-plug plug \>= 1.15.0, \< 1.15.5; \>= 1.16.0, \< 1.16.4; \>= 1.17.0, \< 1.17.2; \>= 1.18.0, \< 1.18.3; \>= 1.19.0, \< 1.19.3
- Anyone running elixir-plug plug \>= 712b875d3442c765d8d37e546ffd5ad9f8afcc55, \< \*

## 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.

## Affected and fixed versions

- elixir-plug plug: \>= 1.15.0, \< 1.15.5; \>= 1.16.0, \< 1.16.4; \>= 1.17.0, \< 1.17.2; \>= 1.18.0, \< 1.18.3; \>= 1.19.0, \< 1.19.3 (cvelist)
- elixir-plug plug: \>= 712b875d3442c765d8d37e546ffd5ad9f8afcc55, \< \* (cvelist)

## Mitigation

- Upgrade plug to 1.19.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-54892. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-54892.md
Affected: elixir-plug plug >= 1.15.0, < 1.15.5; >= 1.16.0, < 1.16.4; >= 1.17.0, < 1.17.2; >= 1.18.0, < 1.18.3; >= 1.19.0, < 1.19.3; elixir-plug plug >= 712b875d3442c765d8d37e546ffd5ad9f8afcc55, < *
Fixed in: elixir-plug plug 1.15.5, elixir-plug plug 1.16.4, elixir-plug plug 1.17.2, elixir-plug plug 1.18.3, elixir-plug plug 1.19.3

Steps:
1. Search this machine and project for elixir-plug plug: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-54892 being exploited?

There is no confirmed exploitation: CVE-2026-54892 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.08% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-54892?

High: CVSS 8.7 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-54892?

elixir-plug plug \>= 1.15.0, \< 1.15.5; \>= 1.16.0, \< 1.16.4; \>= 1.17.0, \< 1.17.2; \>= 1.18.0, \< 1.18.3; \>= 1.19.0, \< 1.19.3; elixir-plug plug \>= 712b875d3442c765d8d37e546ffd5ad9f8afcc55, \< \*.

### Is there a fix for CVE-2026-54892?

Yes. Fixed in elixir-plug plug 1.15.5, elixir-plug plug 1.16.4, elixir-plug plug 1.17.2, elixir-plug plug 1.18.3, elixir-plug plug 1.19.3. Upgrade plug to 1.19.3 or later.

### How do I check if I'm affected by CVE-2026-54892?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/elixir-plug/plug/security/advisories/GHSA-j43x-5hjq-rgxf>
- patch: <https://github.com/elixir-plug/plug/commit/712b875d3442c765d8d37e546ffd5ad9f8afcc55>
- patch: <https://github.com/elixir-plug/plug/commit/9c5d37c440eaae92869eed7c014c47266744fadb>
- patch: <https://github.com/elixir-plug/plug/commit/a61124aa625d819a218fb07f90afbac8aa85eb0e>
- patch: <https://github.com/elixir-plug/plug/commit/b4aa8a0665ce2726a6d5af44467fb4f59595b107>
- patch: <https://github.com/elixir-plug/plug/commit/c317d08fdcf96e17931f7419275b2b8c4bf3e951>
- patch: <https://github.com/elixir-plug/plug/commit/d4e5568392a4b29e545b91e12e87d6098f976145>
- patch: <https://github.com/elixir-plug/plug/commit/d737eb236f17e31a36290e39f9ef3cd86a1343bd>
- other: <https://cna.erlef.org/cves/CVE-2026-54892.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-54892>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-54892>

HTML: <https://flawdb.com/CVE-2026-54892> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-54892>
