ADVISORIES

Vulnerability

CVE-2022-31631

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.

39 advisories report this vulnerability, across 14 ecosystems.

Advisories

  • ALAS2-2025-2832

    Amazon Linux 2 2017.12 - ALAS2-2025-2832: important priority package update for php

    Important CVE-2017-9226CVE-2019-19203CVE-2022-31631CVE-2023-0568 Amazon Linux Updated 30 December 2025
  • ALAS2023-2023-081

    Amazon Linux 2023 - ALAS2023-2023-081: Important priority package update for php8.1

    Important CVE-2022-31627CVE-2022-31628CVE-2022-31629CVE-2022-31630 Amazon Linux Updated 22 February 2023
  • ALPINE-CVE-2022-31631

    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…

    CVE-2022-31631 Alpine Updated 20 November 2026
  • ALSA-2023:0848

    Moderate: php:8.0 security update

    CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 AlmaLinux Updated 5 November 2026
  • ALSA-2023:0965

    Moderate: php security update

    CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 AlmaLinux Updated 29 October 2026
  • ALSA-2023:2417

    Moderate: php:8.1 security update

    CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 AlmaLinux Updated 29 October 2026
  • ALSA-2023:2903

    Moderate: php:7.4 security update

    CVE-2017-8923CVE-2022-31628CVE-2022-31629CVE-2022-31630 AlmaLinux Updated 5 November 2026
  • CGA-329p-65w3-v34x
    CVE-2022-31631 ChainguardWolfi Updated 5 November 2026
  • CGA-x4h3-mrmf-x7c5
    CVE-2022-31631 ChainguardWolfi Updated 5 November 2026
  • CNA-CVE-2022-31631

    PDO::quote() may return unquoted string

    CVE-2022-31631 PHP Updated 13 February 2025
  • DEBIAN-CVE-2022-31631

    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…

    CVE-2022-31631 Debian Updated 20 November 2026
  • DLA-3345-1

    php7.3 - security update

    CVE-2022-31631CVE-2023-0567CVE-2023-0568CVE-2023-0662 Debian Updated 20 November 2026
  • DSA-5363-1

    php7.4 - security update

    CVE-2022-31631CVE-2023-0567CVE-2023-0568CVE-2023-0662 Debian Updated 20 November 2026
  • ELSA-2023-0848

    ELSA-2023-0848: php:8.0 security update (MODERATE)

    Moderate CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 Oracle Linux Updated 22 February 2023
  • ELSA-2023-0965

    ELSA-2023-0965: php security update (MODERATE)

    Moderate CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 Oracle Linux Updated 28 February 2023
  • ELSA-2023-2417

    ELSA-2023-2417: 8.1 security update (MODERATE)

    Moderate CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 Oracle Linux Updated 15 May 2023
  • ELSA-2023-2903

    ELSA-2023-2903: php:7.4 security update (MODERATE)

    Moderate CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 Oracle Linux Updated 24 May 2023
  • OESA-2023-1619

    php security update

    High CVE-2022-31631CVE-2023-0567CVE-2023-0568CVE-2023-0662 openEuler Updated 18 August 2026
  • OESA-2023-1620

    php security update

    High CVE-2022-31630CVE-2022-31631CVE-2023-0567CVE-2023-0568 openEuler Updated 18 August 2026
  • OESA-2023-1621

    php security update

    High CVE-2022-31631CVE-2023-0567CVE-2023-0568CVE-2023-0662 openEuler Updated 18 August 2026
  • OESA-2023-1622

    php security update

    High CVE-2022-31631CVE-2023-0567CVE-2023-0568CVE-2023-0662 openEuler Updated 18 August 2026
  • RHSA-2023:0848

    Red Hat Security Advisory: php:8.0 security update

    CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 Red Hat Updated 23 November 2026
  • RHSA-2023:0965

    Red Hat Security Advisory: php security update

    CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 Red Hat Updated 23 November 2026
  • RHSA-2023:2417

    Red Hat Security Advisory: php:8.1 security update

    CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 Red Hat Updated 23 November 2026
  • RHSA-2023:2903

    Red Hat Security Advisory: php:7.4 security update

    CVE-2017-8923CVE-2022-31628CVE-2022-31629CVE-2022-31630 Red Hat Updated 23 November 2026
  • RHVEX-CVE-2022-31631

    php: PDO:: quote() may return unquoted string due to an integer overflow

    Moderate CVE-2022-31631 Red Hat Updated 5 November 2026
  • RLSA-2023:0848

    Moderate: php:8.0 security update

    CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 Rocky Linux Updated 4 February 2026
  • RLSA-2023:0965

    Moderate: php security update

    CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 Rocky Linux Updated 5 February 2026
  • RLSA-2023:2417

    Moderate: php:8.1 security update

    CVE-2022-31628CVE-2022-31629CVE-2022-31630CVE-2022-31631 Rocky Linux Updated 27 December 2025
  • RLSA-2023:2903

    Moderate: php:7.4 security update

    CVE-2017-8923CVE-2022-31628CVE-2022-31629CVE-2022-31630 Rocky Linux Updated 27 December 2025
  • SUSE-SU-2023:0072-1

    Security update for php74

    CVE-2014-9709CVE-2015-3411CVE-2022-31631 SUSE Updated 4 February 2026
  • SUSE-SU-2023:0073-1

    Security update for php7

    CVE-2022-31631 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2023:0074-1

    Security update for php8

    CVE-2022-31631 SUSEopenSUSE Updated 2 May 2025
  • SUSE-SU-2023:0084-1

    Security update for php7

    CVE-2022-31631 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2023:0476-1

    Security update for php7

    CVE-2022-31631CVE-2023-0567CVE-2023-0568CVE-2023-0662 SUSEopenSUSE Updated 4 February 2026
  • UBUNTU-CVE-2022-31631

    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…

    CVE-2022-31631 Ubuntu Updated 21 October 2026
  • USN-5818-1

    php7.2, php7.4, php8.1 vulnerability

    CVE-2022-31631 Ubuntu Updated 27 April 2026
  • USN-5905-1

    php7.0 vulnerabilities

    CVE-2022-31628CVE-2022-31629CVE-2022-31631CVE-2023-0568 Ubuntu Updated 25 June 2026
  • openSUSE-SU-2024:12601-1

    php8-8.1.14-1.1 on GA media

    CVE-2022-31631 openSUSE Updated 4 February 2026

References