CVE-2026-96580

Gitea Actions memory exhaustion through large static matrices

Published Oct 6, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Gitea expanded a workflow's static `strategy.matrix` into its full Cartesian product without a size limit when creating a run, before the fork pull request approval gate applied. A user who can open a pull request from a fork could submit a small workflow file whose matrix expands to a very large number of jobs, consuming server memory and potentially terminating the Gitea process. No runner is required. Static matrices above 256 combinations are now rejected before expansion.

Analysis

AI-generated

Technical impact

Gitea expands a workflow’s static matrix into its full cartesian product without imposing a size limit when a run is created, before the fork pull request approval gate is enforced. A contributor who can open a pull request from a fork can supply a workflow file with a small matrix that expands to a very large number of jobs, consuming all server RAM and potentially terminating the Gitea process; no runner or external action is required for the attack.

Affected Systems

The issue impacts the Gitea platform, specifically versions before the 28.0.0 release, because those releases lack the 256‑combination hard cap on static matrices. Any Gitea instance that allows pull requests from forks to modify or create workflow files is at risk.

Risk and Exploitability

The vulnerability is highly exploitable for any system permitting forked pull requests containing workflow files. An attacker can trigger a denial‑of‑service with minimal effort, causing service disruption for all repositories served by the instance. The public CVSS score is 7.5 and the EPSS score indicates a very low but non‑zero exploitation probability (<1%). The vulnerability is not catalogued in the CISA KEV, but the potential for widespread service interruption demands prompt remediation. The attack vector is inferred to be a forked pull request that is accepted without proper matrix‑size validation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Gitea to version 28.0.0 or later, which imposes a 256‑combination limit on static matrices.
  • Restrict or disable pull requests from forks that can create or alter workflow files, or require manual approval before merging such changes.
  • Configure Gitea’s action dispatcher to enforce an explicit matrix‑size policy or increase server hard memory limits and monitor for abnormal spikes.

Generated by OpenCVE AI on October 7, 2026 at 23:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*
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'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea
Type Values Removed Values Added
Description Gitea expanded a workflow's static `strategy.matrix` into its full Cartesian product without a size limit when creating a run, before the fork pull request approval gate applied. A user who can open a pull request from a fork could submit a small workflow file whose matrix expands to a very large number of jobs, consuming server memory and potentially terminating the Gitea process. No runner is required. Static matrices above 256 combinations are now rejected before expansion.
Title Gitea Actions memory exhaustion through large static matrices
Weaknesses CWE-400
References
Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Oct 7, 2026, 8:09 PM
Reserved
Oct 4, 2026, 9:59 PM
Status
Analyzed
Published
Oct 6, 2026, 8:17 PM
Modified
Oct 13, 2026, 3:36 PM