The git hook feature in Gogs 0.5.5 through 0.12.2 allows for authenticated remote code execution
No fixed version listed yet.Check the vendor advisory. References ↓
Gogs versions 0.5.5 through 0.12.2 contain a flaw in the git hook feature, which is documented but not exposed in the user interface. An attacker who has valid credentials can use this feature to execute code remotely, and a non-administrative user who is granted access to the hook feature can escalate privileges.
Official description · CVE.org
The git hook feature in Gogs 0.5.5 through 0.12.2 allows for authenticated remote code execution. There can be a privilege escalation if access to this hook feature is granted to a user who does not have administrative privileges. NOTE: because this is mentioned in the documentation but not in the UI, it could be considered a "Product UI does not Warn User of Unsafe Actions" issue.
- Exploited
- Not confirmed
- Reports
- 0
- Tactics
- 0/15
Exploitation timelineDated milestones for a CVE: when it was disclosed, when exploit code became public, when exploitation was confirmed, and when threat reports named it.
Public exploit code (Metasploit) was available 9 days before disclosure.
- Public exploit codeMetasploit9 days before
- Disclosedday 0