CVE-2026-22547

Gitea repository creation accepts invalid field values

Published Jul 3, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
Gitea versions before 1.25.5 lack validation constraints for repository creation fields, including length-limited template fields and trust model or object format values.

Analysis

AI-generated

Technical impact

Gitea versions before 1.25.5 lack input validation for fields used during repository creation, such as template descriptors and trust model tags. The missing checks allow an attacker to submit data that exceeds expected lengths or contains unsupported format values, which can trigger application errors, excessive resource consumption, or incorrect assignment of trust settings. This flaw is classified as CWE‑20, improper input validation.

Affected Systems

Any deployment of Gitea Open Source Git Server running a version earlier than 1.25.5 is affected. The issue is resolved in release 1.25.5 and later versions, so those releases are not vulnerable.

Risk and Exploitability

The CVSS score of 9.1 indicates high severity. The EPSS score of <1% suggests that the likelihood of a publicly available exploit is low at present. The vulnerability is not included in the CISA KEV catalog. Exploitation would require the ability to invoke the repository creation API with arbitrary values; this entry is inferred from the description of the vulnerable code path. While no public exploit has been reported, the high severity and potential impact warrant prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official Gitea 1.25.5 release or any newer version that includes the input validation fix.
  • If a patch cannot be applied immediately, limit access to the repository creation endpoint to trusted, authenticated accounts only.
  • Review any automation or scripts that create repositories and enforce maximum length limits and valid values for template descriptors, trust model tags, and object format identifiers.

Generated by OpenCVE AI on August 1, 2026 at 20:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-922f-hfwp-p56f Gitea repository creation accepts insufficiently validated fields
History
Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

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

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server
Type Values Removed Values Added
Description Gitea versions before 1.25.5 lack validation constraints for repository creation fields, including length-limited template fields and trust model or object format values.
Title Gitea repository creation accepts invalid field values
Weaknesses CWE-20
References
Weaknesses
  • CWE-20

    Improper Input Validation

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Jul 7, 2026, 5:00 PM
Reserved
Feb 22, 2026, 3:13 PM
Status
Deferred
Published
Jul 3, 2026, 9:16 PM
Modified
Oct 25, 2026, 3:10 PM