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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| PHP Group | PHP | 7.4.X – < 7.4.30, 8.0.X – < 8.0.20, 8.1.X – < 8.1.7 | 7.4.30 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 11 | php7.4 | 7.4.30-1+deb11u1 | DSA-5179-1 |
| Debian 10 | php7.3 | 7.3.31-1~deb10u2 | DLA-3243-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | php8.1 | 8.1.2-1ubuntu2.1 | USN-5479-1 |
| Ubuntu 20.04 LTS | php7.4 | 7.4.3-4ubuntu2.12 | USN-5479-1 |
| Ubuntu 18.04 LTS | php7.2 | 7.2.24-0ubuntu0.18.04.12 | USN-5479-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | php7.0 | 7.0.33-0ubuntu0.16.04.16+esm4 | USN-5479-2 |
| Ubuntu Pro 14.04 LTS | php5 | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | php +23 | 8.0.13-2.el9_0 | RHSA-2022:5904 |
| RHEL 8 | apcu-panel +2 | 5.1.18-1.module+el8.3.0+6678+b09f589e | RHSA-2022:5468, RHSA-2022:5467 |
| RHEL 8 | libzip +2 | 1.6.1-1.module+el8.3.0+6678+b09f589e | RHSA-2022:5468, RHSA-2022:5467 |
| RHEL 8 | php +25 | 7.4.19-3.module+el8.6.0+15726+994cde98 | RHSA-2022:5468, RHSA-2022:5467 |
| RHEL 8 | php-pear | 1:1.10.12-1.module+el8.3.0+6678+b09f589e | RHSA-2022:5468, RHSA-2022:5467 |
| RHEL 8 | php-pecl-rrd | 2.0.1-1.module+el8.3.0+6678+b09f589e | RHSA-2022:5468, RHSA-2022:5467 |
| RHEL 8 | php-pecl-xdebug | 2.9.5-1.module+el8.3.0+6678+b09f589e | RHSA-2022:5467 |
| RHEL 8 | php-pecl-xdebug3 | 3.1.2-1.module+el8.6.0+13671+84712317 | RHSA-2022:5468 |
| RHEL 8 | php-pecl-zip | 1.18.2-1.module+el8.3.0+6678+b09f589e | RHSA-2022:5468, RHSA-2022:5467 |
| RHEL 3 | rh-php73-php +27 | 7.3.33-1.el7 | RHSA-2022:5491 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8.4 EUS | apcu-panel +2 | 5.1.18-1.module+el8.3.0+6678+b09f589e | RHSA-2022:5471 |
| RHEL 8.4 EUS | libzip +2 | 1.6.1-1.module+el8.3.0+6678+b09f589e | RHSA-2022:5471 |
| RHEL 8.4 EUS | php +25 | 7.4.6-5.module+el8.4.0+15727+276bb227 | RHSA-2022:5471 |
| RHEL 8.4 EUS | php-pear | 1:1.10.12-1.module+el8.3.0+6678+b09f589e | RHSA-2022:5471 |
| RHEL 8.4 EUS | php-pecl-rrd | 2.0.1-1.module+el8.3.0+6678+b09f589e | RHSA-2022:5471 |
| RHEL 8.4 EUS | php-pecl-xdebug | 2.9.5-1.module+el8.3.0+6678+b09f589e | RHSA-2022:5471 |
| RHEL 8.4 EUS | php-pecl-zip | 1.18.2-1.module+el8.3.0+6678+b09f589e | RHSA-2022:5471 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | php +23 | 8.0.13-2.el9_0 | ALSA-2022:5904 |
| AlmaLinux 8 | apcu-panel +2 | 5.1.20-1.module_el8.6.0+2739+efabdb8f | ALSA-2022:5468 |
| AlmaLinux 8 | libzip +2 | 1.7.3-1.module_el8.6.0+2739+efabdb8f | ALSA-2022:5468 |
| AlmaLinux 8 | php-pear | 1:1.10.13-1.module_el8.6.0+3268+b150a051 | ALSA-2022:5468 |
| AlmaLinux 8 | php-pecl-rrd | 2.0.3-1.module_el8.6.0+2739+efabdb8f | ALSA-2022:5468 |
| AlmaLinux 8 | php-pecl-xdebug3 | 3.1.2-1.module_el8.6.0+2739+efabdb8f | ALSA-2022:5468 |
| AlmaLinux 8 | php-pecl-zip | 1.19.2-1.module_el8.6.0+2739+efabdb8f | ALSA-2022:5468 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 9 | php | 8.0.13-2.el9_0 | RLSA-2022:5904 |
| Rocky Linux 8 | libzip | 1.6.1-1.module+el8.4.0+415+e936cba3 | RLSA-2022:5468, RLSA-2022:5467 |
| Rocky Linux 8 | php | 7.4.19-3.module+el8.6.0+990+389ef54a | RLSA-2022:5468, RLSA-2022:5467 |
| Rocky Linux 8 | php-pear | 1:1.10.12-1.module+el8.4.0+415+e936cba3 | RLSA-2022:5468, RLSA-2022:5467 |
| Rocky Linux 8 | php-pecl-apcu | 5.1.18-1.module+el8.4.0+415+e936cba3 | RLSA-2022:5468, RLSA-2022:5467 |
| Rocky Linux 8 | php-pecl-rrd | 2.0.1-1.module+el8.4.0+414+2e7afcdd | RLSA-2022:5468, RLSA-2022:5467 |
| Rocky Linux 8 | php-pecl-xdebug | 2.9.5-1.module+el8.4.0+415+e936cba3 | RLSA-2022:5467 |
| Rocky Linux 8 | php-pecl-xdebug3 | 3.1.2-1.module+el8.6.0+790+fc63e43f | RLSA-2022:5468 |
| Rocky Linux 8 | php-pecl-zip | 1.18.2-1.module+el8.4.0+415+e936cba3 | RLSA-2022:5468, RLSA-2022:5467 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP4 | php7 +4 | 7.4.25-150400.4.8.1 | SUSE-SU-2022:3997-1, SUSE-SU-2022:2292-1 |
| SLES 15 SP4 | php8 +5 | 8.0.10-150400.4.8.1 | SUSE-SU-2022:2303-1 |
| SLES 15 SP3 | php7 | 7.4.6-150200.3.41.1 | SUSE-SU-2022:4069-1, SUSE-SU-2022:2185-1 |
| SLES 15 SP2 | php7 | 7.4.6-150200.3.41.1 | SUSE-SU-2022:4069-1, SUSE-SU-2022:2185-1 |
| SLES 15 SP1 | php7 | 7.2.5-150000.4.95.1 | SUSE-SU-2022:4067-1, SUSE-SU-2022:2275-1 |
| SLES 15 | php7 | 7.2.5-150000.4.95.1 | SUSE-SU-2022:4067-1, SUSE-SU-2022:2275-1 |
Show 13 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | php72 | 7.2.5-1.81.1 | SUSE-SU-2022:2183-1 |
| SLES 12 SP5 | php74 | 7.4.6-1.42.1 | SUSE-SU-2022:4068-1, SUSE-SU-2022:2161-1 |
| SLES 12 | php72 | 7.2.5-1.81.1 | SUSE-SU-2022:2183-1 |
| SLES 12 | php74 | 7.4.6-1.42.1 | SUSE-SU-2022:4068-1, SUSE-SU-2022:2161-1 |
| SLES for SAP 15 SP2 | php7 | 7.4.6-150200.3.41.1 | SUSE-SU-2022:4069-1, SUSE-SU-2022:2185-1 |
| SLES for SAP 15 SP1 | php7 | 7.2.5-150000.4.95.1 | SUSE-SU-2022:4067-1, SUSE-SU-2022:2275-1 |
| SLES for SAP 15 | php7 | 7.2.5-150000.4.95.1 | SUSE-SU-2022:4067-1, SUSE-SU-2022:2275-1 |
| SLE HPC 15 SP2 | php7 | 7.4.6-150200.3.41.1 | SUSE-SU-2022:4069-1, SUSE-SU-2022:2185-1 |
| SLE HPC 15 SP1 | php7 | 7.2.5-150000.4.95.1 | SUSE-SU-2022:4067-1, SUSE-SU-2022:2275-1 |
| SLE HPC 15 | php7 | 7.2.5-150000.4.95.1 | SUSE-SU-2022:4067-1, SUSE-SU-2022:2275-1 |
| SUSE Manager Server 4.1 | php7 | 7.4.6-150200.3.41.1 | SUSE-SU-2022:4069-1, SUSE-SU-2022:2185-1 |
| SUSE Manager Retail Branch Server 4.1 | php7 | 7.4.6-150200.3.41.1 | SUSE-SU-2022:4069-1, SUSE-SU-2022:2185-1 |
| SUSE Manager Proxy 4.1 | php7 | 7.4.6-150200.3.41.1 | SUSE-SU-2022:4069-1, SUSE-SU-2022:2185-1 |
| SUSE Enterprise Storage 7 | php7 | 7.4.6-150200.3.41.1 | SUSE-SU-2022:4069-1, SUSE-SU-2022:2185-1 |
| SUSE Enterprise Storage 6 | php7 | 7.2.5-150000.4.95.1 | SUSE-SU-2022:4067-1, SUSE-SU-2022:2275-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | php8 | 8.2.10-3.1 | openSUSE-SU-2024:13267-1 |
| openSUSE Leap 15.4 | php7 | 7.2.5-150000.4.95.1 | SUSE-SU-2022:4069-1, SUSE-SU-2022:4067-1, SUSE-SU-2022:3997-1 |
| openSUSE Leap 15.4 | php7-fpm +4 | 7.4.25-150400.4.8.1 | SUSE-SU-2022:3997-1, SUSE-SU-2022:2292-1 |
| openSUSE Leap 15.4 | php8 +5 | 8.0.10-150400.4.8.1 | SUSE-SU-2022:2303-1 |
| openSUSE Leap 15.3 | php7 +1 | 7.4.6-150200.3.41.1 | SUSE-SU-2022:4069-1, SUSE-SU-2022:2185-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | php81 | 8.1.6-r2 | — |
| Alpine v3.18 | php81 | 8.1.6-r2 | — |
| Alpine v3.17 | php81 | 8.1.6-r2 | — |
| Alpine v3.16 | php8 | 8.0.24-r0 | — |
| Alpine v3.16 | php81 | 8.1.7-r0 | — |
| Alpine v3.15 | php7 | 7.4.32-r0 | — |
| Alpine v3.15 | php8 | 8.0.25-r0 | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.14 | php7 | 7.4.32-r0 | — |
| Alpine v3.14 | php8 | 8.0.24-r0 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | php +23 | 8.0.13-2.el9_0 | ELSA-2022-5904 |
| Oracle Linux 8 | apcu-panel +2 | 5.1.18-1.module+el8.3.0+7685+72d70b58 | ELSA-2022-5468, ELSA-2022-5467 |
| Oracle Linux 8 | libzip +2 | 1.6.1-1.module+el8.3.0+7685+72d70b58 | ELSA-2022-5468, ELSA-2022-5467 |
| Oracle Linux 8 | php +25 | 7.4.19-3.module+el8.6.0+20697+59319e67 | ELSA-2022-5468, ELSA-2022-5467 |
| Oracle Linux 8 | php-pear | 1:1.10.12-1.module+el8.3.0+7685+72d70b58 | ELSA-2022-5468, ELSA-2022-5467 |
| Oracle Linux 8 | php-pecl-rrd | 2.0.1-1.module+el8.3.0+7685+72d70b58 | ELSA-2022-5468, ELSA-2022-5467 |
| Oracle Linux 8 | php-pecl-xdebug | 2.9.5-1.module+el8.3.0+7685+72d70b58 | ELSA-2022-5467 |
| Oracle Linux 8 | php-pecl-xdebug3 | 3.1.2-1.module+el8.6.0+20568+84712317 | ELSA-2022-5468 |
| Oracle Linux 8 | php-pecl-zip | 1.18.2-1.module+el8.3.0+7685+72d70b58 | ELSA-2022-5468, ELSA-2022-5467 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
amitlttwo/CVE-2022-31626 ★ 6 · Dec 6, 2022
-
HORKimhab/CVE-2022-31626-CVE-2024-2961-CVE-2019-6977 ★ 0 · Aug 6, 2026
CVE-2022-31626, CVE-2024-2961, CVE-2019-6977, PHP security research
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 33
- ALSA-2022:5904 Important: php security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2022:5468 ALSA-2022:5468: php:8.0 security update (Important) AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2022-0255 PHP: Mehrere Schwachstellen ermöglichen Codeausführung BSI CERT-Bund (WID) · Oct 21, 2026
- RHSA-2022:5904 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2022:5491 Red Hat Security Advisory: rh-php73-php security and bug fix update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2022:5468 Red Hat Security Advisory: php:8.0 security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2022:5471 Red Hat Security Advisory: php:7.4 security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2022:5467 Red Hat Security Advisory: php:7.4 security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- USN-5479-2 php7.0 vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- USN-5479-1 php7.2, php7.4, php8.0, php8.1 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DSA-5179-1 php7.4 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3243-1 php7.3 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2022:5904 Important: php security update Rocky Linux Security Advisories · Feb 5, 2026
- RLSA-2022:5467 Important: php:7.4 security update Rocky Linux Security Advisories · Feb 5, 2026
- RLSA-2022:5468 Important: php:8.0 security update Rocky Linux Security Advisories · Feb 5, 2026
- SUSE-SU-2022:4067-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:2303-1 Security update for php8 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:2185-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:2161-1 Security update for php74 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:3997-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:2292-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:2275-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:4068-1 Security update for php74 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:13267-1 php8-8.2.10-3.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:4069-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- FSA-202302 Festo: Several vulnerabilities in FactoryViews CERT@VDE · Feb 2, 2026
- ICSA-26-027-02 Festo Didactic SE MES PC CISA ICS & IT advisories · Jan 27, 2026
- FSA-202402 Several Vulnerabilities in MES PC (Windows 10) CERT@VDE · Dec 8, 2025
- SUSE-SU-2022:2183-1 Security update for php72 SUSE / openSUSE Security Updates · May 2, 2025
- WID-SEC-2023-1737 Juniper Patchday Juli 2023 BSI CERT-Bund (WID) · Jul 12, 2023
- ELSA-2022-5904 Important: php security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Aug 4, 2022
- ELSA-2022-5468 Important: php:8.0 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Jul 4, 2022
- ELSA-2022-5467 Important: php:7.4 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Jul 4, 2022
References
- https://bugs.php.net/bug.php?id=81719
- FEDORA-2022-0a96e5b9b1 vendor-advisory
- FEDORA-2022-f3fc52428e vendor-advisory
- DSA-5179 vendor-advisory
- https://security.netapp.com/advisory/ntap-20220722-0005/
- GLSA-202209-20 vendor-advisory
- [debian-lts-announce] 20221215 [SECURITY] [DLA 3243-1] php7.3 security update mailing-list