← All CVEs

CVE-2026-60004

CRITICAL 9.8 KNOWN EXPLOITED PoC CATALOGUED DETECTION TEMPLATE ALL-YEARS

Published 2026-08-26 · Last modified 2026-09-08 · mitre · NVD: Analyzed

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

ACTIVELY EXPLOITED

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

● In CISA KEV (2026-08-25)● Catalogued PoC◆ SSVC: exploitation active, automatable yes

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.

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:

Affected

Vendors Gitea

Products Gitea

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
    Additional 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"
      }
    }
    GitHub Advisory Database · GHSA-rcr6-4jqh-j84m · Updated 2026-09-10T15:25:46.385543493Z
  • code.gitea.io/gitea Go

    pkg:golang/code.gitea.io/gitea

    SEMVER range
    • Introduced version (included): 1.17.0
    Additional upstream package constraints
    {
      "ecosystem": {},
      "database": {
        "source": "https://vuln.go.dev/ID/GO-2026-6433.json"
      }
    }
    Go Vulnerability Database · GO-2026-6433 · Updated 2026-09-10T15:25:46.385543493Z
  • gitea.dev Go

    pkg:golang/gitea.dev

    SEMVER range
    • All earlier versions (introduced 0)
    • Fixed boundary (excluded): 1.27.1
    Additional upstream package constraints
    {
      "ecosystem": {},
      "database": {
        "source": "https://vuln.go.dev/ID/GO-2026-6433.json"
      }
    }
    Go Vulnerability Database · GO-2026-6433 · Updated 2026-09-10T15:25:46.385543493Z

Unverified PoC candidates

Catalogue matches for further research. These repositories have not been validated as working exploits.

11 candidates

Additional exploitation reports

Source-specific reports, separate from CISA KEV. Repeated observations from one source are not independent confirmations.

Known Affected Software Configurations

VendorProductVersion range
GiteaGitea≥ 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)

Advisories

Technical & other

Sources: NVD · CVE.org · All sources and attribution · EPSS