CVE-2022-31631
Public on 2023-01-10
Modified on 2024-05-16
Description
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.
Severity
CVSS v3 Base Score
See breakdown
Affected Packages
Platform | Package | Release Date | Advisory | Status |
---|---|---|---|---|
HAQM Linux 2 - Core | php | 2025-04-09 | ALAS2-2025-2832 | Fixed |
HAQM Linux 2 - Php8.0 Extra | php | 2023-08-21 | ALAS2PHP8.0-2023-003 | Fixed |
HAQM Linux 2 - Php8.1 Extra | php | 2023-08-21 | ALAS2PHP8.1-2023-003 | Fixed |
HAQM Linux 2 - Php8.2 Extra | php | 2023-09-14 | ALAS2PHP8.2-2023-003 | Fixed |
HAQM Linux 1 | php56 | Pending Fix | ||
HAQM Linux 2023 | php8.1 | 2023-02-17 | ALAS2023-2023-081 | Fixed |
CVSS Scores
Score Type | Score | Vector | |
---|---|---|---|
HAQM Linux | CVSSv3 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
NVD | CVSSv3 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |