Register for the AI for Security Summit: Join Figma, Perplexity & Wiz
Vulnerability DatabaseGHSA-2x36-qhx3-7m5f

GHSA-2x36-qhx3-7m5f
PHP vulnerability analysis and mitigation

Overview

A critical SQL injection vulnerability was discovered in Zend Framework 1's implementation of the ORDER BY SQL statement in Zend_Db_Select component. The vulnerability affects versions 1.12.0 through 1.12.7 and was disclosed on June 11, 2014. This security flaw occurs when the query string containing parentheses is passed to the order() function, allowing potential SQL injection attacks (Zend Advisory).

Technical details

The vulnerability stems from improper handling of parentheses in ORDER BY statements. When creating a new Zend_Db_Expr() object, the system passes the value directly without proper filtering when parentheses are present. The vulnerability has been assigned a CVSS v3.1 score of 9.8 (Critical), with attack vector: Network, attack complexity: Low, privileges required: None, user interaction: None, scope: Unchanged, and high impact on confidentiality, integrity, and availability. The vulnerability is classified as CWE-89 (GitHub Advisory).

Impact

The vulnerability allows attackers to perform SQL injection attacks through the ORDER BY clause. For example, a malicious query like 'MD5(1); drop table products' would be executed as 'SELECT "p".* FROM "products" AS "p" ORDER BY MD5(1);drop table products ASC' instead of being properly quoted, potentially allowing unauthorized database operations (Zend Advisory).

Exploitability

The vulnerability requires no special privileges or user interaction to exploit, making it highly exploitable. An attacker can execute the exploit remotely through network access, with low attack complexity (GitHub Advisory).

Mitigation and workarounds

The issue has been fixed in Zend Framework 1.12.7 by implementing a more granular regular expression to match only SQL functions in ORDER BY statements. The new regex '/^[\w](.))$/' replaced the previous '/(.*))/' pattern. Users should upgrade to version 1.12.7 or later to receive the security fix. It's worth noting that this vulnerability does not affect Zend Framework 2 versions as the implementation of Zend\Db\Sql\Select::order() handles parenthetical expressions differently (Zend Advisory).

Community reactions

The vulnerability was discovered by Cassiano Dal Pizzol, analyzed and reported by Lars Kneschke, and patched by Enrico Zimuel. The Zend Framework team acknowledged their contributions in helping protect the framework's users (Zend Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-56829HIGH8.1
  • PHP logoPHP
  • shopper/framework
NoYesSep 15, 2026
CVE-2026-56827HIGH8.1
  • PHP logoPHP
  • shopper/framework
NoYesSep 15, 2026
CVE-2026-84997HIGH7.5
  • PHP logoPHP
  • composer://react/http
NoYesSep 16, 2026
CVE-2026-56831MEDIUM6.5
  • PHP logoPHP
  • shopper/framework
NoYesSep 15, 2026
CVE-2026-56830MEDIUM6.5
  • PHP logoPHP
  • shopper/framework
NoYesSep 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management