CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-54892

CVE-2026-54892: Algorithmic Complexity Denial of Service in Plug Query Decoder

Alon Barad
Alon Barad
Software Engineer

Sep 23, 2026·6 min read·23 visits

Executive Summary (TL;DR)

Unauthenticated remote attackers can exhaust Erlang VM schedulers and cause a Denial of Service via deeply nested parameter keys in URL-encoded requests.

An algorithmic complexity vulnerability (CWE-407) in the query decoder of the Elixir Plug library (CVE-2026-54892) allows unauthenticated remote attackers to trigger scheduler starvation and denial of service by transmitting deeply nested brackets in query parameters or URL-encoded post bodies.

Vulnerability Overview

The vulnerability CVE-2026-54892 represents an algorithmic complexity flaw within the Plug library, the fundamental middleware stack powering web applications built in Elixir, including those on the Phoenix Framework. Within the Elixir ecosystem, Plug defines the specification for web application connection pipelines, managing everything from request parsing to route dispatching.

At the core of the issue is the processing of nested request parameters inside Plug.Conn.Query.decode/4 and Plug.Conn.Query.decode_each/2. These components are responsible for parsing incoming query strings from URLs as well as processing application/x-www-form-urlencoded payloads commonly sent via HTTP POST requests.

Because this parsing stage executes during the initial phases of the Plug connection lifecycle, it acts as a critical entry point on the application's attack surface. An attacker does not require authentication or route authorization to trigger the vulnerable code pathways, exposing the application to unauthenticated remote exploitation.

This security advisory details how a lack of depth limits in the parameter decoder leads to a quadratic-time $O(N^2)$ workload, which can be leveraged by a remote adversary to completely saturate Erlang VM schedulers, thereby inducing a persistent and resource-efficient Denial of Service (DoS).

Root Cause Analysis

The root cause of CVE-2026-54892 lies in the key splitting and nested dictionary construction algorithms implemented within lib/plug/conn/query.ex. The library employs a recursive parser to handle bracketed query parameter hierarchies such as user[profile][address][city]=value.

When Plug encounters a nested parameter structure, it recursively splits the key binary at bracket boundaries. To optimize performance, a previous patch utilized binary slicing to track path hierarchies. However, as the nested depth $N$ grows, the algorithm recursively extracts prefixes of the key binary to lookup and insert indices in the BEAM virtual machine's map structures.

Specifically, for each nested depth step $i$, the algorithm computes the binary prefix of length $L_i \approx 3i$. When inserting these keys into the tracking map, the BEAM VM must compute the hash of this growing binary prefix. Hashing a binary key requires a linear scan of its content, translating to an $O(L_i)$ computational cost. Summing this cost over $N$ nested levels yields an overall time complexity of $O(N^2)$ relative to the nesting depth.

Under default configurations, Plug.Parsers.URLENCODED allows up to 1,000,000 bytes of data. An attacker can construct a payload containing 333,000 levels of nesting. The BEAM VM attempting to parse this payload will undergo a massive hashing workload of approximately $166$ gigabytes of processed binary data, completely locking the corresponding Erlang process and its OS thread.

Code Analysis

Below is a comparison of the vulnerable implementation versus the mitigation implemented in the security patch. The original, optimized code did not track recursion depth, allowing unbounded recursion and nested key allocation.

In the vulnerable version of lib/plug/conn/query.ex, the split_keys/6 function recursively parses brackets without keeping track of recursion depth limit:

defp split_keys(<<?], ?[, rest::binary>>, binary, current_pos, start_pos, level, acc) do
  value = split_key(binary, current_pos, start_pos)
  next_level = binary_part(binary, 0, current_pos + 1)
  split_keys(rest, binary, current_pos + 2, current_pos + 2, next_level, [{level, value} | acc])
end

The security patch restricts recursion nesting to a maximum of 32 depth steps. A counter parameter is added to split_keys/7, which triggers an exception when exceeded:

@max_nesting 32
 
defp split_keys(<<?], ?[, rest::binary>>, binary, current_pos, start_pos, level, acc, count) do
  count = count + 1
  check_nesting!(count)
 
  value = split_key(binary, current_pos, start_pos)
  next_level = binary_part(binary, 0, current_pos + 1)
  current_pos = current_pos + 2
  acc = [{level, value} | acc]
  split_keys(rest, binary, current_pos, current_pos, next_level, acc, count)
end
 
defp check_nesting!(count) when count > @max_nesting do
  message = "maximum query nesting is #{@max_nesting}, got a query with #{count} keys"
  raise Plug.Conn.InvalidQueryError, message: message
end

This counter limits the worst-case time complexity of the parser by throwing a Plug.Conn.InvalidQueryError if the parameter depth exceeds the safe threshold of 32 nesting levels. This ensures the parsing load remains linear and safe.

