Description
Gitea versions before 1.25.5 have insufficient permission checks for updating or rebasing pull request branches.
Published: 2026-07-03
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

CWE-284, representing an authorization flaw, underlies the issue in Gitea versions released before 1.25.5, where insufficient permission checks allow a user to update or rebase a pull‑request branch. The description implies that a user who should not alter the branch’s contents can succeed in doing so, enabling the introduction of malicious changes before a pull request is merged. Based on the nature of the vulnerability, it is inferred that such unauthorized changes could compromise code integrity, potentially affecting subsequent build or deployment pipelines, but the description does not explicitly mention code‑review or build impacts.

Affected Systems

The incorrect authorization logic applies to Gitea Open Source Git Server installations with a version older than 1.25.5. Any deployment running a prior release is susceptible because the flaw exists in the core logic that governs pull‑request branch updates.

Risk and Exploitability

The EPSS score is less than 1% and the vulnerability is not listed in CISA’s KEV catalog; the CVE data does not provide evidence of public exploitation. The CVSS score of 7.5 indicates a high severity impact. The flaw can be exploited by any authenticated user with pull‑request interaction rights who should not have permission to rebase or replace a pull‑request branch. This condition is inferred from the described permission model. Consequently, the risk remains significant, especially in environments with permissive contributor access or loosely controlled RBAC.

Generated by OpenCVE AI on July 23, 2026 at 16:19 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Gitea release 1.25.5 or later to restore proper authorization checks for pull‑request branch operations.
  • If upgrading is not immediately possible, adjust the role‑based permissions to revoke the ability to rebase or replace pull‑request branches from regular contributors, leaving it for administrators only.
  • Ensure the Gitea instance’s RBAC configuration enforces that only users granted explicit rebasing or branch‑replacement privileges can perform those actions, and verify that no broader privilege escalation is enabled.

Generated by OpenCVE AI on July 23, 2026 at 16:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 07 Jul 2026 17: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:H/A:N'}

ssvc

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


Mon, 06 Jul 2026 23: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

Fri, 03 Jul 2026 20:45:00 +0000

Type Values Removed Values Added
Description Gitea versions before 1.25.5 have insufficient permission checks for updating or rebasing pull request branches.
Title Gitea pull-request branch updates use insufficient permission checks
Weaknesses CWE-284
References

Subscriptions

Gitea Gitea Open Source Git Server
cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-07-07T17:00:15.503Z

Reserved: 2026-02-22T15:13:33.685Z

Link: CVE-2026-24690

cve-icon Vulnrichment

Updated: 2026-07-07T15:58:04.584Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-23T16:30:09Z

Weaknesses