CVE-2025-8110
File overwrite in file update API in Gogs
Description
Improper Symbolic link handling in the PutContents API in Gogs allows Local Execution of Code.
In plain language
AI Act nowCVE-2025-8110 is a serious Gogs flaw that can let an attacker overwrite files (potentially leading to code execution); small businesses running Gogs should treat this as urgent and apply the fix or mitigation now.
CVE-2025-8110 is an arbitrary file overwrite in the Gogs PutContents API caused by improper symbolic-link handling, enabling an attacker with low authentication to overwrite files and potentially escalate to code execution or data corruption.
What to do now
- Check whether you use Gogs (gogs.io/gogs) and confirm it’s the version currently running in production.
- Upgrade Gogs to the fixed version(s) referenced by the vendor commits/PR: apply the changes from gogs/gogs commit 553707f3fd5f68f47f531cfcff56aa3ec294c6f6 or PR 8078.
- If you cannot upgrade immediately, block or restrict access to the Gogs “PutContents” file update functionality from untrusted networks (use an application firewall/WAF as recommended by the vendor) and limit who can reach the service.
- After upgrading/mitigation, verify the service still functions normally and review web/app logs for suspicious requests to file update endpoints.
CVSS Vector Breakdown
AV:NAttack VectorAC:LAttack ComplexityPR:LPrivileges RequiredUI:NUser InteractionS:UScopeC:HConfidentialityI:HIntegrityA:HAvailabilityWeaknesses
Affected Products
Exploitability
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.
Exploit details including PoC links, Metasploit modules, and scanner templates are available after registration.
View exploit detailsAttack Graph
Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/⌘ + scroll to zoom, or go fullscreen.
MITRE ATT&CK
2 techniquesReferences
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2025-8110 and every CVE in our database. Create a free account — no credit card required.
Create Free Account