GHSA-26hp-cgjj-m2j3: Fuel/core Fuel/core ImageMagick Driver Does Not Vulnerability
HIGHGHSA-26hp-cgjj-m2j3 is a HIGH fuel/core imagemagick driver does not vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Fuel/core libraries in the Packagist ecosystem. The issue involves fuel/core imagemagick driver does not escape all shell arguments.. Remediation is available by upgrading affected packages to version 1.8.0.4.
GHSA-26hp-cgjj-m2j3 at a Glance
How to Fix GHSA-26hp-cgjj-m2j3
To remediate this vulnerability, upgrade all affected Fuel/core 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 fuel/core to 1.8.0.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for fuel/core
How to Check if You Are Affected
To determine whether your application is affected by GHSA-26hp-cgjj-m2j3, inspect your project dependencies for Fuel/core:
inspect dependencies for fuel/core
Analyze the terminal output to locate any version of Fuel/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.0.4), 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-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Fuel/core, 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-26hp-cgjj-m2j3 Affected Fuel/core Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
fuel/core
|
Packagist |
< 1.8.0.4
|
1.8.0.4
|
References
Frequently Asked Questions
What is GHSA-26hp-cgjj-m2j3?
Which Fuel/core versions are affected?
What version fixes GHSA-26hp-cgjj-m2j3?
Is fuel/core affected?
What CWE is associated with GHSA-26hp-cgjj-m2j3?
How can I check Packagist dependencies for GHSA-26hp-cgjj-m2j3?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-26hp-cgjj-m2j3",
"modified" : "2024-05-15T21:44:46Z",
"published" : "2024-05-15T21:44:46Z",
"aliases" : [ ],
"summary" : "fuel/core ImageMagick driver does not escape all shell arguments.",
"details" : "This vulnerability may cause OS commands to be executed when you pass unvalidated image filenames containing specially crafted strings to the ImageMagick driver.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "fuel/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.8.0.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/fuel/core/commit/95c134e9e087f3c4523fe6cd86ed4e9e1e7af91c"
}, {
"type" : "WEB",
"url" : "https://fuelphp.com/security-advisories"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/fuel/core/2016-06-29-1.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/fuel/core"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-78" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-15T21:44:46Z",
"nvd_published_at" : null
}
}