CVE-2022-31631

EUVD-2022-54225
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.
Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
9.1 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
phpCNA
9.1 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Base Score
CVSS 3.x
EPSS Score
Percentile: 71%
Affected Products (NVD)
VendorProductVersion
phpphp
8.0.0 ≤
𝑥
< 8.0.27
phpphp
8.1.0 ≤
𝑥
< 8.1.15
phpphp
8.2.0 ≤
𝑥
< 8.2.2
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
php7.4
bullseye
7.4.33-1+deb11u5
fixed
bullseye (security)
7.4.33-1+deb11u6
fixed
php8.2
bookworm
8.2.20-1~deb12u1
fixed
bookworm (security)
8.2.24-1~deb12u1
fixed
sid
8.2.24-1
fixed
trixie
8.2.24-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
php5
bionic
dne
focal
dne
jammy
dne
kinetic
dne
trusty
needed
xenial
dne
php7.0
bionic
dne
focal
dne
jammy
dne
kinetic
dne
trusty
dne
xenial
Fixed 7.0.33-0ubuntu0.16.04.16+esm5
released
php7.2
bionic
Fixed 7.2.24-0ubuntu0.18.04.16
released
focal
dne
jammy
dne
kinetic
dne
trusty
dne
xenial
dne
php7.4
bionic
dne
focal
Fixed 7.4.3-4ubuntu2.17
released
jammy
dne
kinetic
dne
trusty
dne
xenial
dne
php8.1
bionic
dne
focal
dne
jammy
Fixed 8.1.2-1ubuntu2.10
released
kinetic
Fixed 8.1.7-1ubuntu3.2
released
lunar
Fixed 8.1.12-1ubuntu3
released
mantic
dne
noble
dne
trusty
dne
xenial
dne