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
Medium severity
Medium
See what this means
CVSS v3 Base Score
5.9
See breakdown

Affected Packages

Platform Package Release Date Advisory Status
Amazon Linux 2 - Core php 2025-04-16 ALAS2-2025-2832 Fixed
Amazon Linux 2 - Php8.0 Extra php 2023-09-13 ALAS2PHP8.0-2023-003 Fixed
Amazon Linux 2 - Php8.1 Extra php 2023-09-13 ALAS2PHP8.1-2023-003 Fixed
Amazon Linux 2 - Php8.2 Extra php 2023-09-25 ALAS2PHP8.2-2023-003 Fixed
Amazon Linux 1 php56 Pending Fix
Amazon Linux 2023 php8.1 2023-03-22 ALAS2023-2023-081 Fixed

CVSS Scores

Score Type Score Vector
Amazon 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