CVE-2026-54892
Plug: quadratic-time decoding of nested query/body parameters enables denial of service
Check your servers for CVE-2026-54892
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-54892 affects plug, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
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
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- none: an attack works without special conditions on the target
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality none, integrity none, availability high: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 1.08%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 64.6% of all scored CVEs. Scores of 29 Nov 2026.
The assessment of CISA (SSVC, 23 Jun 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-407 Inefficient Algorithmic Complexity
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
plug
package
plug |
affected from 1.15.0, before 1.15.5 affected from 1.16.0, before 1.16.4 affected from 1.17.0, before 1.17.2 affected from 1.18.0, before 1.18.3 affected from 1.19.0, before 1.19.3
Other versions: unaffected
|
|
plug
package
elixir-plug/plug |
affected 712b875d3442c765d8d37e546ffd5ad9f8afcc55 and later (unaffected from 9c5d37c440eaae92869eed7c014c47266744fadb, unaffected from a61124aa625d819a218fb07f90afbac8aa85eb0e, unaffected from b4aa8a0665ce2726a6d5af44467fb4f59595b107, unaffected from c317d08fdcf96e17931f7419275b2b8c4bf3e951, unaffected from d4e5568392a4b29e545b91e12e87d6098f976145, unaffected from d737eb236f17e31a36290e39f9ef3cd86a1343bd)
Other versions: unaffected
|
Is my server affected?
Find the installed version of plug and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i plug
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-54892 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-54892RHEL, Rocky, Alma, Fedora
rpm -q plug
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-54892Alpine
apk list --installed | grep -i plugWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-54892
trivy image --scanners vuln IMAGE | grep CVE-2026-54892
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Patches and release notes
- Fix commit 9c5d37c in elixir-plug/plug github.com · patch
- Fix commit a61124a in elixir-plug/plug github.com · patch
- Fix commit b4aa8a0 in elixir-plug/plug github.com · patch
- Fix commit c317d08 in elixir-plug/plug github.com · patch
- Fix commit d4e5568 in elixir-plug/plug github.com · patch
- Fix commit d737eb2 in elixir-plug/plug github.com · patch
Exploits and proof of concept
- Plug: quadratic-time decoding of nested query/body parameters enables denial of service github.com · vendor advisory, related, exploit
Other references
- EEF CNA record for CVE-2026-54892 cna.erlef.org · related
- OSV record EEF-CVE-2026-54892 osv.dev · related
- Introducing commit 712b875 in elixir-plug/plug github.com · related
Source: the record CVE-2026-54892 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse