Executive brief
Gogs is a self-hosted Git service used by developers to manage and store source code. A critical vulnerability in its file handling system allows an attacker with basic user permissions to bypass security restrictions and execute malicious code on the server. This could lead to a complete takeover of the service, theft of proprietary source code, or disruption of development operations. This vulnerability is known to be actively exploited in the wild.
Technical details
A path traversal vulnerability (CWE-22) exists in Gogs versions up to 0.13.3. The flaw is located in the PutContents API, where improper handling of symbolic links allows an attacker to write files outside of the intended directory. By exploiting this, a remote attacker with low-level authenticated access can achieve arbitrary code execution on the host system. The vulnerability has been observed in active exploitation, and a patch has been released in the Gogs repository. Security researchers have demonstrated that this can lead to full Remote Code Execution (RCE).
Affected products
- Gogs Gogs up to and including 0.13.3
Timeline
- 2025-12-10: disclosed: Vulnerability reported by Wiz research
- 2025-12-11: patched: Fix committed to Gogs repository
- 2026-01-12: kev added: CISA added to Known Exploited Vulnerabilities catalog