Gogs Improper Symlink Handling in PutContents API Enables Local Code Exec
CVE-2025-8110 Published on December 10, 2025

File overwrite in file update API in Gogs
Improper Symbolic link handling in the PutContents API in Gogs allows Local Execution of Code.

NVD

Known Exploited Vulnerability

This Gogs Path Traversal Vulnerability is part of CISA's list of Known Exploited Vulnerabilities. Gogs contains a path traversal vulnerability affecting improper Symbolic link handling in the PutContents API that could allow for code execution.

The following remediation steps are recommended / required by February 2, 2026: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

Weakness Type

What is a Directory traversal Vulnerability?

The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the software does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

CVE-2025-8110 has been classified to as a Directory traversal vulnerability or weakness.


Products Associated with CVE-2025-8110

Want to know whenever a new CVE is published for Gogs? stack.watch will email you.

 

Affected Versions

Gogs:

Exploit Probability

EPSS
19.93%
Percentile
95.46%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.