GHSA-gff2-p6vm-3p8g: Zendframework/zendframework Remote Code Execution Vulnerability
MODERATEGHSA-gff2-p6vm-3p8g is a MODERATE (CVSS 6.5) remote code execution vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Zendframework/zendframework libraries in the Packagist ecosystem. The issue involves zendframework potential remote code execution in zend-mail via sendmail adapter. Remediation is available by upgrading affected packages to version 2.4.11.
GHSA-gff2-p6vm-3p8g at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N).
How to Fix GHSA-gff2-p6vm-3p8g
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.4.11
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 GHSA-gff2-p6vm-3p8g, 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.4.11), 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-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. 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
GHSA-gff2-p6vm-3p8g Affected Zendframework/zendframework Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
zendframework/zendframework
|
Packagist |
≥ 2.0.0
< 2.4.11
|
2.4.11
|
References
Frequently Asked Questions
What is GHSA-gff2-p6vm-3p8g?
Which Zendframework/zendframework versions are affected?
What version fixes GHSA-gff2-p6vm-3p8g?
Is zendframework/zendframework affected?
What is the CVSS score of GHSA-gff2-p6vm-3p8g?
What CWE is associated with GHSA-gff2-p6vm-3p8g?
How can I check Packagist dependencies for GHSA-gff2-p6vm-3p8g?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gff2-p6vm-3p8g",
"modified" : "2024-06-07T20:47:30Z",
"published" : "2024-06-07T20:47:30Z",
"aliases" : [ ],
"summary" : "ZendFramework potential remote code execution in zend-mail via Sendmail adapter",
"details" : "When using the zend-mail component to send email via the `Zend\\Mail\\Transport\\Sendmail transport`, a malicious user may be able to inject arbitrary parameters to the system sendmail program. The attack is performed by providing additional quote characters within an address; when unsanitized, they can be interpreted as additional command line arguments, leading to the vulnerability.\n\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "zendframework/zendframework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.4.11"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/zendframework/zendframework/commit/7c1e89815f5a9c016f4b8088e59b07cb2bf99dc0"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework/ZF2016-04.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/zendframework/zendframework"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20201107093523/https://framework.zend.com/security/advisory/ZF2016-04"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-74" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-06-07T20:47:30Z",
"nvd_published_at" : null
}
}