Description
In PHP versions 8.0.* before 8.0.27, 8.1.* before 8.1.15, 8.2.* before 8.2.2 when using PDO::quote() function to quote user-supplied data for SQLite, supplying an overly long string may cause the driver to incorrectly quote the data, which may further lead to SQL injection vulnerabilities.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| PHP Group | PHP | 8.0.x – < 8.0.27, 8.1.x – < 8.1.15, 8.2.x – < 8.2.2 | 8.0.27 |
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 12 | php8.2 | 8.2.1-1 | — |
| Debian 11 | php7.4 | 7.4.33-1+deb11u3 | DSA-5363-1 |
| Debian 10 | php7.3 | 7.3.31-1~deb10u3 | DLA-3345-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | php8.1 | 8.1.2-1ubuntu2.10 | USN-5818-1 |
| Ubuntu 20.04 LTS | php7.4 | 7.4.3-4ubuntu2.17 | USN-5818-1 |
| Ubuntu 18.04 LTS | php7.2 | 7.2.24-0ubuntu0.18.04.16 | USN-5818-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+esm5 | USN-5905-1 |
| Ubuntu Pro 14.04 LTS | php5 | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | apcu-panel +2 | 5.1.21-1.module+el9.1.0.z+15477+cb86791d | RHSA-2023:2417 |
| RHEL 9 | php +23 | 8.0.27-1.el9_1 | RHSA-2023:2417, RHSA-2023:0965 |
| RHEL 9 | php-pecl-rrd | 2.0.3-4.module+el9.1.0.z+15477+cb86791d | RHSA-2023:2417 |
| RHEL 9 | php-pecl-xdebug3 | 3.1.4-1.module+el9.1.0.z+15477+cb86791d | RHSA-2023:2417 |
| RHEL 9 | php-pecl-zip | 1.20.1-1.module+el9.1.0.z+15477+cb86791d | RHSA-2023:2417 |
| RHEL 8 | apcu-panel +2 | 5.1.18-1.module+el8.3.0+6678+b09f589e | RHSA-2023:2903, RHSA-2023:0848 |
| RHEL 8 | libzip +2 | 1.6.1-1.module+el8.3.0+6678+b09f589e | RHSA-2023:2903, RHSA-2023:0848 |
| RHEL 8 | php +25 | 7.4.33-1.module+el8.8.0+17865+ef7eddfa | RHSA-2023:2903, RHSA-2023:0848 |
| RHEL 8 | php-pear | 1:1.10.13-1.module+el8.6.0+13671+84712317 | RHSA-2023:2903, RHSA-2023:0848 |
| RHEL 8 | php-pecl-rrd | 2.0.1-1.module+el8.3.0+6678+b09f589e | RHSA-2023:2903, RHSA-2023:0848 |
| RHEL 8 | php-pecl-xdebug | 2.9.5-1.module+el8.3.0+6678+b09f589e | RHSA-2023:2903 |
| RHEL 8 | php-pecl-xdebug3 | 3.1.2-1.module+el8.6.0+13671+84712317 | RHSA-2023:0848 |
| RHEL 8 | php-pecl-zip | 1.18.2-1.module+el8.3.0+6678+b09f589e | RHSA-2023:2903, RHSA-2023:0848 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | apcu-panel +2 | 5.1.21-1.module_el9.1.0+15+94ba28e4 | ALSA-2023:2417 |
| AlmaLinux 9 | php +23 | 8.0.27-1.el9_1 | ALSA-2023:2417, ALSA-2023:0965 |
| AlmaLinux 9 | php-pecl-rrd | 2.0.3-4.module_el9.1.0+15+94ba28e4 | ALSA-2023:2417 |
| AlmaLinux 9 | php-pecl-xdebug3 | 3.1.4-1.module_el9.1.0+15+94ba28e4 | ALSA-2023:2417 |
| AlmaLinux 9 | php-pecl-zip | 1.20.1-1.module_el9.1.0+15+94ba28e4 | ALSA-2023:2417 |
| AlmaLinux 8 | apcu-panel +2 | 5.1.18-1.module_el8.6.0+2750+78feabcb | ALSA-2023:2903, ALSA-2023:0848 |
| AlmaLinux 8 | libzip +2 | 1.6.1-1.module_el8.6.0+2750+78feabcb | ALSA-2023:2903, ALSA-2023:0848 |
| AlmaLinux 8 | php +25 | 7.4.33-1.module_el8.8.0+3477+f828cbb0 | ALSA-2023:2903, ALSA-2023:0848 |
| AlmaLinux 8 | php-pear | 1:1.10.13-1.module_el8.6.0+2739+efabdb8f | ALSA-2023:2903, ALSA-2023:0848 |
| AlmaLinux 8 | php-pecl-rrd | 2.0.1-1.module_el8.6.0+2750+78feabcb | ALSA-2023:2903, ALSA-2023:0848 |
| AlmaLinux 8 | php-pecl-xdebug | 2.9.5-1.module_el8.6.0+2750+78feabcb | ALSA-2023:2903 |
| AlmaLinux 8 | php-pecl-xdebug3 | 3.1.2-1.module_el8.6.0+2739+efabdb8f | ALSA-2023:0848 |
| AlmaLinux 8 | php-pecl-zip | 1.18.2-1.module_el8.6.0+2750+78feabcb | ALSA-2023:2903, ALSA-2023:0848 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 9 | php | 8.0.27-1.el9_1 | RLSA-2023:0965 |
| Rocky Linux 9 | php-pecl-apcu | 5.1.21-1.module+el9.7.0+40003+454ed3c4 | RLSA-2023:2417 |
| Rocky Linux 9 | php-pecl-rrd | 2.0.3-4.module+el9.7.0+40003+454ed3c4 | RLSA-2023:2417 |
| Rocky Linux 9 | php-pecl-xdebug3 | 3.1.4-1.module+el9.7.0+40003+454ed3c4 | RLSA-2023:2417 |
| Rocky Linux 9 | php-pecl-zip | 1.20.1-1.module+el9.7.0+40003+454ed3c4 | RLSA-2023:2417 |
| Rocky Linux 8 | libzip | 1.6.1-1.module+el8.10.0+1604+6558efc7 | RLSA-2023:2903, RLSA-2023:0848 |
| Rocky Linux 8 | php | 7.4.33-1.module+el8.10.0+1604+6558efc7 | RLSA-2023:2903, RLSA-2023:0848 |
| Rocky Linux 8 | php-pear | 1:1.10.13-1.module+el8.7.0+1067+0a7071cc | RLSA-2023:2903, RLSA-2023:0848 |
| Rocky Linux 8 | php-pecl-apcu | 5.1.18-1.module+el8.10.0+1604+6558efc7 | RLSA-2023:2903, RLSA-2023:0848 |
| Rocky Linux 8 | php-pecl-rrd | 2.0.1-1.module+el8.4.0+414+2e7afcdd | RLSA-2023:2903, RLSA-2023:0848 |
| Rocky Linux 8 | php-pecl-xdebug | 2.9.5-1.module+el8.10.0+1604+6558efc7 | RLSA-2023:2903 |
| Rocky Linux 8 | php-pecl-xdebug3 | 3.1.2-1.module+el8.6.0+790+fc63e43f | RLSA-2023:0848 |
| Rocky Linux 8 | php-pecl-zip | 1.18.2-1.module+el8.10.0+1604+6558efc7 | RLSA-2023:2903, RLSA-2023:0848 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP4 | php7 +4 | 7.4.33-150400.4.16.1 | SUSE-SU-2023:0073-1 |
| SLES 15 SP4 | php8 +5 | 8.0.27-150400.4.23.1 | SUSE-SU-2023:0074-1 |
| SLES 15 SP3 | php7 | 7.4.33-150200.3.51.1 | SUSE-SU-2023:0476-1 |
| SLES 15 SP2 | php7 | 7.4.33-150200.3.51.1 | SUSE-SU-2023:0476-1 |
| SLES 15 SP1 | php7 | 7.2.34-150000.4.106.1 | SUSE-SU-2023:0084-1 |
| SLES 12 SP5 | php74 | 7.4.33-1.50.2 | SUSE-SU-2023:0072-1 |
Show 11 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 | php74 | 7.4.33-1.50.2 | SUSE-SU-2023:0072-1 |
| SLES for SAP 15 SP3 | php7 | 7.4.33-150200.3.51.1 | SUSE-SU-2023:0476-1 |
| SLES for SAP 15 SP2 | php7 | 7.4.33-150200.3.51.1 | SUSE-SU-2023:0476-1 |
| SLES for SAP 15 SP1 | php7 | 7.2.34-150000.4.106.1 | SUSE-SU-2023:0084-1 |
| SLE HPC 15 SP3 | php7 | 7.4.33-150200.3.51.1 | SUSE-SU-2023:0476-1 |
| SLE HPC 15 SP2 | php7 | 7.4.33-150200.3.51.1 | SUSE-SU-2023:0476-1 |
| SLE HPC 15 SP1 | php7 | 7.2.34-150000.4.106.1 | SUSE-SU-2023:0084-1 |
| SUSE Manager Server 4.2 | php7 | 7.4.33-150200.3.51.1 | SUSE-SU-2023:0476-1 |
| SUSE Enterprise Storage 7.1 | php7 | 7.4.33-150200.3.51.1 | SUSE-SU-2023:0476-1 |
| SUSE Enterprise Storage 7 | php7 | 7.4.33-150200.3.51.1 | SUSE-SU-2023:0476-1 |
| SUSE Enterprise Storage 6 | php7 | 7.2.34-150000.4.106.1 | SUSE-SU-2023:0084-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | php8 | 8.1.14-1.1 | openSUSE-SU-2024:12601-1 |
| openSUSE Leap 15.4 | php7 | 7.2.34-150000.4.106.1 | SUSE-SU-2023:0476-1, SUSE-SU-2023:0084-1, SUSE-SU-2023:0073-1 |
| openSUSE Leap 15.4 | php7-fpm +4 | 7.4.33-150400.4.16.1 | SUSE-SU-2023:0073-1 |
| openSUSE Leap 15.4 | php8 +5 | 8.0.27-150400.4.23.1 | SUSE-SU-2023:0074-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.22 | php82 | 8.2.1-r0 | — |
| Alpine v3.21 | php82 | 8.2.1-r0 | — |
| Alpine v3.20 | php82 | 8.2.1-r0 | — |
| Alpine v3.19 | php81 | 8.1.14-r0 | — |
| Alpine v3.19 | php82 | 8.2.1-r0 | — |
| Alpine v3.18 | php81 | 8.1.14-r0 | — |
| Alpine v3.18 | php82 | 8.2.1-r0 | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.17 | php81 | 8.1.14-r0 | — |
| Alpine v3.16 | php8 | 8.0.27-r0 | — |
| Alpine v3.16 | php81 | 8.1.14-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | php8.1 +23 | 8.1.14-1.amzn2023.0.2 | ALAS2023-2023-081 |
| Amazon Linux 2 | php +23 | 5.4.16-46.amzn2.0.6 | ALAS2-2025-2832 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | apcu-panel +2 | 5.1.21-1.module+el9.1.0+20776+c1b960c0 | ELSA-2023-2417 |
| Oracle Linux 9 | php +23 | 8.0.27-1.el9_1 | ELSA-2023-2417, ELSA-2023-0965 |
| Oracle Linux 9 | php-pecl-rrd | 2.0.3-4.module+el9.1.0+20776+c1b960c0 | ELSA-2023-2417 |
| Oracle Linux 9 | php-pecl-xdebug3 | 3.1.4-1.module+el9.1.0+20776+c1b960c0 | ELSA-2023-2417 |
| Oracle Linux 9 | php-pecl-zip | 1.20.1-1.module+el9.1.0+20776+c1b960c0 | ELSA-2023-2417 |
| Oracle Linux 8 | apcu-panel +2 | 5.1.18-1.module+el8.3.0+7685+72d70b58 | ELSA-2023-2903, ELSA-2023-0848 |
| Oracle Linux 8 | libzip +2 | 1.6.1-1.module+el8.3.0+7685+72d70b58 | ELSA-2023-2903, ELSA-2023-0848 |
| Oracle Linux 8 | php +25 | 7.4.33-1.module+el8.8.0+20974+ef7eddfa | ELSA-2023-2903, ELSA-2023-0848 |
| Oracle Linux 8 | php-pear | 1:1.10.13-1.module+el8.6.0+20568+84712317 | ELSA-2023-2903, ELSA-2023-0848 |
| Oracle Linux 8 | php-pecl-rrd | 2.0.1-1.module+el8.3.0+7685+72d70b58 | ELSA-2023-2903, ELSA-2023-0848 |
| Oracle Linux 8 | php-pecl-xdebug | 2.9.5-1.module+el8.3.0+7685+72d70b58 | ELSA-2023-2903 |
| Oracle Linux 8 | php-pecl-xdebug3 | 3.1.2-1.module+el8.6.0+20568+84712317 | ELSA-2023-0848 |
| Oracle Linux 8 | php-pecl-zip | 1.18.2-1.module+el8.3.0+7685+72d70b58 | ELSA-2023-2903, ELSA-2023-0848 |
Advisories 29
- RHSA-2023:0848 Red Hat Security Advisory: php:8.0 security update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- ALSA-2023:0848 Moderate: php:8.0 security update AlmaLinux Security Advisories · Nov 5, 2026
- ALSA-2023:2903 Moderate: php:7.4 security update AlmaLinux Security Advisories · Nov 5, 2026
- ALSA-2023:0965 Moderate: php security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2023:2417 Moderate: php:8.1 security update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2023-0035 PHP: Schwachstelle ermöglicht Umgehen von Sicherheitsvorkehrungen BSI CERT-Bund (WID) · Oct 21, 2026
- RHSA-2023:2903 Red Hat Security Advisory: php:7.4 security update Red Hat Security Advisories (RHSA) · Jun 27, 2026
- RHSA-2023:2417 Red Hat Security Advisory: php:8.1 security update Red Hat Security Advisories (RHSA) · Jun 27, 2026
- RHSA-2023:0965 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 27, 2026
- USN-5905-1 php7.0 vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- USN-5818-1 php7.2, php7.4, php8.1 vulnerability Ubuntu Security Notices (USN) · Apr 27, 2026
- DSA-5363-1 php7.4 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3345-1 php7.3 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2023:0965 Moderate: php security update Rocky Linux Security Advisories · Feb 5, 2026
- RLSA-2023:0848 Moderate: php:8.0 security update Rocky Linux Security Advisories · Feb 4, 2026
- SUSE-SU-2023:0084-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:12601-1 php8-8.1.14-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:0476-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:0073-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:0072-1 Security update for php74 SUSE / openSUSE Security Updates · Feb 4, 2026
- ALAS2-2025-2832 Important: php security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Dec 30, 2025
- RLSA-2023:2903 Moderate: php:7.4 security update Rocky Linux Security Advisories · Dec 27, 2025
- RLSA-2023:2417 Moderate: php:8.1 security update Rocky Linux Security Advisories · Dec 27, 2025
- SUSE-SU-2023:0074-1 Security update for php8 SUSE / openSUSE Security Updates · May 2, 2025
- ELSA-2023-2903 Moderate: php:7.4 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · May 24, 2023
- ELSA-2023-2417 Moderate: 8.1 security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · May 15, 2023
- ELSA-2023-0965 Moderate: php security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Feb 28, 2023
- ALAS2023-2023-081 Important: php8.1 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Feb 22, 2023
- ELSA-2023-0848 Moderate: php:8.0 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Feb 22, 2023