CVE-2021-39165
PHP vulnerability analysis and mitigation

Overview

Cachet, an open source status page system, was found to contain a SQL injection vulnerability in versions prior to and including 2.3.18. The vulnerability exists in the SearchableTrait#scopeSearch() function. This issue was discovered in August 2021 and was assigned CVE-2021-39165 (GitHub Advisory).

Technical details

The vulnerability exists in the SearchableTrait#scopeSearch() function where there was improper validation of searchable columns used in database queries. The issue allowed attackers to manipulate search parameters to perform SQL injection attacks. The fix involved implementing proper validation by ensuring only allowed searchable columns are used in database queries through the use of arrayintersectkey() function (GitHub Commit).

Impact

Attackers without authentication could exploit this vulnerability to exfiltrate sensitive data from the database, including administrator passwords and session information (GitHub Advisory, Sonar).

Mitigation and workarounds

Since the original CachetHQ/Cachet repository was not active at the time, users were advised to upgrade to version 2.5.0 or later from the forking repository at fiveai/Cachet to address this vulnerability (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65346CRITICAL9.1
  • PHPPHP
  • alexusmai/laravel-file-manager
NoNoDec 04, 2025
CVE-2025-66468HIGH7.6
  • PHPPHP
  • aimeos/ai-cms-grapesjs
NoYesDec 02, 2025
CVE-2025-65345MEDIUM6.5
  • PHPPHP
  • alexusmai/laravel-file-manager
NoNoDec 03, 2025
CVE-2025-65657MEDIUM6.5
  • PHPPHP
  • feehi/cms
NoNoDec 02, 2025
CVE-2025-65186MEDIUM6.1
  • PHPPHP
  • getgrav/grav
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management