GHSA-26hp-cgjj-m2j3: Fuel/core Fuel/core ImageMagick Driver Does Not Vulnerability

HIGH
CWE-78
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-26hp-cgjj-m2j3
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product Fuel/core
Package Ecosystem Packagist
Published Date
Last Updated

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.

fuel/core fixed: 1.8.0.4
Upgrade fuel/core to 1.8.0.4
Verify Direct and Transitive Dependencies

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

This vulnerability may cause OS commands to be executed when you pass unvalidated image filenames containing specially crafted strings to the ImageMagick driver.

GHSA-26hp-cgjj-m2j3 Affected Fuel/core Versions

1 component(s)
Fixed Versions:
1.8.0.4
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?
GHSA-26hp-cgjj-m2j3 is a security vulnerability in Fuel/core involving fuel/core ImageMagick driver does not escape all shell arguments. under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which Fuel/core versions are affected?
Affected versions include releases prior to 1.8.0.4 across affected packages: fuel/core.
What version fixes GHSA-26hp-cgjj-m2j3?
Upgrading to 1.8.0.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is fuel/core affected?
Yes, fuel/core is affected in releases prior to 1.8.0.4. Upgrade your dependency to 1.8.0.4 or later.
What CWE is associated with GHSA-26hp-cgjj-m2j3?
GHSA-26hp-cgjj-m2j3 is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (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.).
How can I check Packagist dependencies for GHSA-26hp-cgjj-m2j3?
Run the dependency tree command: 'inspect dependencies for fuel/core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}