Exploitation Methodology

Exploitation is accomplished by transmitting an HTTP request containing a single key with an extreme nesting depth to the target application. This attack targets the initial request ingestion stage, which executes before application routing occurs.

An attacker can construct a payload consisting of a variable name followed by nested sub-keys: x[x][x]...[x]=1. Because the default body limit for Plug.Parsers.URLENCODED is 1,000,000 bytes, a payload can reach over 330,000 nesting levels within a single request. When parsed, this structure causes the BEAM virtual machine to exhaustively perform binary partitioning and map hashing, consuming billions of processor cycles.

Because the Erlang VM runs cooperative schedulers pinned to individual CPU cores, processing such a payload freezes that scheduler thread. Flooding the target application with a small quantity of such requests saturates all available schedulers, stopping the handling of other network traffic and leading to a complete Denial of Service. The exploit does not require active socket monitoring or established sessions; it functions entirely statelessly.

Impact Assessment

The security impact of CVE-2026-54892 is scored as High with a CVSS v4.0 base score of 8.7. The primary threat vector is the complete loss of service availability across the affected application node.

Since body parsers generally run at the entry point of the middleware stack, the payload is parsed before any routing or authentication logic is evaluated. Consequently, even requests targeting nonexistent paths or static asset directories can trigger the resource exhaustion bug. This exposes all public-facing HTTP endpoints as potential target vectors.

No confidentiality or integrity impacts are present, but the ease of execution and low network bandwidth requirements make this vulnerability a highly reliable Denial of Service vector against unpatched Elixir and Phoenix systems. Systems deployed without external load balancing, rate limiting, or reverse-proxy request buffering are particularly vulnerable to immediate starvation of CPU resources.

Remediation and Mitigation

The recommended remediation is to upgrade the plug library in the application's dependencies to one of the patched releases:

  • plug version 1.15.5
  • plug version 1.16.4
  • plug version 1.17.2
  • plug version 1.18.3
  • plug version 1.19.3

If upgrading immediately is not possible, you can mitigate the vulnerability by restricting incoming request body size limits in endpoint.ex:

plug Plug.Parsers,
  parsers: [:urlencoded, :multipart, :json],
  pass: ["*/*"],
  json_decoder: Phoenix.json_library(),
  length: [urlencoded: 50000]

Additionally, Web Application Firewalls (WAF) can be configured to block request strings or post bodies that match a nested bracket regex pattern of more than 32 nested components, e.g., (\\[[^\\]]*\\]){32,}. These protective steps shield the underlying application from handling the malicious, oversized queries.

Official Patches

elixir-plugFix commit for main branch
elixir-plugOfficial security advisory

Fix Analysis (1)

Technical Appendix

CVSS Score
8.7/ 10
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
EPSS Probability
0.95%
Top 40% most exploited

Affected Systems

Elixir Web ApplicationsPhoenix Framework Applications using Plug < 1.15.5, 1.16.4, 1.17.2, 1.18.3, or 1.19.3

Affected Versions Detail

Product
Affected Versions
Fixed Version
plug
elixir-plug
>= 1.15.0, < 1.15.51.15.5
plug
elixir-plug
>= 1.16.0, < 1.16.41.16.4
plug
elixir-plug
>= 1.17.0, < 1.17.21.17.2
plug
elixir-plug
>= 1.18.0, < 1.18.31.18.3
plug
elixir-plug
>= 1.19.0, < 1.19.31.19.3
AttributeDetail
CWE IDCWE-407
Attack VectorNetwork
CVSS v4.0 Score8.7
Affected ComponentPlug.Conn.Query.decode/4
Exploit Statuspoc
Remediation StatusPatched

MITRE ATT&CK Mapping

T1499Endpoint Denial of Service
Impact
T1499.004Endpoint DoS: Application Exhaustion Flood
Impact
CWE-407
Inefficient Algorithmic Complexity

The execution time of the query decoder increases quadratically relative to the depth of bracket-nested query parameter keys, enabling resource exhaustion attacks.

Vulnerability Timeline

Core library optimization commit introduced
2023-03-30
Vulnerability identified and reported to EEF security team
2026-06-15
Security advisory published and CVE-2026-54892 assigned
2026-06-23
Patched versions of Plug released
2026-06-23

References & Sources

  • [1]GHSA-j43x-5hjq-rgxf Security Advisory
  • [2]NVD CVE-2026-54892 Details
  • [3]Erlang Ecosystem Foundation Advisory

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•35 minutes ago•GHSA-6856-87HX-P5X7
7.5

CVE-2026-105544: Local Elevation of Privilege in .NET Test Platform CLI

