CVE-2025-8110

Gogs RCE: When 'Fixed' Just Means 'Try Harder' (CVE-2025-8110)

Alon Barad
Alon Barad
Software Engineer

Jan 15, 2026·7 min read·4 visits

Executive Summary (TL;DR)

Gogs versions <= 0.13.3 contain a logic flaw in how they handle symbolic links during file updates. An authenticated attacker can push a symlink to a repository and then use the file update API to write data through that link, overwriting sensitive system files like `/etc/passwd`. This results in full Remote Code Execution. The vulnerability is actively exploited in the wild.

A critical remote code execution vulnerability in Gogs, a popular self-hosted Git service. An incomplete patch for a previous symlink vulnerability allowed attackers to bypass checks by nesting malicious paths, permitting arbitrary file overwrites on the host system via the repository API.

Fix Analysis (1)

Technical Appendix

CVSS Score
8.8/ 10
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Probability
0.95%
Top 24% most exploited
5,000
via Shodan

Affected Systems

Gogs self-hosted Git service (Linux)Gogs self-hosted Git service (Windows)Gogs self-hosted Git service (macOS)Gogs Docker images < 0.13.4

Affected Versions Detail

Product
Affected Versions
Fixed Version
Gogs
Gogs
<= 0.13.30.13.4
AttributeDetail
CWE IDCWE-22 (Improper Limitation of a Pathname to a Restricted Directory)
CVSS v3.18.8 (High)
Attack VectorNetwork (Authenticated)
EPSS Score0.95%
Exploit StatusActive Exploitation (CISA KEV)
Patch Commit553707f3fd5f68f47f531cfcff56aa3ec294c6f6
CWE-22
Path Traversal

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.

Vulnerability Timeline

Disclosed by Wiz Research
2025-12-10
Fix committed to Gogs repository
2026-01-08
Added to CISA KEV Catalog
2026-01-12

Subscribe to updates

Get the latest CVE analysis reports delivered to your inbox.