Description
Gogs 0.11.66 allows remote code execution because it does not properly validate session IDs, as demonstrated by a ".." session-file forgery in the file session provider in file.go. This is related to session ID handling in the go-macaron/session code for Macaron.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
j4k0m/CVE-2018-18925 ★ 7 · Sep 12, 2021
Exploitation of CVE-2018-18925 a Remote Code Execution against the Git self hosted tool: Gogs.
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Gogs (Go Git Service) 0.11.66 - Remote Code Execution http/cves/2018/CVE-2018-18925.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.