CVE-2022-46157 Remote php code execution in Akeneo PIM

High 8.8 Published Updated

Authenticated attackers can execute arbitrary PHP code by uploading crafted images, requiring Apache configuration changes for mitigation.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-46157?

CVE-2022-46157 is a high-severity vulnerability in akeneo pim-community-dev, published on 9 Dec 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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">`.

Weakness: CWE-94

Which versions are affected by CVE-2022-46157?

5 open source packages ship an affected version, including akeneo/pim-community-dev and akeneo. It affects 1 product.

PackageAffectedFixed in
akeneo/pim-community-dev PackagistAll versions5.0.119
akeneo/pim-community-dev PackagistAll versions5.0.119
akeneo/pim-community-dev PackagistFrom 6.0.06.0.53
akeneo/pim-community-dev PackagistFrom 6.0.06.0.53
akeneo BitnamiAll versions5.0.119, 6.0.53

Products include Akeneo Product Information Management.

How do I fix CVE-2022-46157?

Upgrade akeneo/pim-community-dev to a fixed version for your release line: 5.0.119 or 6.0.53.

Is CVE-2022-46157 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-46157 exists.

Sources

Also known as BIT-akeneo-2022-46157, GHSA-w9wc-4xcq-8gr6.

Is CVE-2022-46157 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free