← back
CVE-2025-64111

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

CVSS 9.3 CRITICALEPSS 1.2%CWE-78
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

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →