CVE-2015-0270: Zendframework/zendframework SQL Injection Vulnerability
CRITICALCVE-2015-0270 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 2.2.10, 2.3.5.
CVE-2015-0270 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.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2015-0270
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 2.2.10
Upgrade zendframework/zendframework to 2.3.5
Upgrade zendframework/zend-db to 2.2.10
Upgrade zendframework/zend-db to 2.3.5
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-2015-0270, 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 2.2.10), 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-2015-0270 Affected Zendframework/zendframework Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
zendframework/zendframework
|
Packagist |
< 2.2.10
|
2.2.10
|
|
zendframework/zendframework
|
Packagist |
≥ 2.3.0
< 2.3.5
|
2.3.5
|
|
zendframework/zend-db
|
Packagist |
< 2.2.10
|
2.2.10
|
|
zendframework/zend-db
|
Packagist |
≥ 2.3.0
< 2.3.5
|
2.3.5
|
References
Frequently Asked Questions
What is CVE-2015-0270?
Which Zendframework/zendframework versions are affected?
What version fixes CVE-2015-0270?
Is zendframework/zendframework affected?
Is zendframework/zend-db affected?
What is the CVSS score of CVE-2015-0270?
What CWE is associated with CVE-2015-0270?
How can I check Packagist dependencies for CVE-2015-0270?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v59p-p692-v382",
"modified" : "2023-12-07T21:25:59Z",
"published" : "2022-05-24T16:59:51Z",
"aliases" : [ "CVE-2015-0270" ],
"summary" : "Zend Framework Allows SQL Injection",
"details" : "Zend Framework before 2.2.10 and 2.3.x before 2.3.5 has Potential SQL injection in PostgreSQL Zend\\Db adapter.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/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" : "2.2.10"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "zendframework/zendframework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "2.3.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "zendframework/zend-db"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.2.10"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "zendframework/zend-db"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "2.3.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-0270"
}, {
"type" : "WEB",
"url" : "https://github.com/zendframework/zendframework/commit/569f18228f5fc84534af6ff2f367ca1a7143ec65"
}, {
"type" : "WEB",
"url" : "https://framework.zend.com/security/advisory/ZF2015-02"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zend-db/CVE-2015-0270.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework/CVE-2015-0270.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/zendframework/zendframework"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-01T00:09:06Z",
"nvd_published_at" : "2019-10-25T15:15:00Z"
}
}