CVE-2019-10762 SQL Injection in medoo
Remote attackers can execute arbitrary SQL commands via improper escaping in the columnQuote function of the Medoo PHP library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-10762?
CVE-2019-10762 is a critical SQL injection vulnerability in medoo, published on 30 Oct 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
columnQuote in medoo before 1.7.5 allows remote attackers to perform a SQL Injection due to improper escaping.
Weakness: CWE-89
Which versions are affected by CVE-2019-10762?
2 open source packages ship an affected version, including catfan/medoo. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
catfan/medoo Packagist | All versions | 1.7.5 |
catfan/medoo Packagist | All versions | 1.7.5 |
Products include Medoo Medoo.
How do I fix CVE-2019-10762?
Upgrade catfan/medoo to 1.7.5 or later.
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-2019-10762 being exploited?
There is no known exploitation of CVE-2019-10762 in the wild and no public exploit code.
Sources
Also known as GHSA-q9p4-qfc8-fvpp, SNYK-PHP-CATFANMEDOO-474562.