critical Known exploitedREV. 01

CVE-2026-60004Gitea — Code Injection Through Diffpatch Git Hook Installation

Gitea before 1.27.1 lets a user with write access to a repository send a crafted patch to the diffpatch endpoint that plants an executable Git hook. The hook then runs shell commands on the server as the Gitea service account, giving full remote code execution.

YOUR NEXT MOVE

Upgrade Gitea to 1.27.1 or later now; until then restrict who can push to repositories and audit repositories on the server for unexpected Git hooks.

Read the risk

THE VITAL STATS
CVSS score
9.8/ 10
CVSS v3.1
EPSS probability
87%
Likelihood of exploitation
Attack complexity
Low
Conditions needed to exploit
Known exploited
Yes — CISA KEV
CVE published
2026-08-26
Added to KEV
2026-08-25
Exploit published
Yes
Confidence
high
Kill chain
initial access
MITRE ATT&CK
T1190, T1059
Severity
critical

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Attacker needsNetwork access to the Gitea diffpatch endpoint and write access to a repository on the instance

Fixed inGitea 1.27.1

Behind the card

5 REFERENCES
Field-level provenanceTRACE THE SOURCES +

Which source supports each field, when it was retrieved, and who extracted it.

FieldsSourceRetrievedExtractorConfidence
cvss, exploitation.attack_complexity, exploitation.exploit_available, references, published_atnvd.nist.gov2026-09-21scrty-crds-pipeline/0.1high
exploitation.known_exploited, exploitation.kev_addedcisa.gov2026-09-21scrty-crds-pipeline/0.1high
epssapi.first.org2026-09-21scrty-crds-pipeline/0.1high
title, summary, severity, remediation, mitre_attack, kill_chain, recommended_action, confidence, tags, exploitation.prerequisitesnvd.nist.gov2026-09-21claude-codehigh

Printing history

THE RECORD
  1. r1Initial base card

First printing. This card has not been reprinted since publication.

crds:cve-2026-60004 · CRDS 0.1 · Issued 2026-09-21