← back
CVE-2025-64111criticalCWE-78

Gogs's update .git/config file allows remote command execution

28Vexday Risk Score

No sign of exploitation. No public exploitation artifact known so far.

ssvc Trackcvss 9.3epss 1.2%
exploitation probability
1.2%top 34% of all CVEs
observed exploitation
nono source reports it
In short

Gogs allows attackers to modify Git configuration files through a web request, enabling them to execute arbitrary commands on the server. This is a critical vulnerability affecting older versions of the self-hosted Git service.

Technical detail

The vulnerability exploits insufficient input validation in file update operations, allowing modification of .git/config files through the web interface. An attacker can inject malicious Git commands that execute with server privileges, leading to remote code execution. Affected versions prior to 0.13.4 and 0.14.0+dev are vulnerable.

Summary generated and translated by AI from the official description.
Gogs is an open source self-hosted Git service. In version 0.13.3 and prior, due to the insufficient patch for CVE-2024-56731, it's still possible to update files in the .git directory and achieve remote command execution. This issue has been patched in versions 0.13.4 and 0.14.0+dev.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Affected products
gogs · gogs