CVE-2025-8110: high-severity vulnerability in Gogs
File overwrite in file update API in Gogs
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
Patch now. It under exploitation confirmed by CISA and has a working public exploit.
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
A flaw in Gogs' file update API fails to properly handle symbolic links, allowing an attacker to overwrite arbitrary files on the system. This can lead to executing malicious code by replacing critical files.
CWE-22 path traversal vulnerability in the PutContents API permits improper symbolic link resolution, enabling local file overwrite. An authenticated or local attacker can exploit this to replace sensitive files and achieve arbitrary code execution without proper path validation.
The full analysis of this CVE is available in Portuguese →
In the same product, most dangerous first.