CVE-2014-8770: Dweeves/magmi MAGMI Plugin For Magento Unsafe Vulnerability

HIGH
Advisory Identifier: GHSA-x3gh-95p8-43qv
CWE-94
Published
Advisory Summary

CVE-2014-8770 is a HIGH magmi plugin for magento unsafe vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Dweeves/magmi libraries in the Packagist ecosystem. The issue involves magmi plugin for magento unsafe file upload. Remediation is available in the latest vendor maintenance releases.

CVE-2014-8770 at a Glance

CVE Identifier CVE-2014-8770
GHSA Identifier GHSA-x3gh-95p8-43qv
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Dweeves/magmi
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2014-8770

To remediate this vulnerability, upgrade all affected Dweeves/magmi dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

dweeves/magmi fixed: Latest secure release
Upgrade dweeves/magmi to Latest secure release
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 dweeves/magmi

How to Check if You Are Affected

To determine whether your application is affected by CVE-2014-8770, inspect your project dependencies for Dweeves/magmi:

inspect dependencies for dweeves/magmi

Analyze the terminal output to locate any version of Dweeves/magmi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Dweeves/magmi, 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

Unrestricted file upload vulnerability in `magmi/web/magmi.php` in the MAGMI (aka Magento Mass Importer) plugin 0.7.17a and earlier for Magento Community Edition (CE) allows remote authenticated users to execute arbitrary code by uploading a ZIP file that contains a PHP file, then accessing the PHP file via a direct request to it in `magmi/plugins/`.

CVE-2014-8770 Affected Dweeves/magmi Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
dweeves/magmi
Packagist
≤ 0.7.17a

References

Frequently Asked Questions

What is CVE-2014-8770?
CVE-2014-8770 is a security vulnerability in Dweeves/magmi involving MAGMI plugin for Magento Unsafe File Upload under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Dweeves/magmi versions are affected?
Affected versions include releases prior to current release patches across affected packages: dweeves/magmi.
What version fixes CVE-2014-8770?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is dweeves/magmi affected?
Yes, dweeves/magmi is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2014-8770?
CVE-2014-8770 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check Packagist dependencies for CVE-2014-8770?
Run the dependency tree command: 'inspect dependencies for dweeves/magmi'. 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-x3gh-95p8-43qv",
  "modified" : "2023-08-07T20:02:36Z",
  "published" : "2022-05-14T00:56:27Z",
  "aliases" : [ "CVE-2014-8770" ],
  "summary" : "MAGMI plugin for Magento Unsafe File Upload",
  "details" : "Unrestricted file upload vulnerability in `magmi/web/magmi.php` in the MAGMI (aka Magento Mass Importer) plugin 0.7.17a and earlier for Magento Community Edition (CE) allows remote authenticated users to execute arbitrary code by uploading a ZIP file that contains a PHP file, then accessing the PHP file via a direct request to it in `magmi/plugins/`.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "dweeves/magmi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.7.17a"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-8770"
  }, {
    "type" : "WEB",
    "url" : "https://sourceforge.net/projects/magmi/files/magmi-0.7/plugins/packages"
  }, {
    "type" : "WEB",
    "url" : "http://www.exploit-db.com/exploits/35052"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-07T20:02:36Z",
    "nvd_published_at" : "2014-11-13T21:32:00Z"
  }
}