Skip to content

Gitea · Gitea

CVE-2026-60004

Gitea Code Injection Vulnerability

Actively exploitedAdded by CISA 25 August 2026

What it is

Gitea contains a code injection vulnerability that allows an attacker with repository write access to send a malicious patch to the diffpatch API endpoint to plant an executable Git hook and run shell commands as the Gitea service account.

Am I affected?

Only if you run Gitea Gitea, or a service built on it, in a version the vendor lists as affected. The vendor's advisory in the references gives the affected and fixed versions.

CISA adds a vulnerability to this list only when there is reliable evidence of attacks using it, so treat it as urgent if you run an affected version.

What to do

  1. Find out whether you run Gitea, and which version, including on hosting or services you don't manage day to day.
  2. Apply the vendor's update or mitigation from the advisory below. If there is none yet, follow the vendor's workaround, or take the product off the internet until it's fixed.
  3. Because this is being exploited, check the system for signs it was already compromised before you patched: unknown accounts, changed files, and unusual outbound connections.

CISA's required action

Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.

US federal agencies must act by 28 August 2026.

References

  • github.com · https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j…
  • cisa.gov · https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-sec…
  • cisa.gov · https://www.cisa.gov/news-events/directives/bod-26-04-implementation-g…
  • NVD — CVE-2026-60004

Check your own site

A free scan checks your site's HTTPS, headers, cookies, exposed keys and malware signs, with the fix for each issue.

Scan a website