Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. akeneo/pim-community-dev
  4. ›
  5. CVE-2022-46157

CVE-2022-46157: Improper Control of Generation of Code ('Code Injection')

December 9, 2022 (updated November 7, 2023)

Akeneo PIM is an open source Product Information Management (PIM). Akeneo PIM Community Edition versions before v5.0.119 and v6.0.53 allows remote authenticated users to execute arbitrary PHP code on the server by uploading a crafted image. Akeneo PIM Community Edition after the versions aforementioned provides patched Apache HTTP server configuration file, for docker setup and in documentation sample, to fix this vulnerability. Community Edition users must change their Apache HTTP server configuration accordingly to be protected. The patch for Cloud Based Akeneo PIM Services customers has been applied since 30th October 2022. Users are advised to upgrade. Users unable to upgrade may Replace any reference to <FilesMatch \.php$> in their apache httpd configurations with: <Location "/index.php">.

References

  • github.com/advisories/GHSA-w9wc-4xcq-8gr6
  • github.com/akeneo/pim-community-dev/blob/b4d79bb073c8b68ea26ab227c97cc78d86c4cba1/docker/httpd.conf
  • github.com/akeneo/pim-community-dev/commit/891a2f70a9a200f199de06fe64d376d03787a81a
  • github.com/akeneo/pim-community-dev/security/advisories/GHSA-w9wc-4xcq-8gr6

Code Behaviors & Features

Detect and mitigate CVE-2022-46157 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.0.119, all versions starting from 6.0.0 before 6.0.53

Fixed versions

  • 5.0.119
  • 6.0.53

Solution

Upgrade to versions 5.0.119, 6.0.53 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/akeneo/pim-community-dev/CVE-2022-46157.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:02 +0000.