Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

CVE-2022-31631

Public on 2023-01-10
Modified on 2024-01-12
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
See what this means
CVSS v3 Base Score
5.9
See breakdown

Affected Packages

Platform Package Release Date Advisory
Amazon Linux 2 - Php8.0 Extra php 2023-08-21 21:00 ALAS2PHP8.0-2023-003
Amazon Linux 2 - Php8.1 Extra php 2023-08-21 21:00 ALAS2PHP8.1-2023-003
Amazon Linux 2 - Php8.2 Extra php 2023-09-14 01:05 ALAS2PHP8.2-2023-003
Amazon Linux 2023 php8.1 2023-02-17 20:47 ALAS2023-2023-081

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