CVE-2014-8682 in gogits gogs
LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.
What the vulnerability is
Multiple SQL injection vulnerabilities in Gogs (aka Go Git Service) 0.3.1-9 through 0.5.x before 0.5.6.1105 Beta allow remote attackers to execute arbitrary SQL commands via the q parameter to (1) api/v1/repos/search, which is not properly handled in models/repo.go, or (2) api/v1/users/search, which is not properly handled in models/user.go.
Affected software: gogits gogs
Scores
- CVSS: 7.5 (high)
- EPSS: 32.62% chance of exploitation in the next 30 days
- CISA KEV: Not listed
- Published: 2014-11-21
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): No
- Mitigation: Yes, see below
How to mitigate it
Upgrade Gogs to 0.5.8 or later
Patch or upgrade. Gogs before 0.5.8 builds the repository and user search query from the q parameter without escaping, which allows SQL injection without login. Later releases fix the search.
Applies to: Gogs before 0.5.8
- Check the running version on the Gogs admin dashboard or with gogs --version.
- Stop Gogs, back up the data directory and database.
- Install the latest Gogs release from the releases page and start the service.
- Rerun the vulnerability scan to confirm CVE-2014-8682 is no longer reported.
Sources:
Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.
We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.