Description
ParseAcceptLanguage quadratic-time DoS via Locale middleware on unauthenticated requests
Published: 2026-08-13
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

This vulnerability allows an attacker to trigger a quadratic‑time parsing loop in the Locale middleware by sending a specially crafted Accept‑Language header. When an unauthenticated request reaches the middleware, the parsing of this header can consume excessive CPU time, leading to a denial of service for legitimate users. The flaw is a classic example of algorithmic complexity abuse (CWE‑407) combined with a specific locale parsing error (CWE‑1333).

Affected Systems

The affected product is Gitea Open Source Git Server. Version information is not explicitly listed in the CVE data, but the advisory references suggest that the issue was resolved in the 1.27.0 release. Any Gitea instance running a pre‑1.27.0 version and exposing the Locale middleware to unauthenticated traffic is potentially vulnerable.

Risk and Exploitability

The exploit requires only the ability to send an HTTP request to the target, with no authentication needed, which makes the attack vector straightforward. Because EPSS is not available and the vulnerability is not listed in CISA’s KEV catalog, the numeric severity cannot be precisely quantified; nevertheless, the ability to throttle server resources can lead to noticeable service degradation or temporary denial for users. An attacker could launch automated high‑volume requests to trigger repeated parsing of malicious Accept‑Language headers, amplifying the DoS impact.

Generated by OpenCVE AI on August 13, 2026 at 18:41 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Gitea to version 1.27.0 or later, which contains the fix for the Locale middleware parsing issue.
  • If an update is not immediately possible, block or throttle requests that contain large or numerous Accept‑Language headers before they reach the middleware.
  • Configure the web server or reverse proxy to enforce request limits, such as maximum header size or per‑IP rate limiting, to reduce the likelihood that a single attacker can overwhelm the server.

Generated by OpenCVE AI on August 13, 2026 at 18:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-fw57-jgch-pgf3 Gitea: ParseAcceptLanguage quadratic-time DoS via Locale middleware on unauthenticated requests
History

Thu, 13 Aug 2026 19:15:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server

Thu, 13 Aug 2026 17:00:00 +0000

Type Values Removed Values Added
Description ParseAcceptLanguage quadratic-time DoS via Locale middleware on unauthenticated requests
Title ParseAcceptLanguage quadratic-time DoS via Locale middleware on unauthenticated requests
Weaknesses CWE-1333
CWE-407
References

Subscriptions

Gitea Gitea Open Source Git Server
cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-08-13T16:44:52.210Z

Reserved: 2026-06-30T18:57:20.616Z

Link: CVE-2026-58436

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-13T17:17:27.600

Modified: 2026-08-13T17:17:27.600

Link: CVE-2026-58436

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T19:00:12Z

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

  • CWE-407

    Inefficient Algorithmic Complexity