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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.32% (percentile 71, 2026-11-26)
- **CWE:** CWE-94
- **Aliases:** BIT-akeneo-2022-46157, GHSA-w9wc-4xcq-8gr6
- **Published:** 2022-12-09T20:08:32.000Z
- **Modified:** 2026-06-17T05:11:19.533Z

## Who should check

- Projects that depend on Packagist package akeneo/pim-community-dev (\>= 6.0.0, \< 6.0.53)
- Anyone running akeneo pim-community-dev \>= 6.0.0, \< 6.0.53; \< 5.0.119

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

## Affected and fixed versions

- Packagist `akeneo/pim-community-dev`: affected \>= 6.0.0, \< 6.0.53; fixed 6.0.53, 5.0.119 (osv)
- akeneo pim-community-dev: \>= 6.0.0, \< 6.0.53; \< 5.0.119 (cvelist)

## Mitigation

- Upgrade akeneo/pim-community-dev to one of 6.0.53, 5.0.119 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-46157. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-46157.md
Affected: akeneo/pim-community-dev >= 6.0.0, < 6.0.53
Fixed in: 6.0.53, 5.0.119

Steps:
1. Search this machine and project for akeneo/pim-community-dev (Packagist), akeneo pim-community-dev: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-46157 being exploited?

There is no confirmed exploitation: CVE-2022-46157 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-46157?

High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2022-46157?

akeneo/pim-community-dev \>= 6.0.0, \< 6.0.53.

### Is there a fix for CVE-2022-46157?

Yes. Fixed in 6.0.53, 5.0.119. Upgrade akeneo/pim-community-dev to one of 6.0.53, 5.0.119 (or later in the same release line).

### How do I check if I'm affected by CVE-2022-46157?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/akeneo/pim-community-dev/security/advisories/GHSA-w9wc-4xcq-8gr6>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-46157>
- patch: <https://github.com/akeneo/pim-community-dev/commit/891a2f70a9a200f199de06fe64d376d03787a81a>
- exploit: <https://github.com/akeneo/pim-community-dev/blob/b4d79bb073c8b68ea26ab227c97cc78d86c4cba1/docker/httpd.conf#L39>
- other: <https://github.com/akeneo/pim-community-dev>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-46157>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-w9wc-4xcq-8gr6> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-46157> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-46157>
