CVE-2026-24690: Gitea Insufficient Permission Checks for Pull Request Branches (7.5 HIGH)
Gitea, a popular self-hosted Git service platform, contains a flaw in how it checks permissions when developers request changes to pull request branches. An unauthenticated attacker can exploit this weakness to update or rebase pull request branches without proper authorization, potentially altering code that others are reviewing or about to merge. The vulnerability affects all Gitea versions prior to 1.25.5 and carries a high severity rating.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.5 HIGH · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Weaknesses (CWE)
- CWE-284
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-07-03 / 2026-07-07
NVD description (verbatim)
Gitea versions before 1.25.5 have insufficient permission checks for updating or rebasing pull request branches.
4 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-24690 stems from insufficient authorization validation in Gitea's pull request branch manipulation logic. The vulnerability allows an unauthenticated network-based attacker to bypass permission checks and perform update or rebase operations on pull request branches. The flaw is rooted in CWE-284 (Improper Access Control / Permissions), which indicates that the application fails to properly enforce access restrictions. Because the attack requires no authentication or user interaction and network accessibility, the CVSS v3.1 score of 7.5 (HIGH) reflects the integrity risk posed by unauthorized code branch modifications.
Business impact
Organizations running self-hosted Gitea instances face risk of code repository integrity compromise. Attackers could silently rebase or update pull request branches to inject malicious code, inject vulnerabilities, or alter commit history without detection. This is especially damaging in environments where pull request reviews are a control point for code quality and security. Compromised branches could lead to backdoored releases, supply chain contamination, or loss of audit trails. The impact is heightened in organizations that rely on Gitea for internal development or that integrate it into CI/CD pipelines without additional controls.
Affected systems
All Gitea installations running versions prior to 1.25.5 are affected. This includes organizations using older branches of Gitea in production environments. Self-hosted instances are directly impacted; cloud-hosted or SaaS Gitea offerings depend on whether the provider has patched to 1.25.5 or later. Teams should verify their Gitea version against the vendor release history and patch status.
Exploitability
Exploitation is straightforward and requires no authentication, user interaction, or special network conditions. An attacker needs only network access to the Gitea instance and knowledge of a valid pull request to target. The low attack complexity and lack of authentication requirements make this vulnerability attractive to opportunistic attackers. However, exploitation is not currently listed in the CISA KEV catalog, indicating no widespread weaponized proof-of-concept or active in-the-wild campaigns have been cataloged as of the advisory date.
Remediation
Upgrade Gitea to version 1.25.5 or later immediately. This is a straightforward patching scenario with a defined minimum safe version. After upgrading, verify that permission checks for pull request operations are functioning correctly by testing in a non-production environment. Organizations unable to upgrade immediately should consider restricting network access to Gitea instances to trusted networks or implementing additional authorization logic at a reverse-proxy or API gateway layer, though this is not a substitute for patching.
Patch guidance
Update Gitea installations to version 1.25.5 or any subsequent release. Consult the official Gitea release notes and security advisories for any prerequisites or migration guidance specific to your deployment. If you operate a Gitea cluster or multi-instance setup, ensure all nodes are updated consistently. Test pull request update and rebase operations post-patch to confirm permission enforcement is restored.
Detection guidance
Monitor Gitea audit and access logs for suspicious pull request branch update or rebase activity, particularly requests from unauthenticated sources or with unexpected source IPs. Flag any updates to pull request branches that do not correlate with legitimate developer activity. Examine pull request commit histories for unexpected rebases or modifications. If detailed audit logging is not currently enabled, activate it prior to patching to establish a baseline for detection. Network-level monitoring for frequent or failed pull request API calls from external sources may also indicate exploitation attempts.
Why prioritize this
HIGH severity, no authentication required, direct impact on code integrity, and wide applicability across self-hosted Gitea deployments make this a priority for immediate patching. The vulnerability directly enables supply chain and repository integrity attacks. Although not yet in active exploitation per the KEV catalog, the low barrier to exploitation and high impact justify urgent remediation.
Risk score, explained
The CVSS v3.1 score of 7.5 reflects a network-accessible vulnerability requiring no authentication or user interaction, with high integrity impact (unauthorized modification of pull request branches) but no confidentiality or availability impact. The straightforward attack vector and absence of complex preconditions elevate the score despite the integrity-focused impact scope.
Frequently asked questions
Do I need to be authenticated to exploit this vulnerability?
No. The vulnerability allows unauthenticated attackers to bypass permission checks. This is one of the most concerning aspects, as it means any actor with network access to your Gitea instance can attempt exploitation without credentials.
What happens if someone exploits this to rebase a pull request branch?
They can modify the commit history of a pull request without authorization, potentially injecting malicious code, removing security fixes, or altering the intended changes. Code reviewers may not notice the tampering if the rebase is done quietly, and the compromised code could be merged into your main branch.
Is this vulnerability being actively exploited in the wild?
As of the advisory date, this vulnerability is not listed in the CISA KEV (Known Exploited Vulnerabilities) catalog, meaning no public weaponized exploits or active mass exploitation campaigns have been formally documented. However, the ease of exploitation means defenders should assume opportunistic attacks are possible.
If I cannot patch immediately, what should I do?
Restrict network access to your Gitea instance to trusted IP ranges or VPNs, and implement additional API authentication at the reverse-proxy or load-balancer layer if possible. These are temporary mitigations and not substitutes for patching. Upgrade to version 1.25.5 as soon as feasible.
This analysis is based on the CVE record and publicly available vendor information as of July 2026. No exploit code or weaponized proof-of-concept is provided. Organizations should verify patch availability and compatibility with their specific Gitea deployment version and environment before applying updates. Always test patches in a non-production environment first. Security controls should be layered; network access restrictions and audit logging should complement—not replace—timely patching. Consult the official Gitea security advisory and release notes for the most current guidance. Source: NVD (public-domain), retrieved 2026-08-12. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2025-22426HIGHAndroid ComputerEngine URI Escalation Privilege Vulnerability
- CVE-2025-45422HIGHProximus b-box v8c.725A Access Control Flaw Allows Unauthorized Port Forwarding Changes
- CVE-2025-46315HIGHmacOS Tahoe Permissions Flaw Enables Unauthorized Data Access
- CVE-2025-63579HIGHKyocera TASKalfa Printer Authentication Bypass & Credential Extraction
- CVE-2025-66391HIGHCitrix Cloud Read-Only Account Privilege Escalation to Account Takeover
- CVE-2025-71380HIGHn8n Execute Command Node Arbitrary Command Execution Vulnerability
- CVE-2026-11179HIGHChrome ORB Site Isolation Bypass (CVSS 8.8)
- CVE-2026-11344HIGHUnrestricted File Upload in code-projects Vehicle Management System 1.0