{"answers":{"affected":"3 open source packages ship an affected version, including libphp, php and php-min. It affects 3 products.","exploited":"There is no known exploitation of CVE-2022-4900 in the wild and no public exploit code.","fix":"Upgrade libphp to 8.0.22 or later.","what":"CVE-2022-4900 is a medium-severity memory corruption vulnerability in Php Php, published on 2 Nov 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-4900 and fix it if it is affected.\n\nWhat it is: CVE-2022-4900 is a medium-severity memory corruption vulnerability in Php Php, published on 2 Nov 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-4900 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- libphp (Bitnami): affected from 7.4.0; fixed in 8.0.22\n- php (Bitnami): affected from 7.4.0; fixed in 8.0.22\n- php-min (Bitnami): affected from 7.4.0; fixed in 8.0.22\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-4900/ (Markdown: https://insights.sbomify.com/CVE-2022-4900/index.md)","id":"CVE-2022-4900","markdown":"https://insights.sbomify.com/CVE-2022-4900/index.md","name":"CVE-2022-4900","record":{"aliases":["BIT-libphp-2022-4900","BIT-php-2022-4900","BIT-php-min-2022-4900","DEBIAN-CVE-2022-4900","GHSA-95cc-jq89-8hvw","SUSE-SU-2023:1583-1","SUSE-SU-2023:1846-1","SUSE-SU-2023:1847-1","UBUNTU-CVE-2022-4900"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["denial_of_service","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"PHP CLI server","requires_auth":"none","summary":"Setting a large PHP_CLI_SERVER_WORKERS value causes a heap buffer overflow in the PHP CLI server, potentially allowing code execution or denial of service.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"php","vendor":"php"},{"product":"enterprise_linux","vendor":"redhat"},{"product":"software_collections","vendor":"redhat"}],"cvss":{"score":6.2,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"description":"A vulnerability was found in PHP where setting the environment variable PHP_CLI_SERVER_WORKERS to a large value leads to a heap buffer overflow.","ecosystems":["Bitnami","SUSE:Linux Enterprise Module for Legacy 15 SP4","SUSE:Linux Enterprise Module for Package Hub 15 SP4","SUSE:Linux Enterprise Module for Web and Scripting 12","SUSE:Linux Enterprise Software Development Kit 12 SP5","openSUSE:Leap 15.4"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Potential buffer overflow in php_cli_server_startup_workers","id":"CVE-2022-4900","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"php:php","products":["php:php","redhat:enterprise_linux","redhat:software_collections"],"type":"memory_corruption","year":"2022"},"n_packages":17,"n_references":3,"next":{"headline":"Cross-site scripting in Sophos Connect Client","id":"CVE-2022-4901"},"packages":[{"ecosystem":"Bitnami","fixed":["8.0.22"],"introduced":["7.4.0"],"last_affected":[],"package":"libphp","purl":"pkg:bitnami/libphp","source":"BIT-libphp-2022-4900"},{"ecosystem":"Bitnami","fixed":["8.0.22"],"introduced":["7.4.0"],"last_affected":[],"package":"php","purl":"pkg:bitnami/php","source":"BIT-php-2022-4900"},{"ecosystem":"Bitnami","fixed":["8.0.22"],"introduced":["7.4.0"],"last_affected":[],"package":"php-min","purl":"pkg:bitnami/php-min","source":"BIT-php-min-2022-4900"},{"ecosystem":"SUSE:Linux Enterprise Module for Legacy 15 SP4","fixed":["7.4.33-150400.4.22.1"],"introduced":["0"],"last_affected":[],"package":"apache2-mod_php7","purl":"pkg:rpm/suse/apache2-mod_php7\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Legacy%2015%20SP4","source":"SUSE-SU-2023:1846-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Legacy 15 SP4","fixed":["7.4.33-150400.4.22.1"],"introduced":["0"],"last_affected":[],"package":"php7","purl":"pkg:rpm/suse/php7\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Legacy%2015%20SP4","source":"SUSE-SU-2023:1846-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Legacy 15 SP4","fixed":["7.4.33-150400.4.22.1"],"introduced":["0"],"last_affected":[],"package":"php7-fastcgi","purl":"pkg:rpm/suse/php7-fastcgi\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Legacy%2015%20SP4","source":"SUSE-SU-2023:1846-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Legacy 15 SP4","fixed":["7.4.33-150400.4.22.1"],"introduced":["0"],"last_affected":[],"package":"php7-fpm","purl":"pkg:rpm/suse/php7-fpm\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Legacy%2015%20SP4","source":"SUSE-SU-2023:1846-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP4","fixed":["7.4.33-150400.4.22.1"],"introduced":["0"],"last_affected":[],"package":"php7-embed","purl":"pkg:rpm/suse/php7-embed\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP4","source":"SUSE-SU-2023:1846-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 12","fixed":["7.4.33-1.56.1"],"introduced":["0"],"last_affected":[],"package":"php74","purl":"pkg:rpm/suse/php74\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2012","source":"SUSE-SU-2023:1847-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","fixed":["7.4.33-1.56.1"],"introduced":["0"],"last_affected":[],"package":"php74","purl":"pkg:rpm/suse/php74\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5","source":"SUSE-SU-2023:1847-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["7.4.33-150400.4.22.1"],"introduced":["0"],"last_affected":[],"package":"apache2-mod_php7","purl":"pkg:rpm/opensuse/apache2-mod_php7\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:1846-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["7.4.33-150200.3.54.1"],"introduced":["0"],"last_affected":[],"package":"php7","purl":"pkg:rpm/opensuse/php7\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:1583-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["7.4.33-150400.4.22.1"],"introduced":["0"],"last_affected":[],"package":"php7","purl":"pkg:rpm/opensuse/php7\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:1846-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["7.4.33-150400.4.22.1"],"introduced":["0"],"last_affected":[],"package":"php7-embed","purl":"pkg:rpm/opensuse/php7-embed\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:1846-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["7.4.33-150400.4.22.1"],"introduced":["0"],"last_affected":[],"package":"php7-fastcgi","purl":"pkg:rpm/opensuse/php7-fastcgi\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:1846-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["7.4.33-150400.4.22.1"],"introduced":["0"],"last_affected":[],"package":"php7-fpm","purl":"pkg:rpm/opensuse/php7-fpm\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:1846-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["7.4.33-150400.4.22.2"],"introduced":["0"],"last_affected":[],"package":"php7-test","purl":"pkg:rpm/opensuse/php7-test\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:1846-1"}],"prev":{"headline":"zstd vulnerable to buffer overrun","id":"CVE-2022-4899"},"products":["Fedora","Red Hat Enterprise Linux 6","Red Hat Enterprise Linux 7","Red Hat Enterprise Linux 8","Red Hat Enterprise Linux 9","Red Hat Software Collections","php"],"published":"2023-11-02","related":[{"cvss_score":10,"headline":"Integer overflow in n/a","id":"CVE-2012-2688","kev_date_added":null,"published":"2012-07-20"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2012-2376","kev_date_added":null,"published":"2012-05-21"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2011-3268","kev_date_added":null,"published":"2011-08-25"},{"cvss_score":10,"headline":"Other in n/a","id":"CVE-2009-4143","kev_date_added":null,"published":"2009-12-21"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2008-5557","kev_date_added":null,"published":"2008-12-23"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2008-2050","kev_date_added":null,"published":"2008-05-05"},{"cvss_score":10,"headline":"Command injection in n/a","id":"CVE-2008-2051","kev_date_added":null,"published":"2008-05-05"}],"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":"SUSE","prefix":"SUSE"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2025-11-03","vendors":["Fedora","Red Hat","n/a"]},"summary":"Setting a large PHP_CLI_SERVER_WORKERS value causes a heap buffer overflow in the PHP CLI server, potentially allowing code execution or denial of service.","url":"https://insights.sbomify.com/CVE-2022-4900/"}