CVE-2026-54892
Plug: quadratic-time decoding of nested query/body parameters enables denial of service
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.
Fixes and workarounds
Fix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: CNA: EEFFix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: CNA: EEFFix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: CNA: EEFFix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: CNA: EEFFix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: CNA: EEFFix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: CNA: EEFFix
plug (Hex): OSV reports a fixed version 1.15.5. Check the advisory for supported release branches.
Source: OSV GHSA-j43x-5hjq-rgxfFix
plug (Hex): OSV reports a fixed version 1.16.4. Check the advisory for supported release branches.
Source: OSV GHSA-j43x-5hjq-rgxfFix
plug (Hex): OSV reports a fixed version 1.17.2. Check the advisory for supported release branches.
Source: OSV GHSA-j43x-5hjq-rgxfFix
plug (Hex): OSV reports a fixed version 1.18.3. Check the advisory for supported release branches.
Source: OSV GHSA-j43x-5hjq-rgxfFix
plug (Hex): OSV reports a fixed version 1.19.3. Check the advisory for supported release branches.
Source: OSV GHSA-j43x-5hjq-rgxfAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| plug elixir-plug plug
hex |
≥ 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) Other versions: unaffected |
CNA: EEF |
| plug elixir-plug elixir-plug/plug
github |
≥ 712b875d3442c765d8d37e546ffd5ad9f8afcc55; < * (affected, git); unaffected at 9c5d37c440eaae92869eed7c014c47266744fadb; unaffected at a61124aa625d819a218fb07f90afbac8aa85eb0e; unaffected at b4aa8a0665ce2726a6d5af44467fb4f59595b107; unaffected at c317d08fdcf96e17931f7419275b2b8c4bf3e951; unaffected at d4e5568392a4b29e545b91e12e87d6098f976145; unaffected at d737eb236f17e31a36290e39f9ef3cd86a1343bd
Other versions: unaffected |
CNA: EEF |
plugplug
Hex |
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 events (semver)
Other versions: unaffected |
OSV GHSA-j43x-5hjq-rgxf |
plugplug
Hex |
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 events (semver)
Other versions: unaffected |
OSV GHSA-j43x-5hjq-rgxf |
plugplug
Hex |
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 events (semver)
Other versions: unaffected |
OSV GHSA-j43x-5hjq-rgxf |
plugplug
Hex |
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 events (semver)
Other versions: unaffected |
OSV GHSA-j43x-5hjq-rgxf |
plugplug
Hex |
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 events (semver)
Other versions: unaffected |
OSV GHSA-j43x-5hjq-rgxf |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 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 | CNA: EEF |
Exploit evidence
- https://github.com/elixir-plug/plug/security/advisories/GHSA-j43x-5hjq-rgxf
exploit · ADP: CISA-ADP
References
- https://github.com/elixir-plug/plug/security/advisories/GHSA-j43x-5hjq-rgxfCNA: EEF · vendor-advisory, related
- https://cna.erlef.org/cves/CVE-2026-54892.htmlCNA: EEF · related
- https://osv.dev/vulnerability/EEF-CVE-2026-54892CNA: EEF · related
- https://github.com/elixir-plug/plug/commit/712b875d3442c765d8d37e546ffd5ad9f8afcc55CNA: EEF · related
- https://github.com/elixir-plug/plug/commit/9c5d37c440eaae92869eed7c014c47266744fadbCNA: EEF · patch
- https://github.com/elixir-plug/plug/commit/a61124aa625d819a218fb07f90afbac8aa85eb0eCNA: EEF · patch
- https://github.com/elixir-plug/plug/commit/b4aa8a0665ce2726a6d5af44467fb4f59595b107CNA: EEF · patch
- https://github.com/elixir-plug/plug/commit/c317d08fdcf96e17931f7419275b2b8c4bf3e951CNA: EEF · patch
- https://github.com/elixir-plug/plug/commit/d4e5568392a4b29e545b91e12e87d6098f976145CNA: EEF · patch
- https://github.com/elixir-plug/plug/commit/d737eb236f17e31a36290e39f9ef3cd86a1343bdCNA: EEF · patch
- https://github.com/elixir-plug/plug/security/advisories/GHSA-j43x-5hjq-rgxfADP: CISA-ADP · exploit
- https://github.com/advisories/GHSA-j43x-5hjq-rgxfOSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-j43x-5hjq-rgxfOSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.