Description
ParseAcceptLanguage quadratic-time DoS via Locale middleware on unauthenticated requests
Published: 2026-08-13
Score: 7.5 High
EPSS: < 1% Very Low
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, making the attack vector straightforward. The CVSS score of 7.5 indicates a high severity, and the EPSS score of <1% suggests that widespread exploitation is unlikely at present; the vulnerability is not listed in CISA’s KEV catalog. Although the exploitation probability is low, the DoS effect can still throttle server resources and produce 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 14, 2026 at 19:37 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 14, 2026 at 19:37 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

Fri, 21 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Fri, 14 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}


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-14T17:14:59.535Z

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

Link: CVE-2026-58436

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

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

Modified: 2026-08-26T16:53:48.300

Link: CVE-2026-58436

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-13T16:44:52Z

Links: CVE-2026-58436 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T19:45:16Z

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

  • CWE-407

    Inefficient Algorithmic Complexity