CVE-2025-8110 Gogs Path Traversal
Attackers can overwrite arbitrary files via symbolic links in the PutContents API, leading to local code execution on Gogs servers.
- Exploited in the wild
- Since 12 Jan 2026
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-8110?
CVE-2025-8110 is a high-severity path traversal vulnerability in Gogs, published on 10 Dec 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Improper Symbolic link handling in the PutContents API in Gogs allows Local Execution of Code.
Weakness: CWE-22
Which versions are affected by CVE-2025-8110?
3 open source packages ship an affected version, including gogs.io/gogs. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gogs.io/gogs Go | All versions | None |
gogs.io/gogs Go | All versions to 0.13.3 | None |
gogs.io/gogs Go | All versions to 0.13.3 | None |
Products include Gogs Gogs.
How do I fix CVE-2025-8110?
Upgrade to a fixed version. US federal agencies must fix it by 2 Feb 2026.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-8110 being exploited?
Yes. Attackers have exploited CVE-2025-8110 in the wild since at least 12 Jan 2026.
Public exploit code: 1 Nuclei template and 23 proofs of concept on GitHub.
Other vulnerabilities in Gogs
- CVE-2024-56731 Gogs deletion of internal files allows remote command execution
- CVE-2022-1884 Remote Command Execution in gogs/gogs
- CVE-2022-1986 OS Command Injection in gogs/gogs
- CVE-2022-1992 Path Traversal in gogs/gogs
- CVE-2024-39930 Duplicate Advisory: github.com/gogs/gogs affected by CVE-2024-39930
Sources
Also known as GHSA-mq8m-42gh-wq7r, GO-2025-4225.