CVE-2026-54892
Plug: quadratic-time decoding of nested query/body parameters enables denial of service
Mitigation
- Upgrade plug to 1.19.3 or later.
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, < *
Vulnerability facts
- 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
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- 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:NOpen in CVSS calculator
Show all 11 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
- EPSS
- 1.08% chance of exploitation in 30 days (percentile 65, 2026-11-26)
- CWE
- CWE-407
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| 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 |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
- https://github.com/elixir-plug/plug/commit/712b875d3442c765d8d37e546ffd5ad9f8afcc55
- https://github.com/elixir-plug/plug/commit/9c5d37c440eaae92869eed7c014c47266744fadb
- https://github.com/elixir-plug/plug/commit/a61124aa625d819a218fb07f90afbac8aa85eb0e
- https://github.com/elixir-plug/plug/commit/b4aa8a0665ce2726a6d5af44467fb4f59595b107
- https://github.com/elixir-plug/plug/commit/c317d08fdcf96e17931f7419275b2b8c4bf3e951
- https://github.com/elixir-plug/plug/commit/d4e5568392a4b29e545b91e12e87d6098f976145
- https://github.com/elixir-plug/plug/commit/d737eb236f17e31a36290e39f9ef3cd86a1343bd
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.