CVE-2022-4900: Potential buffer overflow in php_cli_server_startup_workers

Published Mar 20, 2023
·
Updated

A vulnerability was found in PHP where setting the environment variable PHPCLISERVERWORKERS to a large value leads to a heap buffer overflow.

Other sources

A vulnerability was found in PHP, where by setting the environment variable PHPCLISERVERWORKERS to a large value leads to a heap buffer overflow.

References: https://github.com/php/php-src/issues/8989

Red Hat

Affected Software

25 affected componentsFixes available
redhat/php<8.0.22
8.0.22
ubuntu/php7.4<7.4.3-4ubuntu2.22
7.4.3-4ubuntu2.22
ubuntu/php8.1<8.1.2-1ubuntu2.17
8.1.2-1ubuntu2.17
debian/php7.4<=7.4.33-1+deb11u5
debian/php8.2
8.2.20-1~deb12u18.2.23-1
All of the following
PHP PHP
redhat Software Collections
All of the following
PHP PHP=8.1.0
redhat Linux=9.0
All of the following
PHP PHP=8.0.0
redhat Linux=8.0
All of the following
PHP PHP=7.4.0
redhat Linux=8.0
All of the following
PHP PHP
redhat Linux=6.0
All of the following
PHP PHP
redhat Linux=7.0
All of the following
PHP PHP
redhat Linux=9.0
PHP PHP<8.0.22
redhat Software Collections
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0

Event History

Nov 2, 2023
CVE Published
via Ubuntu·12:00 AM
CVE Published
via MITRE·03:01 PM
Data Sourced
via MITRE·03:01 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeaknessAffected Software
Apr 29, 2024
Data Sourced
via Launchpad·05:51 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the vulnerability ID for this vulnerability?

The vulnerability ID for this vulnerability is CVE-2022-4900.

2

What is the severity of CVE-2022-4900?

The severity of CVE-2022-4900 is medium with a CVSS score of 6.2.

3

How does the vulnerability in PHP occur?

The vulnerability in PHP occurs when the environment variable PHP_CLI_SERVER_WORKERS is set to a large value, leading to a heap buffer overflow.

4

Which versions of PHP are affected by CVE-2022-4900?

PHP versions up to and excluding 8.0.22 are affected by CVE-2022-4900.

5

Where can I find more information about CVE-2022-4900?

You can find more information about CVE-2022-4900 at the following references: [https://access.redhat.com/security/cve/CVE-2022-4900](https://access.redhat.com/security/cve/CVE-2022-4900), [https://bugzilla.redhat.com/show_bug.cgi?id=2179880](https://bugzilla.redhat.com/show_bug.cgi?id=2179880), [https://github.com/php/php-src/issues/8989](https://github.com/php/php-src/issues/8989).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203