Zero-day vulnerability in gogs

Path traversal
CVE-2025-8110

Not patched

Vulnerability details

Advisory: SB2025121160 - Remote code execution via path traversal in Gogs

Vulnerable component: gogs

CVE-ID: CVE-2025-8110

CVSSv3 score: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:H/RL:U/RC:C

CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Description:

The vulnerability allows a remote user to perform directory traversal attacks.

The vulnerability exists due to improper symbolic link handling in the PutContents API caused by insufficient patch for #VU119868 (CVE-2024-55947). A remote user can write file to arbitrary location on the system and execute arbitrary code. 

Note, the vulnerability is being actively exploited in the wild.

External links:

https://www.wiz.io/blog/wiz-research-gogs-cve-2025-8110-rce-exploit