CVE-2026-60004
CRITICAL 9.8 KNOWN EXPLOITED PoC CATALOGUED DETECTION TEMPLATE ALL-YEARSGitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
Confirmed exploited in the wild — in CISA KEV since 2026-08-25. Patch or mitigate now.
Exploitation likelihood
24.0%chance of exploitation in 30 days · 98th percentile
Impact if exploited
9.8CVSS 3.1 · CRITICAL · CNA
- ConfidentialityHigh
- IntegrityHigh
- AvailabilityHigh
What an attacker needs
- ✓Access: Reachable over the network — no local access needed
- ✓Privileges: No account or privileges required
- ✓User interaction: No user interaction needed
- ✓Complexity: No special conditions — reliably repeatable
✓ lowers the bar for an attacker · ⚠ raises it
Proof of concept
Public PoC or exploit resources are catalogued below.
- VulnCheck KEV · XDB 3916f6f37736 · Linked repository
- VulnCheck KEV · XDB 96502114a63c · Linked repository
- VulnCheck KEV · XDB 4baed9a41e65 · Linked repository
- VulnCheck KEV · XDB dc0fd3bb2456 · Linked repository
- VulnCheck KEV · XDB f8c979c128a9 · Linked repository
- VulnCheck KEV · XDB d8c7c67f90cb · Linked repository
- VulnCheck KEV · XDB d059603984a6 · Linked repository
- VulnCheck KEV · XDB 7c9ef552178c · Linked repository
- VulnCheck KEV · XDB 047b3fac327f · Linked repository
- VulnCheck KEV · XDB 47a580c18eea · Linked repository
- VulnCheck KEV · XDB e8574e829446 · Linked repository
Listed by the named source; Vulnpedia has not tested these resources.
PoC data: JSON
Detection templates
Detection checks are listed separately from PoCs.
Resource commands
nuclei -id CVE-2026-60004 -u https://TARGETDetection template — review its checks and affected versions before use.curl -s https://vulnpedia.com/cve/CVE-2026-60004/poc.jsonMachine-readable PoC index for this CVE (for automation).Search for new PoCs
Search GitHub now — results may be empty or unverified.
Tracked sources are checked weekly for the full archive, including PoCs published after the original disclosure. A later release appears after a tracked source lists it and a refresh succeeds.
Data snapshot:
Weakness (CWE)
- CWE-94: Improper Control of Generation of Code ('Code Injection')
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References and research data (JSON)
Packages and version ranges
Each advisory describes its own package and affected ranges. A boundary applies to that range; it is not a universal upgrade recommendation.
gitea.dev Go
pkg:golang/gitea.dev
SEMVER range- Introduced version (included): 1.17.0
- Fixed boundary (excluded): 1.27.1
GitHub Advisory Database · GHSA-rcr6-4jqh-j84m · Updated 2026-09-10T15:25:46.385543493ZAdditional upstream package constraints
{ "database": { "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-rcr6-4jqh-j84m/GHSA-rcr6-4jqh-j84m.json" } }code.gitea.io/gitea Go
pkg:golang/code.gitea.io/gitea
SEMVER range- Introduced version (included): 1.17.0
Go Vulnerability Database · GO-2026-6433 · Updated 2026-09-10T15:25:46.385543493ZAdditional upstream package constraints
{ "ecosystem": {}, "database": { "source": "https://vuln.go.dev/ID/GO-2026-6433.json" } }gitea.dev Go
pkg:golang/gitea.dev
SEMVER range- All earlier versions (introduced 0)
- Fixed boundary (excluded): 1.27.1
Go Vulnerability Database · GO-2026-6433 · Updated 2026-09-10T15:25:46.385543493ZAdditional upstream package constraints
{ "ecosystem": {}, "database": { "source": "https://vuln.go.dev/ID/GO-2026-6433.json" } }
Unverified PoC candidates
Catalogue matches for further research. These repositories have not been validated as working exploits.
11 candidates
- https://github.com/HORKimhab/CVE-2026-60004
CVE-2026-60004
PoC-in-GitHub · CVE-2026-60004
PoC-in-GitHub · CVE-2026-60004 · Updated 2026-09-25T19:24:00Z - https://github.com/EQSTLab/CVE-2026-60004
Gitea diffpatch RCE
PoC-in-GitHub · CVE-2026-60004
PoC-in-GitHub · CVE-2026-60004 · Updated 2026-08-26T12:17:30Z - https://github.com/0xBlackash/CVE-2026-60004
CVE-2026-60004
PoC-in-GitHub · CVE-2026-60004
PoC-in-GitHub · CVE-2026-60004 · Updated 2026-10-17T14:14:52Z - https://github.com/imbas007/CVE-2026-60004-POC
CVE-2026-60004 Pre-Auth RCE Exploit — Gitea <= 1.27.0 diffpatch git hook injection (CVSS 9.8)
PoC-in-GitHub · CVE-2026-60004
PoC-in-GitHub · CVE-2026-60004 · Updated 2026-10-13T19:11:11Z - https://github.com/shinthink/CVE-2026-60004
CVE-2026-60004 — Gitea/Forgejo Diffpatch Git Hook RCE. Bare clone → post-index-change hook injection. CVSS 9.8 | CWE-94 | Gitea < 1.27.1
PoC-in-GitHub · CVE-2026-60004
PoC-in-GitHub · CVE-2026-60004 · Updated 2026-08-03T12:49:46Z - https://github.com/HackSpeak/CVE-2026-60004
Gitea diffpatch RCE (CVE-2026-60004) PoC - repo-write to RCE as Gitea service account
PoC-in-GitHub · CVE-2026-60004
PoC-in-GitHub · CVE-2026-60004 · Updated 2026-09-14T04:56:11Z - https://github.com/Sachinart/CVE-2026-60004-gitea-0day
CVE-2026-60004 — Gitea <= 1.27.0 Pre-Auth RCE
PoC-in-GitHub · CVE-2026-60004
PoC-in-GitHub · CVE-2026-60004 · Updated 2026-08-04T22:54:53Z - https://github.com/gagaltotal/CVE-2026-60004-poc-gitea
CVE-2026-60004 — Gitea Pre-Auth RCE via diffpatch hook injection
PoC-in-GitHub · CVE-2026-60004
PoC-in-GitHub · CVE-2026-60004 · Updated 2026-08-11T14:33:28Z - https://github.com/yym8538/CVE-2026-60004PoC-in-GitHub · CVE-2026-60004
PoC-in-GitHub · CVE-2026-60004 · Updated 2026-09-25T11:50:15Z - https://github.com/fevar54/cve-2026-60004
CVE-2026-60004 es una vulnerabilidad crítica (CVSS 9.8) en Gitea que permite ejecución remota de código sin autenticación mediante el endpoint `/api/v1/repos/{owner}/{repo}/diffpatch`.
PoC-in-GitHub · CVE-2026-60004
PoC-in-GitHub · CVE-2026-60004 · Updated 2026-08-25T22:18:31Z - https://github.com/erberkan/CVE-2026-60004-PoC
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
PoC-in-GitHub · CVE-2026-60004
PoC-in-GitHub · CVE-2026-60004 · Updated 2026-09-14T15:57:00Z
Additional exploitation reports
Source-specific reports, separate from CISA KEV. Repeated observations from one source are not independent confirmations.
- VulnCheck KEV · 2026-08-19T00:00:00Z
Source guidance: Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
Source ransomware assessment: Unknown
VulnCheck KEV · CVE-2026-60004 · Updated 2026-08-19T00:00:00Z - VulnCheck KEV · 2026-08-19T00:00:00ZVulnCheck KEV · CVE-2026-60004
- VulnCheck KEV · 2026-08-25T00:00:00ZVulnCheck KEV · CVE-2026-60004
VulnCheck KEV · CVE-2026-60004 - VulnCheck KEV · 2026-08-26T00:00:00ZVulnCheck KEV · CVE-2026-60004
- VulnCheck KEV · 2026-09-03T00:00:00ZVulnCheck KEV · CVE-2026-60004
- VulnCheck KEV · 2026-09-08T00:00:00ZVulnCheck KEV · CVE-2026-60004
- VulnCheck KEV · 2026-09-13T00:00:00ZVulnCheck KEV · CVE-2026-60004
- VulnCheck KEV · 2026-09-21T00:00:00ZVulnCheck KEV · CVE-2026-60004
- VulnCheck KEV · 2026-10-13T00:00:00ZVulnCheck KEV · CVE-2026-60004
Known Affected Software Configurations
| Vendor | Product | Version range |
|---|---|---|
| Gitea | Gitea | ≥ 1.17.0 and < 1.27.1 |
All CVSS metrics
- CRITICAL 9.8 v3.1 · CNA Primary
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CRITICAL 9.8 v3.1 · NVD Secondary
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
Exploit-tagged references (not proof of a PoC)
- https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m CVE record · mitre · Updated 2026-08-26T22:56:00.000Z
NVD · CVE-2026-60004 · Updated 2026-08-27T11:41:19.230
GitHub Advisory Database · GHSA-rcr6-4jqh-j84m
Go Vulnerability Database · GO-2026-6433
GitHub Advisory Database · GHSA-rcr6-4jqh-j84m · Updated 2026-09-10T15:25:46.385543493Z - https://github.com/0xBlackash/CVE-2026-60004 CVE record · mitre · Updated 2026-08-26T22:56:00.000Z
NVD · CVE-2026-60004 · Updated 2026-08-27T11:41:19.230
GitHub Advisory Database · GHSA-rcr6-4jqh-j84m
Go Vulnerability Database · GO-2026-6433
GitHub Advisory Database · GHSA-rcr6-4jqh-j84m · Updated 2026-09-10T15:25:46.385543493Z
VulnCheck KEV · 3916f6f37736 · Updated 2026-08-19T00:00:00Z
Advisories
- https://www.runzero.com/blog/gitea/ CVE record · mitre · Updated 2026-08-26T22:56:00.000Z
NVD · CVE-2026-60004 · Updated 2026-08-27T11:41:19.230 - https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004 CVE record · CISA-ADP · Updated 2026-09-08T18:03:21.873Z
NVD · CVE-2026-60004 · Updated 2026-08-27T11:41:19.230
GitHub Advisory Database · GHSA-rcr6-4jqh-j84m
Go Vulnerability Database · GO-2026-6433
GitHub Advisory Database · GHSA-rcr6-4jqh-j84m · Updated 2026-09-10T15:25:46.385543493Z - https://osv.dev/vulnerability/GHSA-rcr6-4jqh-j84m GitHub Advisory Database · GHSA-rcr6-4jqh-j84m
GitHub Advisory Database · GHSA-rcr6-4jqh-j84m · Updated 2026-09-10T15:25:46.385543493Z - https://nvd.nist.gov/vuln/detail/CVE-2026-60004 GitHub Advisory Database · GHSA-rcr6-4jqh-j84m
Go Vulnerability Database · GO-2026-6433
GitHub Advisory Database · GHSA-rcr6-4jqh-j84m · Updated 2026-09-10T15:25:46.385543493Z - https://osv.dev/vulnerability/GO-2026-6433 Go Vulnerability Database · GO-2026-6433
Go Vulnerability Database · GO-2026-6433 · Updated 2026-09-10T15:25:46.385543493Z - https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-66708 EUVD · EUVD-2026-66708
- https://vulncheck.com/kev VulnCheck KEV · CVE-2026-60004 · Updated 2026-08-19T00:00:00Z
Technical & other
- https://blog.gitea.com/release-of-1.27.1/ CVE record · mitre · Updated 2026-08-26T22:56:00.000Z
NVD · CVE-2026-60004 · Updated 2026-08-27T11:41:19.230 - https://github.com/go-gitea/gitea/pull/38637 GitHub Advisory Database · GHSA-rcr6-4jqh-j84m
Go Vulnerability Database · GO-2026-6433
GitHub Advisory Database · GHSA-rcr6-4jqh-j84m · Updated 2026-09-10T15:25:46.385543493Z - https://github.com/go-gitea/gitea/pull/38638 GitHub Advisory Database · GHSA-rcr6-4jqh-j84m
Go Vulnerability Database · GO-2026-6433
GitHub Advisory Database · GHSA-rcr6-4jqh-j84m · Updated 2026-09-10T15:25:46.385543493Z - https://github.com/go-gitea/gitea/commit/470d34b1de87d901bd9135564d5ee18c0d339e82 GitHub Advisory Database · GHSA-rcr6-4jqh-j84m
Go Vulnerability Database · GO-2026-6433
GitHub Advisory Database · GHSA-rcr6-4jqh-j84m · Updated 2026-09-10T15:25:46.385543493Z - https://github.com/go-gitea/gitea/commit/d7bc52beeadff4be5f5690de4d5de42abd10affe GitHub Advisory Database · GHSA-rcr6-4jqh-j84m
Go Vulnerability Database · GO-2026-6433
GitHub Advisory Database · GHSA-rcr6-4jqh-j84m · Updated 2026-09-10T15:25:46.385543493Z - https://blog.gitea.com/release-of-1.27.1 GitHub Advisory Database · GHSA-rcr6-4jqh-j84m
Go Vulnerability Database · GO-2026-6433
GitHub Advisory Database · GHSA-rcr6-4jqh-j84m · Updated 2026-09-10T15:25:46.385543493Z - https://github.com/go-gitea/gitea GitHub Advisory Database · GHSA-rcr6-4jqh-j84m
GitHub Advisory Database · GHSA-rcr6-4jqh-j84m · Updated 2026-09-10T15:25:46.385543493Z - https://github.com/go-gitea/gitea/releases/tag/v1.27.1 GitHub Advisory Database · GHSA-rcr6-4jqh-j84m
Go Vulnerability Database · GO-2026-6433
GitHub Advisory Database · GHSA-rcr6-4jqh-j84m · Updated 2026-09-10T15:25:46.385543493Z - https://www.runzero.com/blog/gitea GitHub Advisory Database · GHSA-rcr6-4jqh-j84m
Go Vulnerability Database · GO-2026-6433
GitHub Advisory Database · GHSA-rcr6-4jqh-j84m · Updated 2026-09-10T15:25:46.385543493Z - https://habr.com/ru/articles/1072030/ VulnCheck KEV · CVE-2026-60004 · Updated 2026-08-19T00:00:00Z
- https://previdian.com/CVE-2026-60004 VulnCheck KEV · CVE-2026-60004 · Updated 2026-08-19T00:00:00Z
- https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json VulnCheck KEV · CVE-2026-60004 · Updated 2026-08-19T00:00:00Z
- https://moje.cert.pl/komunikaty/2026/154/krytyczna-podatnosc-w-gitea/ VulnCheck KEV · CVE-2026-60004 · Updated 2026-08-19T00:00:00Z
- https://cert.europa.eu/publications/threat-intelligence/cb26-09/ VulnCheck KEV · CVE-2026-60004 · Updated 2026-08-19T00:00:00Z
- https://www.recordedfuture.com/blog/august-2026-cve-landscape VulnCheck KEV · CVE-2026-60004 · Updated 2026-08-19T00:00:00Z
- https://www.acronis.com/en/tru/posts/red-heron-exploits-gitea-n-day-flaw-in-multinational-campaign-exposing-new-linux-rootkit/ VulnCheck KEV · CVE-2026-60004 · Updated 2026-08-19T00:00:00Z
- https://www.greynoise.io/blog/open-season-on-kapibala-attacker-steals-government-records-wordpress-exploitation VulnCheck KEV · CVE-2026-60004 · Updated 2026-08-19T00:00:00Z
- https://www.recordedfuture.com/blog/september-2026-cve-landscape VulnCheck KEV · CVE-2026-60004 · Updated 2026-08-19T00:00:00Z
- https://vulncheck.com/xdb/3916f6f37736 VulnCheck KEV · 3916f6f37736 · Updated 2026-08-19T00:00:00Z
- https://vulncheck.com/xdb/96502114a63c VulnCheck KEV · 96502114a63c · Updated 2026-08-19T00:00:00Z
- https://github.com/shinthink/CVE-2026-60004 VulnCheck KEV · 96502114a63c · Updated 2026-08-19T00:00:00Z
- https://vulncheck.com/xdb/4baed9a41e65 VulnCheck KEV · 4baed9a41e65 · Updated 2026-08-19T00:00:00Z
- https://github.com/imbas007/CVE-2026-60004-POC VulnCheck KEV · 4baed9a41e65 · Updated 2026-08-19T00:00:00Z
- https://vulncheck.com/xdb/dc0fd3bb2456 VulnCheck KEV · dc0fd3bb2456 · Updated 2026-08-19T00:00:00Z
- https://github.com/Sachinart/CVE-2026-60004-gitea-0day VulnCheck KEV · dc0fd3bb2456 · Updated 2026-08-19T00:00:00Z
- https://vulncheck.com/xdb/f8c979c128a9 VulnCheck KEV · f8c979c128a9 · Updated 2026-08-19T00:00:00Z
- https://github.com/HackSpeak/CVE-2026-60004 VulnCheck KEV · f8c979c128a9 · Updated 2026-08-19T00:00:00Z
- https://vulncheck.com/xdb/d8c7c67f90cb VulnCheck KEV · d8c7c67f90cb · Updated 2026-08-19T00:00:00Z
- https://github.com/gagaltotal/CVE-2026-60004-poc-gitea VulnCheck KEV · d8c7c67f90cb · Updated 2026-08-19T00:00:00Z
- https://vulncheck.com/xdb/d059603984a6 VulnCheck KEV · d059603984a6 · Updated 2026-08-19T00:00:00Z
- https://github.com/fevar54/cve-2026-60004 VulnCheck KEV · d059603984a6 · Updated 2026-08-19T00:00:00Z
- https://vulncheck.com/xdb/7c9ef552178c VulnCheck KEV · 7c9ef552178c · Updated 2026-08-19T00:00:00Z
- https://github.com/InfoSec-DB/CVE-2026-60004-Gitea-Validator VulnCheck KEV · 7c9ef552178c · Updated 2026-08-19T00:00:00Z
- https://vulncheck.com/xdb/047b3fac327f VulnCheck KEV · 047b3fac327f · Updated 2026-08-19T00:00:00Z
- https://github.com/InfoSec-DB/CVE-2026-60004-Gitea-RCE-PoC VulnCheck KEV · 047b3fac327f · Updated 2026-08-19T00:00:00Z
- https://vulncheck.com/xdb/47a580c18eea VulnCheck KEV · 47a580c18eea · Updated 2026-08-19T00:00:00Z
- https://github.com/erberkan/CVE-2026-60004-PoC VulnCheck KEV · 47a580c18eea · Updated 2026-08-19T00:00:00Z
- https://vulncheck.com/xdb/e8574e829446 VulnCheck KEV · e8574e829446 · Updated 2026-08-19T00:00:00Z
- https://github.com/yym8538/CVE-2026-60004 VulnCheck KEV · e8574e829446 · Updated 2026-08-19T00:00:00Z
Sources: NVD · CVE.org · All sources and attribution · EPSS