{"answers":{"affected":"5 open source packages ship an affected version, including akeneo/pim-community-dev and akeneo. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-46157 exists.","fix":"Upgrade akeneo/pim-community-dev to a fixed version for your release line: 5.0.119 or 6.0.53.","what":"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."},"fix_prompt":"Check this codebase for CVE-2022-46157 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-46157 exists.\n\nAffected packages and fixed versions:\n- akeneo/pim-community-dev (Packagist): affected all versions; fixed in 5.0.119\n- akeneo/pim-community-dev (Packagist): affected all versions; fixed in 5.0.119\n- akeneo/pim-community-dev (Packagist): affected from 6.0.0; fixed in 6.0.53\n- akeneo/pim-community-dev (Packagist): affected from 6.0.0; fixed in 6.0.53\n- akeneo (Bitnami): affected all versions; fixed in 5.0.119, 6.0.53\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-46157/ (Markdown: https://insights.sbomify.com/CVE-2022-46157/index.md)","id":"CVE-2022-46157","markdown":"https://insights.sbomify.com/CVE-2022-46157/index.md","name":"CVE-2022-46157","record":{"aliases":["BIT-akeneo-2022-46157","GHSA-w9wc-4xcq-8gr6"],"analysis":{"component_type":"web_application","fix_type":"configuration_change","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Akeneo PIM","requires_auth":"low_privilege","summary":"Authenticated attackers can execute arbitrary PHP code by uploading crafted images, requiring Apache configuration changes for mitigation.","user_interaction":"not_required","vuln_class":"file_upload"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"product_information_management","vendor":"akeneo"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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 `\u003cFilesMatch \\.php$\u003e` in their apache httpd configurations with: `\u003cLocation \"/index.php\"\u003e`.","ecosystems":["Bitnami","Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Remote php code execution in Akeneo PIM","id":"CVE-2022-46157","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"file_upload","year":"2022"},"n_packages":5,"n_references":2,"next":{"headline":"Potential Information exposure in the upload directory in PrestaShop","id":"CVE-2022-46158"},"packages":[{"ecosystem":"Bitnami","fixed":["5.0.119","6.0.53"],"introduced":["0","6.0.0"],"last_affected":[],"package":"akeneo","purl":"pkg:bitnami/akeneo","source":"BIT-akeneo-2022-46157"},{"ecosystem":"Packagist","fixed":["5.0.119"],"introduced":["0"],"last_affected":[],"package":"akeneo/pim-community-dev","purl":null,"source":"GHSA-w9wc-4xcq-8gr6"},{"ecosystem":"Packagist","fixed":["5.0.119"],"introduced":["0"],"last_affected":[],"package":"akeneo/pim-community-dev","purl":"pkg:composer/akeneo/pim-community-dev","source":"GHSA-w9wc-4xcq-8gr6"},{"ecosystem":"Packagist","fixed":["6.0.53"],"introduced":["6.0.0"],"last_affected":[],"package":"akeneo/pim-community-dev","purl":null,"source":"GHSA-w9wc-4xcq-8gr6"},{"ecosystem":"Packagist","fixed":["6.0.53"],"introduced":["6.0.0"],"last_affected":[],"package":"akeneo/pim-community-dev","purl":"pkg:composer/akeneo/pim-community-dev","source":"GHSA-w9wc-4xcq-8gr6"}],"prev":{"headline":"Grafana's default installation of `synthetic-monitoring-agent` exposes sensitive information","id":"CVE-2022-46156"},"products":["pim-community-dev"],"published":"2022-12-09","related":[{"cvss_score":9.8,"headline":"Akeneo PIM vulnerable to shell injection in the mass edition","id":"CVE-2017-1000009","kev_date_added":null,"published":"2017-07-13"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-22","vendors":["akeneo"]},"summary":"Authenticated attackers can execute arbitrary PHP code by uploading crafted images, requiring Apache configuration changes for mitigation.","url":"https://insights.sbomify.com/CVE-2022-46157/"}