CVE-2016-7405 ADOdb Library SQL Injection
Remote attackers can execute arbitrary SQL commands via incorrect quoting in the ADOdb PHP library's PDO driver.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2016-7405?
CVE-2016-7405 is a critical SQL injection vulnerability in Fedoraproject Fedora, published on 3 Oct 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The qstr method in the PDO driver in the ADOdb Library for PHP before 5.x before 5.20.7 might allow remote attackers to conduct SQL injection attacks via vectors related to incorrect quoting.
Weakness: CWE-89
Which versions are affected by CVE-2016-7405?
2 open source packages ship an affected version, including adodb/adodb-php. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
adodb/adodb-php Packagist | From 5.0 | 5.20.7 |
adodb/adodb-php Packagist | From 5.0 | 5.20.7 |
Products include Adodb Project Adodb, Fedoraproject Fedora.
How do I fix CVE-2016-7405?
Upgrade adodb/adodb-php to 5.20.7 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-2016-7405 being exploited?
There is no known exploitation of CVE-2016-7405 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as DEBIAN-CVE-2016-7405, GHSA-3fj4-q72x-x2g9, UBUNTU-CVE-2016-7405.