CVE-2014-8089: Zend Framework SQL Injection Vulnerability

zendframework/zendframework1 Updated 02 Oct 2025

Summary

23/04/2024
Yes i
Critical
9.8

CVE-2014-8089: Zend Framework SQL injection vulnerability. Affects zendframework/zendframework1 versions >= 1.12.0, < 1.12.9. Fixed in 1.12.9. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Zend Framework is a popular open-source PHP framework that provides a collection of professional PHP packages for developing web applications. It offers a wide range of features and components for building robust and secure applications. However, versions before 1.12.9, 2.2.x before 2.2.8, and 2.3.x before 2.3.3 are vulnerable to a SQL injection attack when using the sqlsrv PHP extension.

Vulnerability Detail

This vulnerability allows remote attackers to execute arbitrary SQL commands by exploiting a null byte injection. By manipulating the input data, an attacker can inject malicious SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation. The vulnerability affects applications using the affected versions of the Zend Framework with the sqlsrv PHP extension.

How To Fix

Minimum fixed version

1.12.9

This is the first release that contains the fix.

composer require zendframework/zendframework1:1.12.9

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the patched versions is not immediately feasible, a temporary workaround is to disable the sqlsrv PHP extension or implement proper input validation and sanitization to prevent SQL injection attacks. Here is an example of input validation using prepared statements in PHP:

$pdo = new PDO('sqlsrv:Server=localhost;Database=myDB', 'username', 'password');
$stmt = $pdo->prepare('SELECT * FROM users WHERE username = :username');
$stmt->bindParam(':username', $username);
$stmt->execute();
$result = $stmt->fetchAll();

Conclusion

The Zend Framework is vulnerable to a SQL injection attack when using the sqlsrv PHP extension in versions before 1.12.9, 2.2.x before 2.2.8, and 2.3.x before 2.3.3. It is crucial to upgrade to the latest patched versions or apply the recommended workarounds to mitigate the risk of exploitation. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for zendframework/zendframework1 →

Share this vulnerability

FAQ

This vulnerability allows attackers to execute arbitrary SQL commands, potentially leading to unauthorized access, data leakage, or data manipulation.

Versions before 1.12.9, 2.2.x before 2.2.8, and 2.3.x before 2.3.3 are affected.

Yes, the CVSS score for this vulnerability is 9.8, indicating a critical severity level.

At the time of this report, there are no known public exploits available for this vulnerability.

You can find more information about this vulnerability, including the technical details and affected packages, in the advisory on the GitHub Advisory Database: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/04/GHSA-qh9w-r7g5-q939/GHSA-qh9w-r7g5-q939.json

Related vulnerabilities

Recent vulnerabilities recorded for zendframework/zendframework1.

How To Fix

Minimum fixed version

1.12.9

This is the first release that contains the fix.

composer require zendframework/zendframework1:1.12.9

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback