🛡️ CVE-2026-54892 — plug
Description
Plug: quadratic-time decoding of nested query/body parameters enables denial of service
Summary
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, 1.16.4, 1.17.2, 1.18.3, and 1.19.3.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality none, integrity none, availability high.
Weakness class
CVE-2026-54892 is classified as CWE-407: Inefficient Algorithmic Complexity. Crafted input drives an algorithm into its worst case, so a small request costs disproportionate work.
Affected software
CVE-2026-54892 is recorded against 2 packages.
- plug
- unknown
Timeline and source
Published on 23 June 2026 and last revised on 30 July 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.
References
github.com (Advisory)
cna.erlef.org (Web)
github.com (Fix)
github.com (Fix)
github.com (Fix)
github.com (Fix)
github.com (Fix)
hex.pm (Package)
Details
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
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| plug | — | — |
| unknown | — | — |
References
Similar Threats
- Unknown CGA-6835-7pr2-x4gw
- Unknown CVE-2026-56813
- Unknown CVE-2026-56814
- Unknown CGA-594m-3qrh-m7qf
- Unknown CGA-434v-wc8g-cmvq
More CVE 2026 advisories
Browse all of CVE 2026 in the advisory index.
Free Vulnerability Check
Is your site affected by CVE-2026-54892?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2026-54892 and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.