{"schemaVersion":4,"id":"CVE-2026-54892","aliases":[],"status":"published","duplicateOf":null,"title":"Plug: quadratic-time decoding of nested query/body parameters enables denial of service","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.\n\nWith 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.\n\nThis 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.\n\nThis 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.","dates":{"published":"2026-06-23T12:31:12.629Z","modified":"2026-11-24T04:15:25.837Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.7,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":8.7,"severity":"high","vector":"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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.7,"severity":"high","vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01128,"percentile":0.67446,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0.234,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00894},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00949,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.01017,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.01128,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.01128,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.01128,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.01128,"percentile":0.67446}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00894,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.01017,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.01128,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.01128,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.01128,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.01128,"percentile":0.67446}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity","description":"An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"Low","url":"https://cwe.mitre.org/data/definitions/407.html"}],"affected":[{"vendor":"elixir-plug","product":"plug","name":"plug","label":"plug","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.15.0, < 1.15.5","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"1.15.0","startInclusive":true,"end":"1.15.5","endInclusive":false}},{"text":"≥ 1.16.0, < 1.16.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"1.16.0","startInclusive":true,"end":"1.16.4","endInclusive":false}},{"text":"≥ 1.17.0, < 1.17.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"1.17.0","startInclusive":true,"end":"1.17.2","endInclusive":false}},{"text":"≥ 1.18.0, < 1.18.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"1.18.0","startInclusive":true,"end":"1.18.3","endInclusive":false}},{"text":"≥ 1.19.0, < 1.19.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"1.19.0","startInclusive":true,"end":"1.19.3","endInclusive":false}},{"text":"≥ 712b875d3442c765d8d37e546ffd5ad9f8afcc55","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"range","start":"712b875d3442c765d8d37e546ffd5ad9f8afcc55","startInclusive":true,"end":null,"endInclusive":false}}],"versionsText":"≥ 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 | ≥ 712b875d3442c765d8d37e546ffd5ad9f8afcc55 (No fix recorded)","eol":null,"hubHref":"/vendor/elixir-plug/plug"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/elixir-plug/plug/security/advisories/GHSA-j43x-5hjq-rgxf","label":"github.com/elixir-plug/plug/security/advisories/GHSA-j43x-5hjq-rgxf","hostname":"github.com","tags":["Vendor Advisory","Related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-54892.html","label":"cna.erlef.org/cves/CVE-2026-54892.html","hostname":"cna.erlef.org","tags":["Related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-54892","label":"osv.dev/vulnerability/EEF-CVE-2026-54892","hostname":"osv.dev","tags":["Related"]},{"url":"https://github.com/elixir-plug/plug/commit/c317d08fdcf96e17931f7419275b2b8c4bf3e951","label":"github.com/elixir-plug/plug/commit/c317d08fdcf96e17931f7419275b2b8c4bf3e951","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/elixir-plug/plug/commit/9c5d37c440eaae92869eed7c014c47266744fadb","label":"github.com/elixir-plug/plug/commit/9c5d37c440eaae92869eed7c014c47266744fadb","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/elixir-plug/plug/commit/d737eb236f17e31a36290e39f9ef3cd86a1343bd","label":"github.com/elixir-plug/plug/commit/d737eb236f17e31a36290e39f9ef3cd86a1343bd","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/elixir-plug/plug/commit/d4e5568392a4b29e545b91e12e87d6098f976145","label":"github.com/elixir-plug/plug/commit/d4e5568392a4b29e545b91e12e87d6098f976145","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/elixir-plug/plug/commit/a61124aa625d819a218fb07f90afbac8aa85eb0e","label":"github.com/elixir-plug/plug/commit/a61124aa625d819a218fb07f90afbac8aa85eb0e","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/elixir-plug/plug/commit/712b875d3442c765d8d37e546ffd5ad9f8afcc55","label":"github.com/elixir-plug/plug/commit/712b875d3442c765d8d37e546ffd5ad9f8afcc55","hostname":"github.com","tags":["Related"]},{"url":"https://github.com/elixir-plug/plug/commit/b4aa8a0665ce2726a6d5af44467fb4f59595b107","label":"github.com/elixir-plug/plug/commit/b4aa8a0665ce2726a6d5af44467fb4f59595b107","hostname":"github.com","tags":["Patch"]}],"lineage":{"upstream":[],"downstream":["MGASA-2026-0457"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-06-23T12:31:12.629Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-24T04:15:25.837Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)","nextStep":"Check applicability: affected before 1.15.5, 1.16.4, 1.17.2, 1.18.3, 1.19.3 (CNA); fix release not confirmed","rank":[0,0,0,0,1,87],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.01128,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-24T04:15:25.837Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.7,"vector":"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","version":"4.0","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-24T04:15:25.837Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.7,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","version":"4.0"},{"type":"adp","source":"cisa-adp","date":"2026-06-23T13:03:58.893Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.01128,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T09:01:26.874Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T09:01:27.430Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T09:01:27.610Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T09:01:02.756Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T09:01:25.188Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T09:01:24.136Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T09:13:48.099Z","stale":false,"partial":false}}