CVEfocus › CVE database › CVE-2022-4900

CVE-2022-4900Potential buffer overflow in php_cli_server_startup_workers

CVSS 6.2 MediumEPSS 0.4% (higher than 31% of CVEs)Published 2023-11-02Updated 2025-11-03Assigner: redhat

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.

CWE-119

What to do

Fixed builds are available from AlmaLinux, Red Hat, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

72Fixed
30Fix pending
52Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04php8.3Not affected
vulnerable_code_not_present
Ubuntu 22.04php8.1Fixed8.1.2-1ubuntu2.17UBUNTU-CVE-2022-4900
Ubuntu 20.04php7.4Fixed7.4.3-4ubuntu2.22UBUNTU-CVE-2022-4900
Ubuntu 16.04php7.0Fix pending
Red Hat Enterprise Linux 9phpFix pending
Fix deferred
Red Hat Enterprise Linux 9php-bcmathFix pending
Fix deferred
Red Hat Enterprise Linux 9php-cliFix pending
Fix deferred
Red Hat Enterprise Linux 9php-commonFix pending
Fix deferred
Red Hat Enterprise Linux 9php-dbaFix pending
Fix deferred
Red Hat Enterprise Linux 9php-dbgFix pending
Fix deferred
Red Hat Enterprise Linux 9php-develFix pending
Fix deferred
Red Hat Enterprise Linux 9php-embeddedFix pending
Fix deferred
Red Hat Enterprise Linux 9php-enchantFix pending
Fix deferred
Red Hat Enterprise Linux 9php-ffiFix pending
Fix deferred
Red Hat Enterprise Linux 9php-fpmFix pending
Fix deferred
Red Hat Enterprise Linux 9php-gdFix pending
Fix deferred
Red Hat Enterprise Linux 9php-gmpFix pending
Fix deferred
Red Hat Enterprise Linux 9php-intlFix pending
Fix deferred
Red Hat Enterprise Linux 9php-ldapFix pending
Fix deferred
Red Hat Enterprise Linux 9php-mbstringFix pending
Fix deferred
Red Hat Enterprise Linux 9php-mysqlndFix pending
Fix deferred
Red Hat Enterprise Linux 9php-odbcFix pending
Fix deferred
Red Hat Enterprise Linux 9php-opcacheFix pending
Fix deferred
Red Hat Enterprise Linux 9php-pdoFix pending
Fix deferred
Red Hat Enterprise Linux 9php-pgsqlFix pending
Fix deferred
Red Hat Enterprise Linux 9php-processFix pending
Fix deferred
Red Hat Enterprise Linux 9php-snmpFix pending
Fix deferred
Red Hat Enterprise Linux 9php-soapFix pending
Fix deferred
Red Hat Enterprise Linux 9php-xmlFix pending
Fix deferred
Red Hat Enterprise Linux 8apcu-panelFixed
Fix deferred
0:5.1.20-1.module+el8.6.0+13671+84712317RHSA-2023:0848
Red Hat Enterprise Linux 8libzipFixed
Fix deferred
0:1.7.3-1.module+el8.6.0+13671+84712317RHSA-2023:0848
Red Hat Enterprise Linux 8libzip-develFixed
Fix deferred
0:1.7.3-1.module+el8.6.0+13671+84712317RHSA-2023:0848
Red Hat Enterprise Linux 8libzip-toolsFixed
Fix deferred
0:1.7.3-1.module+el8.6.0+13671+84712317RHSA-2023:0848
Red Hat Enterprise Linux 8phpFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-bcmathFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-cliFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-commonFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-dbaFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-dbgFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-develFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-embeddedFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-enchantFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-ffiFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-fpmFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-gdFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-gmpFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-intlFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-jsonFix pending
Fix deferred
Red Hat Enterprise Linux 8php-ldapFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-mbstringFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-mysqlndFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-odbcFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-opcacheFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-pdoFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-pearFixed
Fix deferred
1:1.10.13-1.module+el8.6.0+13671+84712317RHSA-2023:0848
Red Hat Enterprise Linux 8php-pecl-apcuFixed
Fix deferred
0:5.1.20-1.module+el8.6.0+13671+84712317RHSA-2023:0848
Red Hat Enterprise Linux 8php-pecl-apcu-develFixed
Fix deferred
0:5.1.20-1.module+el8.6.0+13671+84712317RHSA-2023:0848
Red Hat Enterprise Linux 8php-pecl-rrdFixed
Fix deferred
0:2.0.3-1.module+el8.6.0+13671+84712317RHSA-2023:0848
Red Hat Enterprise Linux 8php-pecl-xdebugFix pending
Fix deferred
Red Hat Enterprise Linux 8php-pecl-xdebug3Fixed
Fix deferred
0:3.1.2-1.module+el8.6.0+13671+84712317RHSA-2023:0848
Red Hat Enterprise Linux 8php-pecl-zipFixed
Fix deferred
0:1.19.2-1.module+el8.6.0+13671+84712317RHSA-2023:0848
Red Hat Enterprise Linux 8php-pgsqlFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-processFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-recodeFix pending
Fix deferred
Red Hat Enterprise Linux 8php-snmpFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-soapFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-xmlFixed
Fix deferred
0:8.0.27-1.module+el8.7.0+17863+0ad92cd2RHSA-2023:0848
Red Hat Enterprise Linux 8php-xmlrpcFix pending
Fix deferred
Red Hat Enterprise Linux 7phpWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-bcmathWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-cliWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-dbaWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-embeddedWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-enchantWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-fpmWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-gdWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-intlWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-ldapWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-mbstringWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-mysqlWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-mysqlndWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-odbcWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-pdoWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-pgsqlWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-processWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-pspellWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-recodeWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-snmpWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-soapWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-xmlWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-xmlrpcWill not fix
Out of support scope
Red Hat Enterprise Linux 6phpWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-bcmathWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-cliWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-dbaWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-embeddedWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-enchantWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-fpmWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-gdWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-imapWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-intlWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-ldapWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-mbstringWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-mysqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-odbcWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-pdoWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-pgsqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-processWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-pspellWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-recodeWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-snmpWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-soapWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-tidyWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-xmlWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-xmlrpcWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-ztsWill not fix
Out of support scope
AlmaLinux 8apcu-panelFixed5.1.20-1.module_el8.6.0+2739+efabdb8fALSA-2023:0848
AlmaLinux 8libzipFixed1.7.3-1.module_el8.6.0+3061+6878dd1bALSA-2023:0848
AlmaLinux 8libzip-develFixed1.7.3-1.module_el8.6.0+3061+6878dd1bALSA-2023:0848
AlmaLinux 8libzip-toolsFixed1.7.3-1.module_el8.6.0+3061+6878dd1bALSA-2023:0848
AlmaLinux 8phpFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-bcmathFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-cliFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-commonFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-dbaFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-dbgFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-develFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-embeddedFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-enchantFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-ffiFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-fpmFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-gdFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-gmpFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-intlFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-ldapFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-mbstringFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-mysqlndFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-odbcFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-opcacheFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-pdoFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-pearFixed1:1.10.13-1.module_el8.6.0+2739+efabdb8fALSA-2023:0848
AlmaLinux 8php-pecl-apcuFixed5.1.20-1.module_el8.6.0+3061+6878dd1bALSA-2023:0848
AlmaLinux 8php-pecl-apcu-develFixed5.1.20-1.module_el8.6.0+3061+6878dd1bALSA-2023:0848
AlmaLinux 8php-pecl-rrdFixed2.0.3-1.module_el8.6.0+3061+6878dd1bALSA-2023:0848
AlmaLinux 8php-pecl-xdebug3Fixed3.1.2-1.module_el8.6.0+3061+6878dd1bALSA-2023:0848
AlmaLinux 8php-pecl-zipFixed1.19.2-1.module_el8.6.0+3061+6878dd1bALSA-2023:0848
AlmaLinux 8php-pgsqlFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-processFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-snmpFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-soapFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux 8php-xmlFixed8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.