CVE-2016-4861 Zend Framework Allows SQL Injection
Remote attackers can execute SQL injection attacks in Zend Framework due to improper comment removal in SQL statements.
- 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-4861?
CVE-2016-4861 is a critical SQL injection vulnerability in Fedoraproject Fedora, published on 16 Feb 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The (1) order and (2) group methods in Zend_Db_Select in the Zend Framework before 1.12.20 might allow remote attackers to conduct SQL injection attacks by leveraging failure to remove comments from an SQL statement before validation.
Weakness: CWE-89
Which versions are affected by CVE-2016-4861?
2 open source packages ship an affected version, including zendframework/zendframework. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
zendframework/zendframework Packagist | All versions | 1.12.20 |
zendframework/zendframework Packagist | All versions | 1.12.20 |
Products include Fedoraproject Fedora, Zend Zend Framework.
How do I fix CVE-2016-4861?
Upgrade zendframework/zendframework to 1.12.20 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-4861 being exploited?
There is no known exploitation of CVE-2016-4861 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as DLA-1403-1, DLA-646-1, GHSA-xfjq-w3cw-h5fq, MGASA-2016-0352, UBUNTU-CVE-2016-4861.