Vulnerabilities / CVE-2026-60004

critical

CVE-2026-60004

Gitea: Remote Code Execution via diffpatch Git Hook Installation

Published Modified CWE 94
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Bitnami9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by GHSA, Bitnami.

Description

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

Affected packages and fixed versions

SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasegitea1.27.1
go::GitHub Security Advisory Gogitea.dev1.27.1
alpine 3.24forgejo15.0.6-r0
alpine edgegitea1.27.1-r0
chainguardgitea, gitea-fips1.27.1-r0
minimosgitea, gitea-fips1.27.1-r0
rapidfort alpine 3.20forgejo, gitea15.0.6-r0 and 1 more
rapidfort alpine 3.21forgejo, gitea15.0.6-r0 and 1 more
rapidfort alpine 3.22forgejo, gitea15.0.6-r0 and 1 more
rapidfort alpine 3.23forgejo, gitea15.0.6-r0 and 1 more
rapidfort alpine 3.24forgejo, gitea15.0.6-r0 and 1 more
wolfigitea1.27.1-r0
Show all 19 entries from 12 sources
SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasegitea1.27.1
go::GitHub Security Advisory Gogitea.dev1.27.1
alpine 3.24forgejo15.0.6-r0
alpine edgegitea1.27.1-r0
chainguardgitea1.27.1-r0
chainguardgitea-fips1.27.1-r0
minimosgitea1.27.1-r0
minimosgitea-fips1.27.1-r0
rapidfort alpine 3.20forgejo15.0.6-r0
rapidfort alpine 3.20gitea1.27.1-r0
rapidfort alpine 3.21forgejo15.0.6-r0
rapidfort alpine 3.21gitea1.27.1-r0
rapidfort alpine 3.22forgejo15.0.6-r0
rapidfort alpine 3.22gitea1.27.1-r0
rapidfort alpine 3.23forgejo15.0.6-r0
rapidfort alpine 3.23gitea1.27.1-r0
rapidfort alpine 3.24forgejo15.0.6-r0
rapidfort alpine 3.24gitea1.27.1-r0
wolfigitea1.27.1-r0

References

All 14 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.