CVE-2021-39165 Unauthenticated SQL Injection
Unauthenticated attackers can exploit SQL injection in Cachet to exfiltrate sensitive database information, including administrator credentials.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-39165?
CVE-2021-39165 is a high-severity SQL injection vulnerability in fiveai Cachet, published on 26 Aug 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Cachet is an open source status page. With Cachet prior to and including 2.3.18, there is a SQL injection which is in the `SearchableTrait#scopeSearch()`. Attackers without authentication can utilize this vulnerability to exfiltrate sensitive data from the database such as administrator's password and session. The original repository of Cachet <https://github.com/CachetHQ/Cachet> is not active, the stable version 2.3.18 and it's developing 2.4 branch is affected.
Which versions are affected by CVE-2021-39165?
2 open source packages ship an affected version, including cachethq/cachet. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
cachethq/cachet Packagist | All versions to 2.3.18 | None |
cachethq/cachet Packagist | All versions to 2.3.18 | None |
Products include Chachethq Cachet.
How do I fix CVE-2021-39165?
No fix has been published for CVE-2021-39165 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2021-39165 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-39165 exists.
Public exploit code: 1 Nuclei template and 2 proofs of concept on GitHub.
Sources
Also known as GHSA-79mg-4w23-4fqc.