Sceawere

Vulnerability Detail

CVE-2026-58436UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV

Locale Middleware Quadratic Time DoS

Vulnerability Metadata

Severity
High
Score / CVSS
7.5
Creation Date
1d ago
Vendor
Gitea
Product
Gitea Open Source Git Server
Attack Type
CWE-407
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Complexity
LOW

Narrative and Response

Description

ParseAcceptLanguage quadratic-time DoS via Locale middleware on unauthenticated requests

Executive Summary

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Executive Summary Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Technical Details

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Detailed Technical Analysis Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Mitigations

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Remediation & Mitigations Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

References

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Intelligence References Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Additional Metadata

{
  "score": "7.5",
  "pubDate": "2026-08-13T17:17:27.600Z",
  "pubdate": "2026-08-13T17:17:27.600Z",
  "executiveSummary": "A quadratic-time Denial of Service (DoS) vulnerability exists in the ParseAcceptLanguage parsing mechanism utilized by the Locale middleware. This security flaw enables unauthenticated remote attackers to exhaust server resources and disrupt application availability.\nThe vulnerability stems from inefficient algorithmic complexity during the processing of maliciously crafted HTTP Accept-Language header values. When an application processes these oversized or deeply nested strings, CPU utilization spikes significantly, leading to application degradation or complete unresponsiveness.\nThe impacted systems include applications utilizing the vulnerable ParseAcceptLanguage implementation within their Locale middleware stack. Because the attack vector targets unauthenticated requests, any exposed web endpoint relying on the vulnerable parser is susceptible to exploitation without requiring prior access or specialized privileges.\nThe primary risk implication is service disruption resulting from resource exhaustion. Attackers can leverage low-bandwidth, low-volume requests containing specific payload structures to sustain high CPU load, effectively mounting a denial of service attack against the target infrastructure.",
  "technicalDetails": "The root cause of this vulnerability lies in algorithmic complexity issues within the ParseAcceptLanguage function when handling specific string inputs. The underlying parsing logic processes the Accept-Language header in a manner that exhibits quadratic time complexity ($O(n^2)$) relative to the length and structure of the input string.\nThe vulnerable component is the Locale middleware, specifically the function responsible for parsing and weighting language preference strings provided by clients via the HTTP Accept-Language header. Unauthenticated network exposure of endpoints invoking this middleware allows any remote client to supply arbitrary input to the parser.\nNo privileges or authentication are required to trigger the vulnerability, as the parsing occurs during the initial request handling phase prior to authentication checks. Attackers exploit this by transmitting HTTP requests with a meticulously crafted Accept-Language header designed to maximize computational overhead during parsing.\nThe attack flow proceeds as follows: 1. The attacker crafts an HTTP request containing a specialized, lengthy, or highly repetitive Accept-Language header payload. 2. The web application receives the request and routes it through the Locale middleware. 3. The ParseAcceptLanguage function attempts to parse the header values, invoking string manipulation and sorting operations that scale quadratically with the input size. 4. The CPU becomes saturated processing the nested or excessive language tokens. 5. Concurrently arriving legitimate requests experience severe latency or timeouts due to thread or process starvation, resulting in a denial of service.\nThe post-exploitation impact is strictly focused on availability, manifesting as resource exhaustion, elevated CPU utilization, and potential application crashes or gateway timeouts. The flaw does not allow for remote code execution, authentication bypass, or unauthorized data access."
}
CVE-2026-58436: Locale Middleware Quadratic Time DoS (HIGH Severity, CVSS: 7.5) - Sceawere