Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-31631

published critical CVSS 3.1 · 9.1

PDO::quote() may return unquoted string

Published
12 Feb 2025, 22:10:45 UTC
Updated
13 Feb 2025, 16:06:41 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
PHP Group — pdo_sqlitePHP · 8.0.x to < 8.0.27 · 8.1.x to < 8.1.15 · 8.2.x to < 8.2.2 · Other versions: affected Affected Not stated php
Amazon Linux AL2 Release evaluationALAS2-2025-2832 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2PHP8.0-2023-003 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2PHP8.1-2023-003 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2PHP8.2-2023-003 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2023-081 Fixed Not stated Amazon Linux assessment
AlmaLinux 8 apcu-panel Advisory build 5.1.18-1.module_el8.6.0+2750+78feabcb ALSA-2023:2903
AlmaLinux 8 apcu-panel Advisory build 5.1.20-1.module_el8.6.0+2739+efabdb8f ALSA-2023:0848
Show 98 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 8 libzip Advisory build 1.6.1-1.module_el8.6.0+2750+78feabcb ALSA-2023:2903
AlmaLinux 8 libzip Advisory build 1.6.1-1.module_el8.6.0+3239+bedf0508 ALSA-2023:2903
AlmaLinux 8 libzip Advisory build 1.7.3-1.module_el8.6.0+2739+efabdb8f ALSA-2023:0848
AlmaLinux 8 libzip Advisory build 1.7.3-1.module_el8.6.0+3061+6878dd1b ALSA-2023:0848
AlmaLinux 8 libzip-devel Advisory build 1.6.1-1.module_el8.6.0+2750+78feabcb ALSA-2023:2903
AlmaLinux 8 libzip-devel Advisory build 1.6.1-1.module_el8.6.0+3239+bedf0508 ALSA-2023:2903
AlmaLinux 8 libzip-devel Advisory build 1.7.3-1.module_el8.6.0+2739+efabdb8f ALSA-2023:0848
AlmaLinux 8 libzip-devel Advisory build 1.7.3-1.module_el8.6.0+3061+6878dd1b ALSA-2023:0848
AlmaLinux 8 libzip-tools Advisory build 1.6.1-1.module_el8.6.0+2750+78feabcb ALSA-2023:2903
AlmaLinux 8 libzip-tools Advisory build 1.6.1-1.module_el8.6.0+3239+bedf0508 ALSA-2023:2903
AlmaLinux 8 libzip-tools Advisory build 1.7.3-1.module_el8.6.0+2739+efabdb8f ALSA-2023:0848
AlmaLinux 8 libzip-tools Advisory build 1.7.3-1.module_el8.6.0+3061+6878dd1b ALSA-2023:0848
AlmaLinux 8 php Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-bcmath Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-bcmath Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-cli Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-cli Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-common Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-common Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-dba Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-dba Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-dbg Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-dbg Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-devel Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-devel Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-embedded Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-embedded Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-enchant Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-enchant Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-ffi Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-ffi Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-fpm Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-fpm Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-gd Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-gd Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-gmp Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-gmp Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-intl Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-intl Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-json Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-ldap Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-ldap Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-mbstring Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-mbstring Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-mysqlnd Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-mysqlnd Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-odbc Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-odbc Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-opcache Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-opcache Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-pdo Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-pdo Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-pear Advisory build 1:1.10.13-1.module_el8.6.0+2739+efabdb8f ALSA-2023:0848
AlmaLinux 8 php-pear Advisory build 1:1.10.13-1.module_el8.6.0+3268+b150a051 ALSA-2023:2903
AlmaLinux 8 php-pecl-apcu Advisory build 5.1.18-1.module_el8.6.0+2750+78feabcb ALSA-2023:2903
AlmaLinux 8 php-pecl-apcu Advisory build 5.1.18-1.module_el8.6.0+3239+bedf0508 ALSA-2023:2903
AlmaLinux 8 php-pecl-apcu Advisory build 5.1.20-1.module_el8.6.0+2739+efabdb8f ALSA-2023:0848
AlmaLinux 8 php-pecl-apcu Advisory build 5.1.20-1.module_el8.6.0+3061+6878dd1b ALSA-2023:0848
AlmaLinux 8 php-pecl-apcu-devel Advisory build 5.1.18-1.module_el8.6.0+2750+78feabcb ALSA-2023:2903
AlmaLinux 8 php-pecl-apcu-devel Advisory build 5.1.18-1.module_el8.6.0+3239+bedf0508 ALSA-2023:2903
AlmaLinux 8 php-pecl-apcu-devel Advisory build 5.1.20-1.module_el8.6.0+2739+efabdb8f ALSA-2023:0848
AlmaLinux 8 php-pecl-apcu-devel Advisory build 5.1.20-1.module_el8.6.0+3061+6878dd1b ALSA-2023:0848
AlmaLinux 8 php-pecl-rrd Advisory build 2.0.1-1.module_el8.6.0+2750+78feabcb ALSA-2023:2903
AlmaLinux 8 php-pecl-rrd Advisory build 2.0.1-1.module_el8.6.0+3239+bedf0508 ALSA-2023:2903
AlmaLinux 8 php-pecl-rrd Advisory build 2.0.3-1.module_el8.6.0+2739+efabdb8f ALSA-2023:0848
AlmaLinux 8 php-pecl-rrd Advisory build 2.0.3-1.module_el8.6.0+3061+6878dd1b ALSA-2023:0848
AlmaLinux 8 php-pecl-xdebug Advisory build 2.9.5-1.module_el8.6.0+2750+78feabcb ALSA-2023:2903
AlmaLinux 8 php-pecl-xdebug Advisory build 2.9.5-1.module_el8.6.0+3239+bedf0508 ALSA-2023:2903
AlmaLinux 8 php-pecl-xdebug3 Advisory build 3.1.2-1.module_el8.6.0+2739+efabdb8f ALSA-2023:0848
AlmaLinux 8 php-pecl-xdebug3 Advisory build 3.1.2-1.module_el8.6.0+3061+6878dd1b ALSA-2023:0848
AlmaLinux 8 php-pecl-zip Advisory build 1.18.2-1.module_el8.6.0+2750+78feabcb ALSA-2023:2903
AlmaLinux 8 php-pecl-zip Advisory build 1.18.2-1.module_el8.6.0+3239+bedf0508 ALSA-2023:2903
AlmaLinux 8 php-pecl-zip Advisory build 1.19.2-1.module_el8.6.0+2739+efabdb8f ALSA-2023:0848
AlmaLinux 8 php-pecl-zip Advisory build 1.19.2-1.module_el8.6.0+3061+6878dd1b ALSA-2023:0848
AlmaLinux 8 php-pgsql Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-pgsql Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-process Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-process Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-snmp Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-snmp Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-soap Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-soap Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-xml Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 8 php-xml Advisory build 8.0.27-1.module_el8.7.0+3401+dfb61c00 ALSA-2023:0848
AlmaLinux 8 php-xmlrpc Advisory build 7.4.33-1.module_el8.8.0+3477+f828cbb0 ALSA-2023:2903
AlmaLinux 9 apcu-panel Advisory build 5.1.21-1.module_el9.1.0+15+94ba28e4 ALSA-2023:2417
AlmaLinux 9 php Advisory build 8.0.27-1.el9_1 ALSA-2023:0965
AlmaLinux 9 php Advisory build 8.1.14-1.module_el9.2.0+24+ca6bd7c2 ALSA-2023:2417
AlmaLinux 9 php-bcmath Advisory build 8.0.27-1.el9_1 ALSA-2023:0965
AlmaLinux 9 php-bcmath Advisory build 8.1.14-1.module_el9.2.0+24+ca6bd7c2 ALSA-2023:2417
AlmaLinux 9 php-cli Advisory build 8.0.27-1.el9_1 ALSA-2023:0965
AlmaLinux 9 php-cli Advisory build 8.1.14-1.module_el9.2.0+24+ca6bd7c2 ALSA-2023:2417
AlmaLinux 9 php-common Advisory build 8.0.27-1.el9_1 ALSA-2023:0965
AlmaLinux 9 php-common Advisory build 8.1.14-1.module_el9.2.0+24+ca6bd7c2 ALSA-2023:2417
AlmaLinux 9 php-dba Advisory build 8.0.27-1.el9_1 ALSA-2023:0965
AlmaLinux 9 php-dba Advisory build 8.1.14-1.module_el9.2.0+24+ca6bd7c2 ALSA-2023:2417
AlmaLinux 9 php-dbg Advisory build 8.0.27-1.el9_1 ALSA-2023:0965

Package entries are limited to the first 100 builds and 100 linked advisories.

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.

en · php · cna

Vendor advisories explicitly linked to this CVE.

51

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
9.1 / 10
Severity
critical
Provider
php · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Scenarios
en: GENERAL

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
PHP Group PHP 8.0.x to < 8.0.27 (affected · semver)8.1.x to < 8.1.15 (affected · semver)8.2.x to < 8.2.2 (affected · semver)Default: affected php · cna

Weaknesses

1
  • CWE-74 CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (php · cna)

References

2

Provider assertions

3

php · cna

PDO::quote() may return unquoted string

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
89cc9c7599e5aff366fa0f41057d1a5d7fe455f981262d70e9c58153bc30f40e
Ingested
23 Sep 2026, 08:00:34 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected