Vulnerability DatabaseGHSA-6fqw-j3vm-7f66

GHSA-6fqw-j3vm-7f66
PHP vulnerability analysis and mitigation

Overview

A critical SQL injection vulnerability was discovered in Zend Framework 1's implementation of ORDER BY and GROUP BY functions within the Zend_Db_Select component. The vulnerability, identified as GHSA-6fqw-j3vm-7f66, affects versions prior to 1.12.20 and was disclosed on September 8, 2016. The issue occurs when a combination of SQL expressions and comments are used, potentially allowing malicious SQL injection attacks (Zend Advisory).

Technical details

The vulnerability exists in the Zend_Db_Select component where ORDER BY and GROUP BY functions fail to properly sanitize input when SQL expressions and comments are combined. When exploited, an attacker could inject malicious SQL statements that would be executed by the database. For example, a malicious input like 'MD5("a(");DELETE FROM p2; #)' would be processed incorrectly, resulting in the execution of unauthorized SQL commands. The vulnerability has been assigned a Critical severity rating with a CVSS score of 9.8, indicating high impact potential across confidentiality, integrity, and availability vectors (GitHub Advisory).

Impact

The vulnerability allows attackers to execute arbitrary SQL commands through the ORDER BY and GROUP BY functions, potentially leading to unauthorized data access, modification, or deletion of database contents. The high CVSS score of 9.8 indicates critical severity with potential for significant impact on system confidentiality, integrity, and availability (GitHub Advisory).

Exploitability

The vulnerability can be exploited remotely without requiring any special privileges or user interaction. The attack complexity is considered low, making it relatively straightforward for attackers to exploit. The vulnerability specifically affects the ORDER BY and GROUP BY functions when processing user input containing SQL expressions and comments (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Zend Framework 1.12.20. The fix implements a comprehensive solution that identifies and removes comments prior to checking statement validity. For users unable to upgrade immediately, it is recommended to either avoid using user input for ORDER and GROUP operations or thoroughly filter input using the Zend_Db_Select::quoteInto() method. The patch includes a regex-based solution to remove SQL comments before processing the statements (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-71537MEDIUM6.5
  • PHP logoPHP
  • paymenter/paymenter
NoYesSep 18, 2026
CVE-2026-77616MEDIUM6.1
  • PHP logoPHP
  • mediawiki/semantic-media-wiki
NoYesSep 18, 2026
CVE-2026-77610MEDIUM6.1
  • PHP logoPHP
  • mediawiki/semantic-media-wiki
NoYesSep 18, 2026
CVE-2026-77609MEDIUM6.1
  • PHP logoPHP
  • mediawiki/semantic-media-wiki
NoYesSep 18, 2026
CVE-2026-77608MEDIUM6.1
  • PHP logoPHP
  • mediawiki/semantic-media-wiki
NoYesSep 18, 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