CVE-2015-6497: Magento/core Magento Arbitrary PHP Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-j4fq-3fm7-wh5v
CVSS 8.8
CWE-20
Published
Advisory Summary

CVE-2015-6497 is a HIGH (CVSS 8.8) magento arbitrary php code execution vulnerability (CWE-20: Improper Input Validation) affecting Magento/core libraries in the Packagist ecosystem. The issue involves magento arbitrary php code execution via the productdata parameter. Remediation is available by upgrading affected packages to version 1.9.2.1.

CVE-2015-6497 at a Glance

CVE Identifier CVE-2015-6497
GHSA Identifier GHSA-j4fq-3fm7-wh5v
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-20: Improper Input Validation
Affected Product Magento/core
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 8.8

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:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2015-6497

To remediate this vulnerability, upgrade all affected Magento/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.

magento/core fixed: 1.9.2.1
Upgrade magento/core to 1.9.2.1
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 magento/core

How to Check if You Are Affected

To determine whether your application is affected by CVE-2015-6497, inspect your project dependencies for Magento/core:

inspect dependencies for magento/core

Analyze the terminal output to locate any version of Magento/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.2.1), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Magento/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

The create function in `app/code/core/Mage/Catalog/Model/Product/Api/V2.php` in Magento Community Edition (CE) before 1.9.2.1 and Enterprise Edition (EE) before 1.14.2.1, when used with PHP before 5.4.24 or 5.5.8, allows remote authenticated users to execute arbitrary PHP code via the productData parameter to `index.php/api/v2_soap`.

CVE-2015-6497 Affected Magento/core Versions

1 component(s)
Fixed Versions:
1.9.2.1
Product / Package Ecosystem Affected Versions Fixed Version
magento/core
Packagist
< 1.9.2.1
1.9.2.1

References

Frequently Asked Questions

What is CVE-2015-6497?
CVE-2015-6497 is a security vulnerability in Magento/core involving Magento arbitrary PHP code execution via the productData parameter under CWE-20: Improper Input Validation.
Which Magento/core versions are affected?
Affected versions include releases prior to 1.9.2.1 across affected packages: magento/core.
What version fixes CVE-2015-6497?
Upgrading to 1.9.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is magento/core affected?
Yes, magento/core is affected in releases prior to 1.9.2.1. Upgrade your dependency to 1.9.2.1 or later.
What is the CVSS score of CVE-2015-6497?
CVE-2015-6497 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2015-6497?
CVE-2015-6497 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Packagist dependencies for CVE-2015-6497?
Run the dependency tree command: 'inspect dependencies for magento/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-j4fq-3fm7-wh5v",
  "modified" : "2024-01-10T23:10:29Z",
  "published" : "2022-05-24T17:06:13Z",
  "aliases" : [ "CVE-2015-6497" ],
  "summary" : "Magento arbitrary PHP code execution via the productData parameter",
  "details" : "The create function in `app/code/core/Mage/Catalog/Model/Product/Api/V2.php` in Magento Community Edition (CE) before 1.9.2.1 and Enterprise Edition (EE) before 1.14.2.1, when used with PHP before 5.4.24 or 5.5.8, allows remote authenticated users to execute arbitrary PHP code via the productData parameter to `index.php/api/v2_soap`.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "magento/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.9.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-6497"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/magento/magento2"
  }, {
    "type" : "WEB",
    "url" : "http://blog.mindedsecurity.com/2015/09/autoloaded-file-inclusion-in-magento.html"
  }, {
    "type" : "WEB",
    "url" : "http://karmainsecurity.com/KIS-2015-04"
  }, {
    "type" : "WEB",
    "url" : "http://magento.com/security/patches/supee-6482"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/133544/Magento-1.9.2-File-Inclusion.html"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/fulldisclosure/2015/Sep/48"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-10T23:10:29Z",
    "nvd_published_at" : "2020-01-15T17:15:00Z"
  }
}