CVE-2022-31626php Buffer Overflow
php7.3 - security update
Published Jun 16, 2022 · Updated Nov 3, 2026 · Also known as ALPINE-CVE-2022-31626, BIT-libphp-2022-31626, BIT-php-2022-31626, BIT-php-min-2022-31626, CLEANSTART-2024-EC92761, DEBIAN-CVE-2022-31626, ECHO-615f-247f-a22b, UBUNTU-CVE-2022-31626
Key Facts
Patch immediately- CVE-2022-31626 is a high-severity vulnerability (CVSS 8.8 v3.1) affecting php (arch), php7 (alpine), php81 (alpine) and 22 more products.
- It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
- EPSS estimates a 58% probability of exploitation in the next 30 days.
- Fixed versions are available, including apache2-mod_php7 7.2.34-150000.4.103.1, apache2-mod_php7 7.2.5-150000.4.95.1, apache2-mod_php7 7.4.25-150400.4.8.1.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Scores
CVSS v3.1
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
58%
Higher than 99.1% of all scored CVEs
Exploit maturity
None known
ATLAS score
30/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
None known
Public exploit code
0
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2022-31626
- advisoryhttps://security.alpinelinux.org/vuln/CVE-2022-31626
- advisoryhttps://security-tracker.debian.org/tracker/CVE-2022-31626
- advisoryhttps://ubuntu.com/security/CVE-2022-31626
- advisoryhttp://access.redhat.com/errata/RHSA-2022:5469
- advisoryhttp://access.redhat.com/errata/RHSA-2022:5470
Description
In PHP versions 7.4.x below 7.4.30, 8.0.x below 8.0.20, and 8.1.x below 8.1.7, when pdo_mysql extension with mysqlnd driver, if the third party is allowed to supply host to connect to and the password for the connection, password of excessive length can trigger a buffer overflow in PHP, which can lead to a remote code execution vulnerability.
Affected Products
1,789 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| phparch | >= 7.4.0 | 8.1.7-1 |
| php7alpine | See advisory | 7.4.32-r0 |
| php81alpine | See advisory | 8.1.7-r0 |
| php8alpine | See advisory | 8.0.24-r0 |
| libphpbitnami | >= 7.4.0 | 7.4.30 |
Patched Releases
apache2-mod_php7
7.2.34-150000.4.103.1, 7.2.5-150000.4.95.1, 7.4.25-150400.4.8.1, 7.4.33-150200.3.46.2, 7.4.33-150400.4.13.1, 7.4.6-150200.3.41.1
apache2-mod_php72
7.2.5-1.81.1
apache2-mod_php74
7.4.33-1.47.2, 7.4.6-1.42.1
apache2-mod_php8
8.0.10-150400.4.8.1
apcu-panel
5.1.18-1.module+el8.3.0+7685+72d70b58, 5.1.20-1.module+el8.6.0+20568+84712317
libapache2-mod-php7.0
7.0.33-0ubuntu0.16.04.17+tuxcare.els3
libphp
7.4.30, 8.0.20, 8.1.7
libphp7.0-embed
7.0.33-0ubuntu0.16.04.17+tuxcare.els3
libzip
1.6.1-1.module+el8.3.0+7685+72d70b58, 1.6.1-1.module+el8.6.0+789+2130c178, 1.7.3-1.module_el8.6.0+2739+efabdb8f, 1.7.3-1.module+el8.6.0+20568+84712317, 1.7.3-1.module+el8.6.0+790+fc63e43f
libzip-devel
1.6.1-1.module+el8.3.0+7685+72d70b58, 1.7.3-1.module+el8.6.0+20568+84712317
libzip-tools
1.6.1-1.module+el8.3.0+7685+72d70b58, 1.7.3-1.module+el8.6.0+20568+84712317
php
0:8.0.13-2.el9_0, 5.4.16-48.el7.tuxcare.els1, 7.2.10-20.oe1, 7.2.24-1.module_el8+2370+315044ad.tuxcare.els19, 7.4.19-1.module_el8.5.0+2068+cc873159.tuxcare.els4, 7.4.19-3.module+el8.6.0+20697+59319e67, 7.4.19-3.module+el8.6.0+990+389ef54a, 7.4.30, 7.4.6-4.module_el8.4.0+2069+2eb69d76.tuxcare.els5, 8.0.0-10.oe2203, 8.0.0-8.oe1, 8.0.13-2.el9_0, 8.0.13-3.module+el8.6.0+20694+4397942f, 8.0.13-3.module+el8.6.0+989+3fbff15c, 8.0.20, 8.0.20-3.mga8, 8.1.7, 8.1.7-1
php-7.2
7.2.34+e1
php:7.4
8060020220622080643.5caa48ff
php7
7.2.34-150000.4.103.1, 7.2.5-150000.4.95.1, 7.4.25-150400.4.8.1, 7.4.32-r0, 7.4.33-150200.3.46.2, 7.4.33-150400.4.13.1, 7.4.6-150200.3.41.1
php7-bcmath
7.2.34-150000.4.103.1, 7.2.5-150000.4.95.1, 7.4.25-150400.4.8.1, 7.4.33-150200.3.46.2, 7.4.33-150400.4.13.1, 7.4.6-150200.3.41.1
php7-bz2
7.2.34-150000.4.103.1, 7.2.5-150000.4.95.1, 7.4.25-150400.4.8.1, 7.4.33-150200.3.46.2, 7.4.33-150400.4.13.1, 7.4.6-150200.3.41.1
php7-calendar
7.2.34-150000.4.103.1, 7.2.5-150000.4.95.1, 7.4.25-150400.4.8.1, 7.4.33-150200.3.46.2, 7.4.33-150400.4.13.1, 7.4.6-150200.3.41.1
php7-cli
7.4.25-150400.4.8.1, 7.4.33-150400.4.13.1
php7-ctype
7.2.34-150000.4.103.1, 7.2.5-150000.4.95.1, 7.4.25-150400.4.8.1, 7.4.33-150200.3.46.2, 7.4.33-150400.4.13.1, 7.4.6-150200.3.41.1
php7-curl
7.2.34-150000.4.103.1, 7.2.5-150000.4.95.1, 7.4.25-150400.4.8.1, 7.4.33-150200.3.46.2, 7.4.33-150400.4.13.1, 7.4.6-150200.3.41.1
php7-dba
7.2.34-150000.4.103.1, 7.2.5-150000.4.95.1, 7.4.25-150400.4.8.1, 7.4.33-150200.3.46.2, 7.4.33-150400.4.13.1, 7.4.6-150200.3.41.1
php7-devel
7.2.34-150000.4.103.1, 7.2.5-150000.4.95.1, 7.4.25-150400.4.8.1, 7.4.33-150200.3.46.2, 7.4.33-150400.4.13.1, 7.4.6-150200.3.41.1
php7-dom
7.2.34-150000.4.103.1, 7.2.5-150000.4.95.1, 7.4.25-150400.4.8.1, 7.4.33-150200.3.46.2, 7.4.33-150400.4.13.1, 7.4.6-150200.3.41.1
php7-embed
7.4.25-150400.4.8.1, 7.4.33-150200.3.46.2, 7.4.33-150400.4.13.1, 7.4.6-150200.3.41.1
Timeline
Publicly disclosed
Jun 16, 2022
Last updated
Nov 3, 2026
Weakness Type
- CWE-120 Buffer Copy without Checking Size of Input
References
- advisorycve.org · CVERecord
- advisorysecurity.alpinelinux.org · CVE-2022-31626
- advisorysecurity-tracker.debian.org · CVE-2022-31626
- advisoryubuntu.com · CVE-2022-31626
- advisoryaccess.redhat.com · RHSA-2022:5469
FAQ
Common Questions.
In PHP versions 7.4.x below 7.4.30, 8.0.x below 8.0.20, and 8.1.x below 8.1.7, when pdo_mysql extension with mysqlnd driver, if the third party is allowed to supply host to connect to and the password for the connection, password of excessive length can trigger a buffer overflow in PHP, which can lead to a remote code…
Affected: php (arch) versions >= 7.4.0; php7 (alpine); php81 (alpine), among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including apache2-mod_php7 7.2.34-150000.4.103.1, apache2-mod_php7 7.2.5-150000.4.95.1, apache2-mod_php7 7.4.25-150400.4.8.1.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2022-31626 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo