Description
Denial of Service (CPU & Memory Exhaustion) via O(N^2) String Concatenation in Debian Package Upload
Published: 2026-08-13
Score: 6.2 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises from an O(N^2) string concatenation performed during the processing of Debian package uploads in Gitea Open Source Git Server. This excessive concatenation can consume vast amounts of CPU time and memory, leading to a DoS that renders the service unavailable or severely degrades its performance. The weakness is identified as improper access control (CWE‑284).

Affected Systems

The affected product is Gitea Open Source Git Server. Specific version information is not provided, so all versions prior to a future patch may be vulnerable. The CVE references a new release of version 1.27.0, suggesting that versions before 1.27.0 are at risk, though that is not explicitly confirmed.

Risk and Exploitability

The CVSS score is 6.2 and the EPSS score is not available, and the vulnerability is not listed in CISA KEV. Nonetheless, an attacker can exploit the resource exhaustion by uploading a large or specially crafted Debian package through the upload interface. The attack requires the ability to send files to the server; whether authentication is required is unclear, so the risk could be high, especially in publicly exposed installations.

Generated by OpenCVE AI on August 13, 2026 at 21:39 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the official patch: upgrade to Gitea 1.27.0 or later, which resolves the O(N^2) string concatenation flaw identified by CWE-284.
  • Enforce access control (CWE‑284) by restricting Debian package uploads to authenticated users with appropriate permissions, preventing unauthorized uploads that could trigger resource exhaustion.
  • Limit the size of uploaded Debian packages and enforce per‑user disk quotas to counter the resource exhaustion caused by the CWE-284 string concatenation flaw.
  • Implement rate limiting and real‑time monitoring to detect and mitigate repeated large uploads that could trigger the CWE-284 related resource exhaustion.

Generated by OpenCVE AI on August 13, 2026 at 21:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-6hm7-3pwj-22rm Gitea: Denial of Service (CPU & Memory Exhaustion) via O(N^2) String Concatenation in Debian Package Upload
History

Thu, 13 Aug 2026 19:30: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
Metrics cvssV3_1

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

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


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

Type Values Removed Values Added
Description Denial of Service (CPU & Memory Exhaustion) via O(N^2) String Concatenation in Debian Package Upload
Title Denial of Service (CPU & Memory Exhaustion) via O(N^2) String Concatenation in Debian Package Upload
Weaknesses CWE-284
References

Subscriptions

Gitea Gitea Open Source Git Server
cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-08-13T18:38:14.713Z

Reserved: 2026-07-08T09:19:08.011Z

Link: CVE-2026-56755

cve-icon Vulnrichment

Updated: 2026-08-13T18:36:21.110Z

cve-icon NVD

Status : Received

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

Modified: 2026-08-13T19:17:25.273

Link: CVE-2026-56755

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T19:15:03Z

Weaknesses