Skip to main content

Gitea EUVDEUVD-2026-93920

| CVE-2026-95112 MEDIUM
Inefficient Algorithmic Complexity (CWE-407)
2026-10-06 88ee5874-cf24-4952-aea0-31affedb7ff2
6.5
CVSS 3.1 · Vendor: 88ee5874-cf24-4952-aea0-31affedb7ff2
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to Gitea instance
  2. Exploit
    Craft ~1MB issue/comment with many links
  3. Execution
    Trigger quadratic keyword rescan in reference parser
  4. Impact
    Exhaust CPU core and hold DB transaction

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
Exploitation Conditions

Requires an authenticated Gitea account (version ≤1.27.3) with permission to create issues or post comments; the attacker submits a large (~1 MB) issue/comment body whose structure maximizes Markdown links, exploiting the per-link rescan for close/reopen keywords. No special non-default configuration is needed and no user interaction is required (UI:N), but exploitation is limited by the authentication requirement (PR:L) and by any restrictions on account registration or issue/comment creation; instances that forbid self-registration or limit who can open issues meaningfully constrain who can trigger it.

Impact

This is a moderate, authentication-gated denial-of-service issue (CWE-407, algorithmic complexity) rather than a top-priority emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, 6.5) is internally consistent with the description: a network-reachable, low-complexity attack requiring a valid authenticated account that can submit issue or comment content, with impact limited purely to availability (C:N/I:N). All corroborating signals point to low real-world urgency: EPSS is 0.16% (4th percentile), there is no CISA KEV listing, and SSVC scores Exploitation=none, Automatable=no, Technical Impact=partial. No public exploit code was identified - the only source-code artifact provided is the upstream fix (PR #39396 introducing a bounded keyword window), not a weaponized POC. One signal to weigh carefully: CVSS rates A:H, while SSVC calls technical impact only 'partial' and the description scopes the effect to one busy CPU core plus a held database transaction for several minutes - this is a degradation/resource-exhaustion condition, more consistent with A:L in practice, so A:H may slightly overstate severity for a single request (though repeated requests could compound into a broader outage). The PR:L requirement is the main limiter: an attacker needs the ability to post issues/comments, so instances that disable public registration or restrict issue creation materially reduce exposure.

Exploit ScenarioDerived

An attacker with (or who self-registers) an authenticated Gitea account opens an issue or posts a comment containing a crafted body of roughly 1 MB structured to maximize Markdown links preceded by long text. Because reference parsing rescans all preceding text for action keywords ('closes', 'fixes') once per link, processing becomes quadratic, pinning a CPU core for several minutes and holding a database transaction open; repeating this across accounts or requests degrades availability for the whole instance. No public exploit code is known, but the quadratic trigger is simple to reproduce.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 08, 2026

Algorithmic complexity denial-of-service in Gitea 1.27.3 and earlier allows an authenticated user with permission to create issues or post comments to stall a server process by submitting a crafted ~1 MB body containing many Markdown links, keeping a CPU core busy for minutes while holding a database transaction open. The flaw is a quadratic rescan of preceding text for close/reopen keywords such as "closes" or "fixes" performed once per link (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, score 6.5). It is authentication-gated and no public exploit code has been identified at time of analysis; EPSS is low at 0.16% (4th percentile) and CISA SSVC records Exploitation: none.

RemediationAI

Vendor-released patch: upgrade to Gitea 28.0.0, which incorporates the fix from PR #39396 that caps the keyword look-back window and eliminates the quadratic scan (see advisory GHSA-467c-4w7p-8427 and the release announcement at https://blog.gitea.com/release-of-28.0.0/). If immediate upgrade is not feasible, constrain who can trigger the parser: disable self-registration and tighten issue/comment creation permissions so only trusted accounts can post bodies, accepting the trade-off that this reduces collaboration for untrusted contributors. Front-end request-body size limits (for example a reverse-proxy max body size well below 1 MB on issue/comment API and web endpoints) will block the ~1 MB payloads but may reject legitimate large pastes and attachments. Per-IP and per-user rate limiting on issue and comment creation reduces the rate at which a hostile user can occupy CPU and database transactions, at the cost of throttling normal heavy users, and placing strict CPU/memory limits or worker isolation around the Gitea process limits blast radius but can degrade throughput under legitimate load. Note that the vulnerability is authenticated (CVSS PR:L) and no public exploit code has been identified at time of analysis, so these compensating controls are proportionate mitigations rather than emergency actions.

Affected VersionsENISA

Gitea 0 ≤1.27.3

Affected Packages

euvd gitea no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Gitea's reference parser in modules/references/references.go resolves Markdown cross-references ("closes #1", "fixes #2") by calling getCrossReference, which previously executed issueCloseKeywordsPat.FindSubmatchIndex(content[:start]) and the equivalent reopen pattern against the entire byte prefix of the document preceding each link. Because this full-prefix scan runs once for every detected reference, the total work grows quadratically with the number of links in a body, the textbook signature of CWE-407 (Inefficient Algorithmic Complexity). The upstream fix (PR #39396) bounds the search to a computed window - issueKeywordWindow, derived from the longest keyword times utf8.UTFMax plus 3 runes to accommodate case-folded Unicode characters such as the long s and the ": " delimiter - and scans only content[windowStart:start], restoring linear behavior while preserving keyword detection semantics. The vulnerable code path is reached whenever an authenticated actor submits issue or comment content, so the exposure is tied to issue/comment write permissions rather than to any specific repository configuration.

Know when Gitea gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (88ee5874-cf24-4952-aea0-31affedb7ff2) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 6.5 MEDIUM

Network-submitted content with low complexity but needs an authenticated issue/comment author (PR:L); impact is availability-only (A:H as a resource-exhaustion DoS, arguably A:L), no confidentiality or integrity effect.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (88ee5874-cf24-4952-aea0-31affedb7ff2).

CVSS VectorVendor: 88ee5874-cf24-4952-aea0-31affedb7ff2

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
CVSS changed
Oct 08, 2026 - 13:22 NVD
6.5 (MEDIUM)
CVE Published
Oct 06, 2026 - 20:17 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

When processing issue and comment bodies, Gitea scanned the entire preceding text for action keywords such as "closes" or "fixes" once per Markdown link, giving processing time quadratic in the input size. An authenticated user able to submit issue or comment content could send a crafted body of about 1 MB that keeps a CPU core busy for several minutes while holding a database transaction open.

Threat Intelligence Overview

EPSS Score
0.2%
Top 96% exploitable
Prevalence
Medium
popular self-hosted git service, common but not ubiquitous in enterprises
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Gitea

View all
CVE-2026-60004 CRITICAL POC
9.8

Remote code execution in Gitea (self-hosted Git service) via a code-injection flaw (CWE-94) allows attackers to run arbi

CVE-2026-27771 HIGH POC
8.2 Jul 03

Broken access control in Gitea's Composer package registry (versions up to and including 1.26.1) lets remote attackers r

CVE-2022-30781 HIGH POC
7.5 May 16

Gitea before 1.16.7 does not escape git fetch remote. Rated high severity (CVSS 7.5), this vulnerability is remotely exp

CVE-2020-14144 HIGH POC
7.2 Oct 16

The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer envir

CVE-2024-6886 CRITICAL POC
10.0 Aug 06

Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea

CVE-2026-72867 CRITICAL POC
9.9 Aug 10

Authenticated command injection in Dokploy (self-hostable PaaS) versions 0.29.3 through 0.29.12 lets a low-privileged us

CVE-2026-20896 CRITICAL POC
9.8 Jul 03

Reverse-proxy authentication bypass in the official Gitea Docker image (versions up to and including 1.26.2) allows any

CVE-2026-59774 CRITICAL POC
9.8

Path traversal in Gitea's Org-mode (`.org`) markup renderer allows an attacker who can get Org-mode content rendered by

CVE-2026-58053 CRITICAL POC
9.4 Jun 28

Container escape in Gitea act_runner (Docker backend, through act 0.262.0) lets an authenticated user with workflow-exec

CVE-2019-11229 HIGH POC
8.8 Apr 15

models/repo_mirror.go in Gitea before 1.7.6 and 1.8.x before 1.8-RC3 mishandles mirror repo URL settings, leading to rem

CVE-2026-57894 HIGH POC
8.5 Jul 21

Server-side request forgery and internal repository exfiltration in Gitea before 1.27.0 lets a low-privileged authentica

CVE-2026-24791 HIGH POC
8.1 Jun 17

Authorization bypass in Gitea versions 1.22.3 through 1.26.1 allows holders of `public-only` access tokens or OAuth gran

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy