The Cybersecurity and Infrastructure Security Agency (CISA) of the United States has now added the 'CVE-2025-8110' Path Traversal vulnerability in Gogs (a self-hosted git repository management software) to its Known Exploited Vulnerabilities (KEV) collection because there have been confirmed instances of this vulnerability being exploited.
The CVE-2025-8110 Path Traversal Vulnerability - with a Common Vulnerability Score (CVSS) of 8.7 - is designed to enable user-supplied inputs to flow through to Gogs' repository file (Git repo) editor, allowing for remote code execution (RCE).
CISA states in its advisory, "The PutContents API has a path traversal vulnerability relating to improper symbolic link resolution that may permit code execution".
Bypassing Prior Protections
Last month, Wiz publicly released information regarding their discovery of this vulnerability as an active zero-day exploit. This exploit takes advantage of the ability to create symbolic links in Gogs—bypassing the mechanisms previously implemented to protect users from the CVE-2028-55947 vulnerability.
The step sequence from exploitation through the successful execution of code on the victim host is as follows:
1. Create a malicious Git repository.
2. Add a symbolic link to a protected file contained outside of the newly created Git Repo.
3. Use the PutContents API method to write or overwrite the symlink with the data of your choosing.
After writing the payload data using the API, the operating system performs a look up of the symbolic link, and this lookup is not limited to accessing files inside the Git repository (which would normally contain only the registered Git objects).
From File Write to Code Execution
Attackers can take advantage of the ability to write files with the File Write feature in Git and execute their own commands on a Gogs server after exploiting the git-ssh Command to execute command line commands as the user running Gogs.
Attackers have exploited this vulnerability on large scale with approximately 700 Gogs servers reported as compromised by Wiz. Data from Censys indicates there are around 1,600 accessible Gogs servers on the Internet with the following Concentrations located in:
1. China (991)
2. United States (146)
3. Germany (98)
4. Hong Kong (56)
5. Russia (49)
No Patch Available At The Time Of Writing
At the time of this writing there has yet to be any official patch released addressing the CVE-2025-8110 vulnerability. There have been many GitHub pull requests showing that the code changes needed to fix this vulnerability have already been made. According to a Gogs maintainer, once the new images are built to the Main branch of the Gogs Project both gogs/gogs:latest and gogs/gogs:next-latest will have the fix included in the new image created from the code changes.
Recommended Mitigation Measures
Until Gogs implements a patch, individuals should:
1. Disable open-user registration
2. Limit Gogs Server Access with a VPN and IP Allow List
3. Remove access to Gogs' public internet as much as possible.
4. Inspect Repository & Configuration Files for unauthorized modifications.
CISA requires all Federal Civilian Executive Branch Agencies to implement these mitigative methods by February 2, 2026.
Source: The Hacker News