QID 356281

Date Published: 2023-09-28

QID 356281: Amazon Linux Security Advisory for Hypertext Preprocessor (PHP) : ALAS2PHP8.2-2023-003

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. (
( CVE-2022-31631)



Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.

Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as Critical - 8.6 severity.
  • CVSS V2 rated as Medium - 5.4 severity.
  • Solution
    Please refer to Amazon advisory: ALAS2PHP8.2-2023-003 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 356281

    Software Advisories
    Advisory ID Software Component Link
    ALAS2PHP8.2-2023-003 amazon linux 2 URL Logo alas.aws.amazon.com/AL2/ALASPHP8.2-2023-003.html