# CVE-2026-60004: Gitea Code Injection Vulnerability

- Priority: **Act now**
- Reason: Listed as exploited by CISA (25-08-2026)
- Next step: Check applicability: affected before 1.27.1 (CNA); fix release not confirmed
- Status: published
- Published: 2026-08-26 · Modified: 2026-09-08
- Aliases: CGA-22cf-47g3-fpvg, CGA-f9cp-p2mf-hmjw, GHSA-rcr6-4jqh-j84m, BIT-gitea-2026-60004, GO-2026-6433, CGA-4jvh-446h-fg82, CGA-52cp-rqwc-qg78, ALPINE-CVE-2026-60004
- Record: https://cvemate.com/vulnerability/CVE-2026-60004 · JSON: https://cvemate.com/vulnerability/CVE-2026-60004/json

## Description

```text
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
```

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 99.047%, percentile 99.931%, as of 2026-12-04
- Known exploited (KEV): CISA listed 2026-08-25, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (github)

## Affected

- alpine forgejo (Alpine Linux): \< 15.0.6-r0
- alpine gitea (Alpine Linux): ≥ 1.17.0, \< 1.27.1-r0
- chainguard gitea (Chainguard): \< 1.27.1-r0
- chainguard gitea-fips (Chainguard): \< 1.27.1-r0
- wolfi gitea (Wolfi): \< 1.27.1-r0
- gitea gitea: ≥ 1.17, \< 1.27.1 \| ≥ 1.17.0, \< 1.27.1
- code.gitea.io gitea (Go): ≥ 1.17.0 (No fix recorded)
- Go gitea.dev (Go): ≥ 1.17.0, \< 1.27.1 \| \< 1.27.1

## References

- <https://blog.gitea.com/release-of-1.27.1/>
- <https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m>
- <https://www.runzero.com/blog/gitea/>
- <https://github.com/0xBlackash/CVE-2026-60004>
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/60xxx/CVE-2026-60004.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-60004>
- <https://github.com/go-gitea/gitea/pull/38637>
- <https://github.com/go-gitea/gitea/pull/38638>
- <https://github.com/go-gitea/gitea/commit/470d34b1de87d901bd9135564d5ee18c0d339e82>
- <https://github.com/go-gitea/gitea/commit/d7bc52beeadff4be5f5690de4d5de42abd10affe>
- <https://blog.gitea.com/release-of-1.27.1>
- <https://github.com/go-gitea/gitea>
- <https://github.com/go-gitea/gitea/releases/tag/v1.27.1>
- <https://www.runzero.com/blog/gitea>
- <https://security.alpinelinux.org/vuln/CVE-2026-60004>

---

Data as of 2026-12-05T14:01:12.091Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
