CVE-2025-8110: Gogs PutContents API symlink file overwrite leading to RCE
Exploited in the wild High 8.7 EPSS 85.2%
The Gogs file update (PutContents) API follows symbolic links committed to a repository, so any user who can create a repository can overwrite files outside it and gain code execution; it bypasses the earlier fix for CVE-2024-55947. Open registration is on by default, so internet-facing Gogs servers are exposed to anyone; Wiz found over 700 compromised instances. Fixed in Gogs 0.13.4 (23 January 2026); CISA added it to KEV on 12 January 2026.
- CVE-2025-8110CVE identifier
- 8.7CVSS 4.0 base score (high)
- 2026-01-12added to CISA's exploited list (US federal deadline 2026-02-02)
- 85.2%EPSS: chance of exploitation in the next 30 days (higher than 100% of CVEs)
- 2025-12-10published
What do these terms mean? CVE · CVSS score · exploited (KEV) · EPSS · backported fix · all terms
What to do now
- Check whether you run the affected software and which version (commands below).
- Install the fixed version for your system: see “Patch it” below.
- Restart the Gogs service.
- If you cannot patch today, apply the temporary mitigation below and patch as soon as possible.
- Because this flaw is being exploited, also check the server for signs of compromise.
Affected and fixed versions
Affected:
- Gogs 0.13.3 and earlier
Fixed in:
- Gogs 0.13.4
Am I affected?
gogs --version # or ./gogs --version in the install directory
Patch it
Use the commands for your system. Distribution packages often keep an older version number with the fix backported, so compare with the fixed package versions in the table below, not only with the upstream version.
Docker images
docker pull gogs/gogs
# recreate the container and confirm it reports 0.13.4 or laterBuilt from source
# download the 0.13.4+ release from https://github.com/gogs/gogs/releases, replace the binary, restart gogsGeneral update steps for every system are on the Linux and Unix & BSD pages; after updating, see which services to restart.
If you cannot patch yet
- Disable open registration until patched: set DISABLE_REGISTRATION = true in the [auth] section of custom/conf/app.ini and restart.
- Put self-hosted Git services behind a VPN or an IP allow-list (Wiz).
Look for signs of exploitation
- Repositories with random 8-character names, or unexpected use of the PutContents API (Wiz).
- Wiz IoCs: Supershell C2 119.45.176.196; payload servers 106.53.108.81 and 119.91.42.53.
CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
https://github.com/gogs/gogs/commit/553707f3fd5f68f47f531cfcff56aa3ec294c6f6 ; https://nvd.nist.gov/vuln/detail/CVE-2025-8110
Related vulnerabilities
Sources
- CVE record CVE-2025-8110
- NVD CVE-2025-8110
- CISA KEV entry CVE-2025-8110
- Wiz Research: Gogs CVE-2025-8110 RCE exploited
- Gogs v0.13.4 release
- Gogs fix commit 553707f
- CISA Known Exploited Vulnerabilities catalog
Page generated automatically from official sources on 2026-11-03 18:05 UTC and reviewed by an editor. Always confirm with your vendor's advisory.