CVE-2024-37295: Aimeos/aimeos core Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-rhc2-23c2-ww7c
CVSS 7.2
CWE-73
Published
Advisory Summary

CVE-2024-37295 is a HIGH (CVSS 7.2) remote code execution vulnerability (CWE-73: External Control of File Name or Path) affecting Aimeos/aimeos core libraries in the Packagist ecosystem. The issue involves remote code execution in web server context. Remediation is available by upgrading affected packages to version 2024.04.5.

CVE-2024-37295 at a Glance

CVE Identifier CVE-2024-37295
GHSA Identifier GHSA-rhc2-23c2-ww7c
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification CWE-73: External Control of File Name or Path
Affected Product Aimeos/aimeos core
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
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-2024-37295

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

aimeos/aimeos-core fixed: 2024.04.5
Upgrade aimeos/aimeos-core to 2024.04.5
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 aimeos/aimeos-core

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-37295, inspect your project dependencies for Aimeos/aimeos core:

inspect dependencies for aimeos/aimeos-core

Analyze the terminal output to locate any version of Aimeos/aimeos core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2024.04.5), 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-73: External Control of File Name or Path, where the product allows user input to control or influence paths or file names that are used in filesystem operations. In Aimeos/aimeos 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

### Impact User with administrative privileges and upload files that look like images but contain PHP code which can then be executed in the context of the web server.

CVE-2024-37295 Affected Aimeos/aimeos core Versions

1 component(s)
Fixed Versions:
2024.04.5
Product / Package Ecosystem Affected Versions Fixed Version
aimeos/aimeos-core
Packagist
≥ 2024.04.1
< 2024.04.5
2024.04.5

References

Frequently Asked Questions

What is CVE-2024-37295?
CVE-2024-37295 is a security vulnerability in Aimeos/aimeos core involving Remote code execution in web server context under CWE-73: External Control of File Name or Path.
Which Aimeos/aimeos core versions are affected?
Affected versions include releases prior to 2024.04.5 across affected packages: aimeos/aimeos-core.
What version fixes CVE-2024-37295?
Upgrading to 2024.04.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is aimeos/aimeos-core affected?
Yes, aimeos/aimeos-core is affected in releases prior to 2024.04.5. Upgrade your dependency to 2024.04.5 or later.
What is the CVSS score of CVE-2024-37295?
CVE-2024-37295 has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2024-37295?
CVE-2024-37295 is classified under CWE-73: External Control of File Name or Path (The product allows user input to control or influence paths or file names that are used in filesystem operations.).
How can I check Packagist dependencies for CVE-2024-37295?
Run the dependency tree command: 'inspect dependencies for aimeos/aimeos-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-rhc2-23c2-ww7c",
  "modified" : "2024-06-11T20:56:22Z",
  "published" : "2024-06-05T13:29:47Z",
  "aliases" : [ "CVE-2024-37295" ],
  "summary" : "Remote code execution in web server context",
  "details" : "### Impact\nUser with administrative privileges and upload files that look like images but contain PHP code which can then be executed in the context of the web server.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "aimeos/aimeos-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2024.04.1"
      }, {
        "fixed" : "2024.04.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/aimeos/aimeos-core/security/advisories/GHSA-rhc2-23c2-ww7c"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-37295"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/aimeos/aimeos-core"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-73" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-06-05T13:29:47Z",
    "nvd_published_at" : "2024-06-11T15:16:09Z"
  }
}