Gitea < 1.27.1 Remote Code Execution

critical Web App Scanning Plugin ID 115456

Synopsis

Gitea < 1.27.1 Remote Code Execution

Description

According to its banner, the version of Gitea running on the remote host is prior to 1.27.1. It is, therefore, affected by a Remote Code Execution through diffpatch Git Hook Installation. An attacker with ordinary write access to a repository can execute arbitrary shell commands as the Gitea OS user. With default open registration, an unauthenticated visitor can obtain the required write access by registering an account and creating a repository.

Note that the scanner has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade to Gitea version 1.27.1 or later.

See Also

https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m

Plugin Details

Severity: Critical

ID: 115456

Type: Version Based

Published: 9/1/2026

Updated: 9/1/2026

Scan Template: basic, full, pci, scan

Risk Information

VPR

Risk Factor: Critical

Score: 9.2

Percentile: 99.76

CVSS v2

Risk Factor: Critical

Base Score: 10

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2026-60004

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS Score Source: CVE-2026-60004

Vulnerability Information

CPE: cpe:2.3:a:go-gitea:gitea:*:*:*:*:*:*:*:*

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 7/24/2026

CISA Known Exploited Vulnerability Due Dates: 8/28/2026

Reference Information

CVE: CVE-2026-60004