Aug 25, 2026 · ZeroDay Catalog
Critical Code Injection Vulnerability Discovered in Gitea
A significant code injection vulnerability has been identified in Gitea, affecting its diffpatch API endpoint and allowing potential execution of arbitrary commands.
What changed
Gitea has been found to contain a critical code injection vulnerability that can be exploited by attackers with write access to repositories. This flaw allows for the submission of malicious patches to the diffpatch API endpoint, which can lead to the execution of arbitrary shell commands under the Gitea service account.
- Vulnerability allows execution of arbitrary commands.
- Exploitable via malicious patches sent to the diffpatch API.
- Impacts the integrity and security of the Gitea service.
Who is affected
The vulnerability primarily affects users of Gitea, particularly those who have granted repository write access to untrusted contributors. Organizations using this platform should be aware of the potential risks associated with this vulnerability.
- Gitea users with repository write access.
- Organizations relying on Gitea for version control.
- Developers and teams utilizing Gitea for collaborative projects.
What to do
It is crucial for affected organizations to assess their Gitea installations and restrict write access to trusted users only. Additionally, monitoring for any unusual activity related to repository changes is recommended.
- Limit repository write access to trusted contributors.
- Monitor repository activity for signs of exploitation.
- Stay informed on updates from Gitea regarding patches or mitigations.