# CVE-2022-4900: Potential buffer overflow in php_cli_server_startup_workers

- Severity: Medium 6.2 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-02)
- Published: 2023-11-02T15:01:28.590Z
- Modified: 2026-09-08T08:48:18.320Z
- Also known as: BIT-LIBPHP-2022-4900, BIT-PHP-2022-4900, BIT-PHP-MIN-2022-4900
- Weaknesses: CWE-119, CWE-787
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- php: no versions given (not affected: 8.0.22)
- php:7.4/php: no versions given
- php:8.0/php: no versions given
- php:8.1/php: no versions given
- rh-php73-php: no versions given
- php php: before 8.0.22
- redhat software_collections: no versions given
- redhat enterprise_linux: 6.0; 7.0; 8.0; 9.0
- libphp (Bitnami): from 7.4.0 before 8.0.22
- php (Bitnami): from 7.4.0 before 8.0.22
- php-min (Bitnami): from 7.4.0 before 8.0.22

## Every score

- redhat: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://access.redhat.com/security/cve/CVE-2022-4900> (advisory, vdb-entry, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2179880> (issue-tracking, report)
- <https://security.netapp.com/advisory/ntap-20231130-0008/> (advisory, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00011.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-4900> (web)
- <https://github.com/php/php-src/commit/789a37f14405e2d1a05a76c9fb4ed2d49d4580d5> (web)
- <https://github.com/php/php-src/commit/82effb3fc7bcab0efcc343b3e03355f5f2f663c9> (web)

## Sources

- CVE List: [CVE-2022-4900](https://www.cve.org/CVERecord?id=CVE-2022-4900), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2022-4900](https://nvd.nist.gov/vuln/detail/CVE-2022-4900), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPHP-2022-4900](https://osv.dev/vulnerability/BIT-LIBPHP-2022-4900), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-2022-4900](https://osv.dev/vulnerability/BIT-PHP-2022-4900), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2022-4900](https://osv.dev/vulnerability/BIT-PHP-MIN-2022-4900), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-4900 · Whole record: https://cve.day/CVE-2022-4900.json · Rebuilt by cve.day 2026-11-25T22:58:19.660Z
