CVE-2015-7695 Zend Framework SQL injection vector using null byte for PDO

Critical 9.8 Published Updated

Remote attackers can execute arbitrary SQL commands via crafted queries due to null byte filtering issues in Zend Framework PDO adapters.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2015-7695?

CVE-2015-7695 is a critical SQL injection vulnerability in Debian Debian Linux, published on 7 Jun 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The PDO adapters in Zend Framework before 1.12.16 do not filer null bytes in SQL statements, which allows remote attackers to execute arbitrary SQL commands via a crafted query.

Weakness: CWE-89

Which versions are affected by CVE-2015-7695?

2 open source packages ship an affected version, including zendframework/zendframework1. It affects 2 products.

PackageAffectedFixed in
zendframework/zendframework1 PackagistAll versions1.12.16
zendframework/zendframework1 PackagistAll versions1.12.16

Products include Debian Debian Linux, Zend Zend Framework.

How do I fix CVE-2015-7695?

Upgrade zendframework/zendframework1 to 1.12.16 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-2015-7695 being exploited?

There is no known exploitation of CVE-2015-7695 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as DLA-326-1, GHSA-2hvh-c5c2-vj85, UBUNTU-CVE-2015-7695.

Is CVE-2015-7695 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free