Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

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 score9.8 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance24.0% (top 2%)
CISA exploited listYes, fix due 2026-08-28
WeaknessCWE-94
Published2026-08-26
Last modified2026-08-27
Publisher (CNA): MITRE · Vendor: gitea

Am I affected?

Timeline

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.

Advisories and coverage

Official advisories

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.

References

← Back to latest CVEs