CVE-2022-31631

Source
https://cve.org/CVERecord?id=CVE-2022-31631
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31631.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-31631
Aliases
Downstream
BELL (1)
CGA (2)
CLSA (3)
DEBIAN (1)
MGASA (1)
OESA (4)
openSUSE (1)
RHSA (4)
RLSA (4)
SUSE (5)
UBUNTU (1)
Related
Published
2025-02-12T22:10:45Z
Modified
2026-10-21T02:47:55Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
PDO::quote() may return unquoted string
Details

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.

Database specific
{
    "cna_assigner":  "php",
    "cwe_ids":  [
        "CWE-74"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31631.json",
    "unresolved_ranges":  [
        {
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "introduced":  "8.0.x"
                        },
                        {
                            "fixed":  "8.0.27"
                        },
                        {
                            "introduced":  "8.1.x"
                        },
                        {
                            "fixed":  "8.1.15"
                        },
                        {
                            "introduced":  "8.2.x"
                        },
                        {
                            "fixed":  "8.2.2"
                        }
                    ],
                    "source":  "AFFECTED_FIELD",
                    "strategy":  "StandardRange"
                }
            ]
        }
    ]
}
References

Affected packages

Git / github.com/php/php-src

Affected ranges

Type
GIT
Repo
https://github.com/php/php-src
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "cpe":  "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
            "range":  [
                {
                    "introduced":  "8.0.0"
                },
                {
                    "fixed":  "8.0.27"
                }
            ],
            "source":  "CPE_RANGE"
        },
        {
            "cpe":  "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
            "range":  [
                {
                    "introduced":  "8.1.0"
                },
                {
                    "fixed":  "8.1.15"
                }
            ],
            "source":  "CPE_RANGE"
        },
        {
            "cpe":  "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
            "range":  [
                {
                    "introduced":  "8.2.0"
                },
                {
                    "fixed":  "8.2.2"
                }
            ],
            "source":  "CPE_RANGE"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31631.json"