PHP up to 7.9 Environment Variable php_cli_server.c php_cli_server_startup_workers PHP_CLI_SERVER_WORKERS heap-based overflow
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.2 | $0-$5k | 0.00 |
Summary
A vulnerability was found in PHP. It has been classified as critical. This impacts the function php_cli_server_startup_workers of the file sapi/cli/php_cli_server.c of the component Environment Variable Handler. The manipulation of the argument PHP_CLI_SERVER_WORKERS leads to heap-based overflow.
This vulnerability is referenced as CVE-2022-4900. The attack can only be performed from a local environment. No exploit is available.
Upgrading the affected component is recommended.
Details
A vulnerability, which was classified as problematic, has been found in PHP (Programming Language Software). This issue affects the function php_cli_server_startup_workers of the file sapi/cli/php_cli_server.c of the component Environment Variable Handler. The manipulation of the argument PHP_CLI_SERVER_WORKERS with an unknown input leads to a heap-based overflow vulnerability. Using CWE to declare the problem leads to CWE-122. A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc(). Impacted is confidentiality, integrity, and availability. The summary by CVE is:
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.
The weakness was published 04/22/2023. The advisory is shared at github.com. The identification of this vulnerability is CVE-2022-4900 since 01/31/2023. It demands that the victim is doing some kind of user interaction. Technical details are known, but no exploit is available.
The vulnerability scanner Nessus provides a plugin with the ID 208984 (Debian dla-3920 : libapache2-mod-php7.4 - security update), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 8.0 eliminates this vulnerability. Applying the patch 789a37f14405e2d1a05a76c9fb4ed2d49d4580d5 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the vulnerability database at Tenable (208984). Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Product
Type
Name
Version
- 0.0.1
- 0.1
- 0.1.1
- 0.1.9.1
- 0.1.9.1b
- 0.1.9.2
- 0.1a
- 0.2
- 0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5
- 5.2.6
- 5.2.7
- 5.2.8
- 5.2.9
- 5.2.10
- 5.2.11
- 5.2.12
- 5.2.13
- 5.2.14
- 5.2.15
- 5.2.16
- 5.2.17
- 5.2a
- 5.3
- 5.3.0
- 5.3.1
- 5.3.2
- 5.3.3
- 5.3.4
- 5.3.5
- 5.3.6
- 5.3.7
- 5.3.8
- 5.3.9
- 5.3.10
- 5.3.11
- 5.3.12
- 5.3.12 [first official Patch not working!]
- 5.3.13
- 5.3.14
- 5.3.15
- 5.3.16
- 5.3.17
- 5.3.18
- 5.3.19
- 5.3.20
- 5.3.21
- 5.3.22
- 5.3.23
- 5.3.24
- 5.3.25
- 5.3.26
- 5.3.27
- 5.3.29
- 5.4
- 5.4.0
- 5.4.1
- 5.4.2
- 5.4.3
- 5.4.4
- 5.4.5
- 5.4.6
- 5.4.7
- 5.4.8
- 5.4.9
- 5.4.10
- 5.4.11
- 5.4.12
- 5.4.13
- 5.4.14
- 5.4.15
- 5.4.16
- 5.4.16 RC1
- 5.4.17
- 5.4.27
- 5.4.28
- 5.4.29
- 5.4.30
- 5.4.32
- 5.4.34
- 5.4.35
- 5.4.37
- 5.4.38
- 5.4.39
- 5.4.40
- 5.4.41
- 5.4.42
- 5.4.43
- 5.4.44
- 5.4.45
- 5.5
- 5.5.0
- 5.5.0 RC2
- 5.5.1
- 5.5.2
- 5.5.3
- 5.5.4
- 5.5.5
- 5.5.6
- 5.5.7
- 5.5.8
- 5.5.9
- 5.5.10
- 5.5.11
- 5.5.12
- 5.5.13
- 5.5.14
- 5.5.15
- 5.5.16
- 5.5.17
- 5.5.18
- 5.5.19
- 5.5.20
- 5.5.21
- 5.5.22
- 5.5.23
- 5.5.24
- 5.5.25
- 5.5.26
- 5.5.27
- 5.5.28
- 5.5.29
- 5.5.31
- 5.5.32
- 5.5.35
- 5.5.36
- 5.5.37
- 5.5.38
- 5.6
- 5.6.0
- 5.6.0 RC2
- 5.6.1
- 5.6.2
- 5.6.3
- 5.6.4
- 5.6.5
- 5.6.6
- 5.6.7
- 5.6.8
- 5.6.9
- 5.6.10
- 5.6.11
- 5.6.12
- 5.6.13
- 5.6.15.6.2
- 5.6.16
- 5.6.17
- 5.6.18
- 5.6.19
- 5.6.20
- 5.6.21
- 5.6.22
- 5.6.23
- 5.6.24
- 5.6.25
- 5.6.26
- 5.6.27
- 5.6.28
- 5.6.29
- 5.6.30
- 5.6.31
- 5.6.32
- 5.6.33
- 5.6.35
- 5.6.36
- 5.6.37
- 5.6.38
- 5.6.39
- 5.6.40
- 5.7
- 5.24
- 6.0
- 6.0.0
- 6.0.5
- 6.0.105
- 6.0.204
- 6.00.106
- 6.00.109
- 6.00.110
- 6.00.304
- 6.00.306
- 6.00.307
- 6.01.3
- 6.01.9
- 6.01.10
- 6.01.14
- 6.01.15
- 6.01.17
- 6.04
- 6.05
- 6.3.25
- 6.5
- 6.5 Beta1
- 6.5 Final
- 6.5 Rc1
- 6.5 Rc2
- 6.5 Rc3
- 6.6
- 6.7
- 6.8
- 6.9
- 6.18
- 7
- 7.0
- 7.0 Final
- 7.0.0
- 7.0.06
- 7.0.1
- 7.0.2
- 7.0.3
- 7.0.4
- 7.0.5
- 7.0.6
- 7.0.7
- 7.0.8
- 7.0.9
- 7.0.10
- 7.0.11
- 7.0.12
- 7.0.13
- 7.0.14
- 7.0.15
- 7.0.16
- 7.0.17
- 7.0.20
- 7.0.21
- 7.0.24
- 7.0.25
- 7.0.26
- 7.0.27
- 7.0.28
- 7.0.29
- 7.0.30
- 7.0.31
- 7.0.32
- 7.0.33
- 7.00.1
- 7.00.3
- 7.02.01
- 7.02.02
- 7.02.03
- 7.02.04
- 7.02.05
- 7.02.07
- 7.1
- 7.1.0
- 7.1.1
- 7.1.2
- 7.1.3
- 7.1.5
- 7.1.6
- 7.1.7
- 7.1.8
- 7.1.10
- 7.1.11
- 7.1.12
- 7.1.13
- 7.1.14
- 7.1.15
- 7.1.16
- 7.1.17
- 7.1.19
- 7.1.20
- 7.1.21
- 7.1.22
- 7.1.24
- 7.1.25
- 7.1.26
- 7.1.27
- 7.1.29
- 7.1.31
- 7.1.33
- 7.2
- 7.2.0
- 7.2.1
- 7.2.2
- 7.2.3
- 7.2.4
- 7.2.5
- 7.2.6
- 7.2.7
- 7.2.8
- 7.2.9
- 7.2.10
- 7.2.12
- 7.2.13
- 7.2.14
- 7.2.15
- 7.2.16
- 7.2.17
- 7.2.18
- 7.2.20
- 7.2.21
- 7.2.26
- 7.2.27
- 7.2.28
- 7.2.30
- 7.2.31
- 7.2.34
- 7.3
- 7.3.0
- 7.3.1
- 7.3.2
- 7.3.3
- 7.3.4
- 7.3.5
- 7.3.7
- 7.3.8
- 7.3.12
- 7.3.13
- 7.3.14
- 7.3.15
- 7.3.16
- 7.3.17
- 7.3.18
- 7.3.21
- 7.3.22
- 7.3.23
- 7.3.26
- 7.3.27
- 7.3.29
- 7.3.31
- 7.3.33
- 7.4
- 7.4.0
- 7.4.1
- 7.4.2
- 7.4.3
- 7.4.4
- 7.4.5
- 7.4.6
- 7.4.8
- 7.4.9
- 7.4.10
- 7.4.11
- 7.4.13
- 7.4.14
- 7.4.15
- 7.4.20
- 7.4.21
- 7.4.23
- 7.4.24
- 7.4.25
- 7.4.26
- 7.4.28
- 7.4.30
- 7.4.31
- 7.4.33
- 7.5
- 7.6
- 7.6.b.5
- 7.7
- 7.8
- 7.8 Patched 3.2
- 7.9
License
Website
- Product: https://www.php.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.2VulDB Meta Temp Score: 5.2
VulDB Base Score: 4.0
VulDB Temp Score: 3.8
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 5.5
NVD Vector: 🔍
CNA Base Score: 6.2
CNA Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Heap-based overflowCWE: CWE-122 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍
Physical: Partially
Local: Yes
Remote: Partially
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 208984
Nessus Name: Debian dla-3920 : libapache2-mod-php7.4 - security update
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: PHP 8.0
Patch: 789a37f14405e2d1a05a76c9fb4ed2d49d4580d5
Timeline
01/31/2023 🔍04/22/2023 🔍
04/22/2023 🔍
04/27/2025 🔍
Sources
Product: php.orgAdvisory: github.com
Status: Confirmed
CVE: CVE-2022-4900 (🔍)
GCVE (CVE): GCVE-0-2022-4900
GCVE (VulDB): GCVE-100-227225
Entry
Created: 04/22/2023 17:44Updated: 04/27/2025 04:00
Changes: 04/22/2023 17:44 (43), 10/15/2024 06:56 (18), 11/19/2024 22:44 (22), 04/27/2025 04:00 (3)
Complete: 🔍
Cache ID: 216::103
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
No comments yet. Languages: en.
Please log in to comment.