CVE-2026-105544 is a high-severity local elevation of privilege vulnerability in Microsoft .NET and Microsoft.TestPlatform.CLI. Improper access control on local inter-process communication mechanisms and execution brokers allows an authorized local attacker to cross security boundaries and execute arbitrary code in the context of a higher-privileged user running a test execution cycle.

Amit Schendel
Amit Schendel
2 views•9 min read
•about 3 hours ago•CVE-2026-114152
8.8

CVE-2026-114152: Stack-Based Buffer Overflow and Untrusted Pointer Dereference in Microsoft DiaSymReader.Native

CVE-2026-114152 is a high-severity remote code execution vulnerability affecting Microsoft Visual Studio 2026 and multiple servicing branches of the Microsoft .NET runtime (.NET 8.0, 9.0, 10.0, and 11.0) on Windows platforms. The vulnerability exists within the native symbol reader library, Microsoft.DiaSymReader.Native, specifically inside the DiaObjectFile::ApplyFixup method during the processing of Common Object File Format (COFF) relocation records. By supplying a malformed object file or Program Database (PDB) symbol file containing out-of-bounds relocation offsets or invalid symbol table indices, an unauthenticated attacker can trigger an untrusted pointer dereference (CWE-822) and a stack-based buffer overflow (CWE-121). Successful exploitation occurs when a victim opens, compiles, or debugs a malicious project or symbol artifact, leading to arbitrary code execution within the security context of the active developer environment or build process.

Amit Schendel
Amit Schendel
5 views•11 min read
•about 4 hours ago•CVE-2026-118745
8.8

CVE-2026-118745: Remote Code Execution via Heap-Based Buffer Overflow in Microsoft Visual Studio and .NET DiaSymReader

CVE-2026-118745 is a high-severity remote code execution vulnerability affecting Microsoft Visual Studio 2026 and multiple supported versions of the .NET runtime (8.0, 9.0, 10.0, and 11.0) on Windows systems. The flaw is a heap-based buffer overflow (CWE-122) located within the native symbol reading library, Microsoft.DiaSymReader.Native, specifically in the routines responsible for extracting and parsing Program Database (.pdb) line number metadata. An attacker can exploit this vulnerability by supplying a crafted .pdb file alongside a repository, project, or compiled binary. When a developer or automated diagnostic process parses the malformed debug symbols, an out-of-bounds heap write occurs, permitting arbitrary code execution within the security context of the active user process.

Amit Schendel
Amit Schendel
7 views•10 min read
•about 5 hours ago•CVE-2026-109481
7.5

CVE-2026-109481: Cross-Site Request Forgery Leading to Elevation of Privilege in ASP.NET Core

CVE-2026-109481 is a high-severity Cross-Site Request Forgery (CSRF) vulnerability in the ASP.NET Core Blazor Server and interactive component architecture. The flaw exists within the internal circuit state synchronization endpoint (`/_blazor/refresh`), which fails to enforce antiforgery token validation or verify cross-origin request headers. By inducing an authenticated victim to issue a cross-site request targeting a pre-allocated circuit identifier, an unauthenticated attacker can bind the victim's security principal to the attacker's active SignalR circuit, resulting in full privilege elevation within the application scope.

Amit Schendel
Amit Schendel
6 views•9 min read
•about 6 hours ago•CVE-2026-126187
9.5

CVE-2026-126187: Unauthenticated Remote Code Execution in React Server Components

A critical deserialization vulnerability exists in React Server Components (RSC) packages (`react-server-dom-webpack`, `react-server-dom-parcel`, and `react-server-dom-turbopack`) across versions 19.0.0 through 19.3.0. The flaw occurs during the processing of React Flight protocol streams when handling multiple typed arrays sharing a backing ArrayBuffer alongside attacker-controlled inputs. By combining byte-stream buffer detachment semantics with unvalidated thenable invocation and exposed internal response states, an unauthenticated attacker can achieve remote code execution on server runtimes supporting React Server Components.

Alon Barad
Alon Barad
24 views•11 min read
•about 7 hours ago•CVE-2026-125123
2.3

CVE-2026-125123: Improper Output Neutralization and CI Workflow Command Injection in compose-lint CLI Parser

An improper output neutralization vulnerability (CWE-117 / CWE-150) exists in compose-lint version 0.31.0. When compose-lint is invoked on untrusted file paths without a preceding '--' option delimiter, Python's standard argparse module rejects malformed or dash-prefixed paths and writes them directly to standard error without passing through the application's output sanitizer. An attacker submitting a pull request containing crafted directory or file names with carriage returns or Unicode whitespace can inject arbitrary CI workflow commands into GitHub Actions or Azure Pipelines job logs.

Alon Barad
Alon Barad
5 views•10 min read