CVE-2016-6233: Zendframework/zendframework SQL Injection Vulnerability
CRITICALCVE-2016-6233 is a CRITICAL (CVSS 9.8) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Zendframework/zendframework libraries in the Packagist ecosystem. The issue involves zend framework allows sql injection. Remediation is available by upgrading affected packages to version 1.12.19.
CVE-2016-6233 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2016-6233
To remediate this vulnerability, upgrade all affected Zendframework/zendframework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade zendframework/zendframework to 1.12.19
Upgrade zendframework/zendframework1 to 1.12.19
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for zendframework/zendframework
How to Check if You Are Affected
To determine whether your application is affected by CVE-2016-6233, inspect your project dependencies for Zendframework/zendframework:
inspect dependencies for zendframework/zendframework
Analyze the terminal output to locate any version of Zendframework/zendframework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.12.19), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Zendframework/zendframework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2016-6233 Affected Zendframework/zendframework Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
zendframework/zendframework
|
Packagist |
< 1.12.19
|
1.12.19
|
|
zendframework/zendframework1
|
Packagist |
< 1.12.19
|
1.12.19
|
References
Frequently Asked Questions
What is CVE-2016-6233?
Which Zendframework/zendframework versions are affected?
What version fixes CVE-2016-6233?
Is zendframework/zendframework affected?
Is zendframework/zendframework1 affected?
What is the CVSS score of CVE-2016-6233?
What CWE is associated with CVE-2016-6233?
How can I check Packagist dependencies for CVE-2016-6233?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p9hp-3gpv-52w3",
"modified" : "2023-12-07T16:20:08Z",
"published" : "2022-05-14T02:19:45Z",
"aliases" : [ "CVE-2016-6233" ],
"summary" : "Zend Framework Allows SQL Injection",
"details" : "The (1) order and (2) group methods in Zend_Db_Select in the Zend Framework before 1.12.19 might allow remote attackers to conduct SQL injection attacks via vectors related to use of the character pattern `[\\w]*` in a regular expression.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "zendframework/zendframework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.12.19"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "zendframework/zendframework1"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.12.19"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-6233"
}, {
"type" : "WEB",
"url" : "https://framework.zend.com/security/advisory/ZF2016-02"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework1/CVE-2016-6233.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/zendframework/zendframework"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2JUKFTI6ABK7ZN7IEAGPCLAHCFANMID2"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/N27AV6AL6B4KGEP3VIMIHQ5LFAKF5FTU"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UR5HXNGIUSSIZKMSZYMPBEPZEZTYFTIT"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/201804-10"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20210123152547/http://www.securityfocus.com/bid/91802"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-28T23:22:04Z",
"nvd_published_at" : "2017-02-17T02:59:00Z"
}
}