{"answers":{"affected":"11 open source packages ship an affected version, including plug.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54892 exists.","fix":"Upgrade plug to a fixed version for your release line: 1.15.5, 1.16.4, 1.17.2 or 1.18.3.","what":"CVE-2026-54892 is a high-severity denial of service vulnerability in elixir-plug plug, published on 23 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-54892 and fix it if it is affected.\n\nWhat it is: CVE-2026-54892 is a high-severity denial of service vulnerability in elixir-plug plug, published on 23 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54892 exists.\n\nAffected packages and fixed versions:\n- plug (Hex): affected from 1.15.0; fixed in 1.15.5, 1.16.4, 1.17.2, 1.18.3, 1.19.3\n- plug (Hex): affected from 1.15.0; fixed in 1.15.5\n- plug (Hex): affected from 1.15.0; fixed in 1.15.5\n- plug (Hex): affected from 1.16.0; fixed in 1.16.4\n- plug (Hex): affected from 1.16.0; fixed in 1.16.4\n- plug (Hex): affected from 1.17.0; fixed in 1.17.2\n- plug (Hex): affected from 1.17.0; fixed in 1.17.2\n- plug (Hex): affected from 1.18.0; fixed in 1.18.3\n- plug (Hex): affected from 1.18.0; fixed in 1.18.3\n- plug (Hex): affected from 1.19.0; fixed in 1.19.3\n- plug (Hex): affected from 1.19.0; fixed in 1.19.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-54892/ (Markdown: https://insights.sbomify.com/CVE-2026-54892/index.md)","id":"CVE-2026-54892","markdown":"https://insights.sbomify.com/CVE-2026-54892/index.md","name":"CVE-2026-54892","record":{"aliases":["EEF-CVE-2026-54892","GHSA-j43x-5hjq-rgxf"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Elixir Plug library","requires_auth":"none","summary":"Unauthenticated attackers can cause denial of service in Plug-based servers by sending deeply nested query parameters that trigger quadratic-time decoding.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"EEF","cpe":[],"cvss":{"score":8.7,"severity":"high","source":"cna","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"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"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, 1.16.4, 1.17.2, 1.18.3, and 1.19.3.","ecosystems":["Hex"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Plug: quadratic-time decoding of nested query/body parameters enables denial of service","id":"CVE-2026-54892","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Hex","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":11,"n_references":8,"next":{"headline":"Email-derived URL path injection in the Swoosh Microsoft Graph adapter","id":"CVE-2026-54893"},"packages":[{"ecosystem":"Hex","fixed":["1.15.5","1.16.4","1.17.2","1.18.3","1.19.3"],"introduced":["1.15.0","1.16.0","1.17.0","1.18.0","1.19.0"],"last_affected":[],"package":"plug","purl":"pkg:hex/plug","source":"EEF-CVE-2026-54892"},{"ecosystem":"Hex","fixed":["1.15.5"],"introduced":["1.15.0"],"last_affected":[],"package":"plug","purl":null,"source":"GHSA-j43x-5hjq-rgxf"},{"ecosystem":"Hex","fixed":["1.15.5"],"introduced":["1.15.0"],"last_affected":[],"package":"plug","purl":"pkg:hex/plug","source":"GHSA-j43x-5hjq-rgxf"},{"ecosystem":"Hex","fixed":["1.16.4"],"introduced":["1.16.0"],"last_affected":[],"package":"plug","purl":null,"source":"GHSA-j43x-5hjq-rgxf"},{"ecosystem":"Hex","fixed":["1.16.4"],"introduced":["1.16.0"],"last_affected":[],"package":"plug","purl":"pkg:hex/plug","source":"GHSA-j43x-5hjq-rgxf"},{"ecosystem":"Hex","fixed":["1.17.2"],"introduced":["1.17.0"],"last_affected":[],"package":"plug","purl":null,"source":"GHSA-j43x-5hjq-rgxf"},{"ecosystem":"Hex","fixed":["1.17.2"],"introduced":["1.17.0"],"last_affected":[],"package":"plug","purl":"pkg:hex/plug","source":"GHSA-j43x-5hjq-rgxf"},{"ecosystem":"Hex","fixed":["1.18.3"],"introduced":["1.18.0"],"last_affected":[],"package":"plug","purl":null,"source":"GHSA-j43x-5hjq-rgxf"},{"ecosystem":"Hex","fixed":["1.18.3"],"introduced":["1.18.0"],"last_affected":[],"package":"plug","purl":"pkg:hex/plug","source":"GHSA-j43x-5hjq-rgxf"},{"ecosystem":"Hex","fixed":["1.19.3"],"introduced":["1.19.0"],"last_affected":[],"package":"plug","purl":null,"source":"GHSA-j43x-5hjq-rgxf"},{"ecosystem":"Hex","fixed":["1.19.3"],"introduced":["1.19.0"],"last_affected":[],"package":"plug","purl":"pkg:hex/plug","source":"GHSA-j43x-5hjq-rgxf"}],"prev":{"headline":"Plaintext APPLICATION_DATA injected during TLS handshake delivered to client application post-handshake in ssl","id":"CVE-2026-54891"},"products":["plug"],"published":"2026-06-23","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Erlang Ecosystem Foundation","prefix":"EEF"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-23","vendors":["elixir-plug"]},"summary":"Unauthenticated attackers can cause denial of service in Plug-based servers by sending deeply nested query parameters that trigger quadratic-time decoding.","url":"https://insights.sbomify.com/CVE-2026-54892/"}