Gitea: attackers can run their own code
OFFICIAL NAME: Gitea Code Injection Vulnerability
WHAT IT IS · DEVELOPER TOOLSIt holds source code and the keys used to build and ship software.
DO THIS FIRSTPatch it. If it faced the internet, change the keys and passwords stored in it. Not sure if you use it? Send this page to your IT provider or security lead and ask.
TECHNICAL SUMMARY 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.
WHY THIS VERDICT Attacks are confirmed. The vulnerability is 59 days old, so current versions are being attacked. Ready-made attack tools are public. The severity score is critical (9.8).
- HIGHEST CONFIRMED RUNG
- EXPLOITED
- CISA KEV
- LISTED
- EXPLOIT CODE
- READY TO USE
How far has it climbed?
01 TALK
▨ REPORTED, NOT CONFIRMEDNEWEST EVIDENCE NONE YET · 1 SOURCEEvidence is recorded but no summary is available.
SRC: NONE YET02 EXPOSED
□ NOT TRACKED YETNO SOURCE FOR THIS STEP YETWe have no source that counts exposed systems yet. Internet scan data needs a partnership we do not have. No evidence here does not mean nothing is exposed.
03 TRIED
■ CONFIRMEDNEWEST EVIDENCE · 2 INDEPENDENT SOURCESAttacks that worked are confirmed (step 4), so attempts count as confirmed too.
04 EXPLOITED
■ CONFIRMEDNEWEST EVIDENCE · 2 INDEPENDENT SOURCESCISA Vulnrichment marks CVE-2026-60004 as actively exploited. 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.
05 DAMAGE
□ NOT TRACKED YETNO SOURCE FOR THIS STEP YETBreach notices and filings rarely name the flaw that was used, so we cannot link them to this event yet. No evidence here does not mean no harm.
When each thing happened
- DISCLOSED
- EXPLOIT CODE PUBLIC
- FIRST ATTACK REPORT
- CISA KEV LISTING
- US FEDERAL DEADLINE
THE FIX
CISA's instruction: apply the vendor's fix, or stop using the product if no fix exists. The deadline CISA set for US federal agencies, Aug 28, 2026, has passed. It is a US government deadline; use it as a guide.
Questions to ask this week
- Do we run Gitea? If yes, is it patched or cut off from the internet?
- Who owns fixing it, and by what date?
- Have we checked for signs of attack since the first report, not just since the patch?
How it unfolded
- AUG 3, 2026Vulnerability CVE-2026-60004 confirmed by a researcher (CIRCL sighting)
- Attack activity. AUG 24, 2026Gitea Code Injection Vulnerability
- Attack activity. AUG 26, 2026CISA Vulnrichment marks CVE-2026-60004 as actively exploited
- OCT 20, 2026Gitea security advisory (AV26-845) - Update 1
SOURCES
- [1] nuclei-templates: Nuclei scan template: Gitea <= 1.27.0 - Pre-Auth Remote Code Execution, OCT 24
- [2] Canadian Centre for Cyber Security: Gitea security advisory (AV26-845) - Update 1, OCT 20
- [3] CVE List V5 and CISA Vulnrichment: CISA Vulnrichment marks CVE-2026-60004 as actively exploited, AUG 26
- [4] CISA Known Exploited Vulnerabilities: Gitea Code Injection Vulnerability, AUG 24
- [5] CIRCL Vulnerability-Lookup sightings: Vulnerability CVE-2026-60004 confirmed by a researcher (CIRCL sighting), AUG 3