CVE-2026-60004: Gitea Code Injection Vulnerability
97
Patch now
CRITICAL 9.8EXPLOITEDREMOTEUPGRADE
CVE-2026-60004 is a critical-severity flaw (CVSS 9.8) affecting gitea, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
Why this priority
- Critical severity
- EPSS top 2%: very likely to be exploited
- Exploited in the wild (CISA KEV)
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 24.0% (top 2%) |
| CISA exploited list | Yes, fix due 2026-08-28 |
| Weakness | CWE-94 |
| Published | 2026-08-26 |
| Last modified | 2026-08-27 |
Am I affected?
Timeline
- Exploited Added to the CISA Known Exploited Vulnerabilities list
- Published CVE record published
- Updated Record last modified
- Deadline CISA due date for US federal agencies to patch
gitea gitea UPGRADE
Affected: >= 1.17.0 and < 1.27.1
Fixed in: 1.27.1
Safe to downgrade to: a release before 1.17.0
1. Check installed version
apt-cache policy gitea || rpm -q gitea || gitea --version
2. UPGRADE to 1.27.1 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade gitea
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade gitea
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 1.17.0 (Debian / Ubuntu)
apt-cache madison gitea
sudo apt install gitea=<VERSION_BEFORE_1.17.0>
sudo apt-mark hold gitea
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list gitea
sudo dnf downgrade gitea-<VERSION_BEFORE_1.17.0>
sudo dnf versionlock add gitea
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Exact fixes by distribution
Go · gitea.dev · FIXED · 1.27.1 · vulnerable: >= 1.17.0, < 1.27.1 · source
go get gitea.dev@v1.27.1
go list -m gitea.dev
Fedora 46 · uv · FIXED · 0.13.5-1.fc46 · FEDORA-2026-61ea5a28c6 · source
sudo dnf upgrade --advisory=FEDORA-2026-61ea5a28c6
Alpine 3.24 · forgejo · FIXED · forgejo-15.0.6-r0
apk add --upgrade forgejo
apk info -v forgejo
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: imbas007/CVE-2026-60004-POC (17 stars)
- GitHub PoC: 0xBlackash/CVE-2026-60004 (6 stars)
- GitHub PoC: HORKimhab/CVE-2026-60004 (5 stars)
- Nuclei scan template: Gitea <= 1.27.0 - Pre-Auth Remote Code Execution
Advisories and coverage
Official advisories
- Canadian Cyber Centre: Gitea security advisory (AV26-845) - Update 1 2026-10-20
Verify at the official source NVD · CVE Program · CISA KEV catalog · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.