CVE-2022-31631
published 2025-02-12CVE-2022-31631: 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…
PriorityP357critical9.1CVSS 3.1
AVNACLPRNUINSUCHIHAN
EPSS
2.17%
81.1th percentile
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
8 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | php7.4 | < php7.4 7.4.33-1+deb11u3 (bullseye) | php7.4 7.4.33-1+deb11u3 (bullseye) |
| debian | php8.2 | < php7.4 7.4.33-1+deb11u3 (bullseye) | php7.4 7.4.33-1+deb11u3 (bullseye) |
| php | php | >= 8.0.0 < 8.0.27 | 8.0.27 |
| php | php | >= 8.1.0 < 8.1.15 | 8.1.15 |
| php | php | >= 8.2.0 < 8.2.2 | 8.2.2 |
| php_group | php | >= 8.0.x < 8.0.27 | 8.0.27 |
| php_group | php | >= 8.1.x < 8.1.15 | 8.1.15 |
| php_group | php | >= 8.2.x < 8.2.2 | 8.2.2 |
CVSS provenance
nvdv3.19.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
osv9.1CRITICAL
vendor_debian9.1CRITICAL
vendor_redhat9.1CRITICAL
vendor_ubuntu2.3LOW
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
PHP vulnerabilities
vendor_ubuntu·2023-03-02·CVSS 2.3
CVE-2023-0568 [LOW] PHP vulnerabilities
Title: PHP vulnerabilities
Summary: Several security issues were fixed in PHP.
It was discovered that PHP incorrectly handled certain gzip files.
An attacker could possibly use this issue to cause a denial of service.
(CVE-2022-31628)
It was discovered that PHP incorrectly handled certain cookies.
An attacker could possibly use this issue to compromise data integrity.
(CVE-2022-31629)
It was discovered that PHP incorrectly handled certain inputs.
An attacker could possibly use this issue to cause a crash or
execute arbitrary code. (CVE-2022-31631)
It was discovered that PHP incorrectly handled resolving long paths. A
remote attacker could possibly use this issue to obtain or modify sensitive
information. (CVE-2023-0568)
It was discovered that PHP incorrectly handled a large number of
Ubuntu
PHP vulnerability
vendor_ubuntu·2023-01-23
CVE-2022-31631 PHP vulnerability
Title: PHP vulnerability
Summary: PHP could be made do crash or execute arbitrary code if it received
a specially crafted input.
It was discovered that PHP incorrectly handled certain inputs.
An attacker could possibly use this issue to cause a crash or
execute arbitrary code.
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
php: PDO:: quote() may return unquoted string due to an integer overflow
vendor_redhat·2023-01-05·CVSS 9.1
CVE-2022-31631 [CRITICAL] CWE-190 php: PDO:: quote() may return unquoted string due to an integer overflow
php: PDO:: quote() may return unquoted string due to an integer overflow
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.
A flaw was found in PHP. This issue occurs due to an uncaught integer overflow in PDO::quote() of PDO_SQLite returning an improperly quoted string. With the implementation of sqlite3_snprintf(), it is possible to force the function to return a single apostrophe if the function is called on user-supplied input without any length restrictions in place.
Package: php (Red Hat Enterprise Linux 6) - Out of support scope
Package: php (
Debian
CVE-2022-31631: php7.4 - In PHP versions 8.0.* before 8.0.27, 8.1.* before 8.1.15, 8.2.* before 8.2.2 whe...
vendor_debian·2022·CVSS 9.1
CVE-2022-31631 [CRITICAL] CVE-2022-31631: php7.4 - In PHP versions 8.0.* before 8.0.27, 8.1.* before 8.1.15, 8.2.* before 8.2.2 whe...
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.
Scope: local
bullseye: resolved (fixed in 7.4.33-1+deb11u3)
GHSA
GHSA-4qmr-c42j-3wg2: In PHP versions 8
ghsa_unreviewed·2025-02-13
CVE-2022-31631 [CRITICAL] CWE-74 GHSA-4qmr-c42j-3wg2: In PHP versions 8
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.
OSV
CVE-2022-31631: In PHP versions 8
osv·2025-02-12·CVSS 9.1
CVE-2022-31631 [CRITICAL] CVE-2022-31631: In PHP versions 8
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.
OSV
php7.0 vulnerabilities
osv·2023-03-02·CVSS 5.5
CVE-2022-31628 [MEDIUM] php7.0 vulnerabilities
php7.0 vulnerabilities
It was discovered that PHP incorrectly handled certain gzip files.
An attacker could possibly use this issue to cause a denial of service.
(CVE-2022-31628)
It was discovered that PHP incorrectly handled certain cookies.
An attacker could possibly use this issue to compromise data integrity.
(CVE-2022-31629)
It was discovered that PHP incorrectly handled certain inputs.
An attacker could possibly use this issue to cause a crash or
execute arbitrary code. (CVE-2022-31631)
It was discovered that PHP incorrectly handled resolving long paths. A
remote attacker could possibly use this issue to obtain or modify sensitive
information. (CVE-2023-0568)
It was discovered that PHP incorrectly handled a large number of field and file
parts in HTTP form uploads. A remote atta
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2025-02-12
Published