CVE-2022-31631

Source
https://cve.org/CVERecord?id=CVE-2022-31631
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-31631.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-31631
Aliases
Downstream
Related
Published
2025-02-12T22:15:29.007Z
Modified
2026-03-20T12:04:01.679875Z
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
[none]
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.

References

Affected packages

Git / github.com/php/php-src

Affected ranges

Type
GIT
Repo
https://github.com/php/php-src
Events
Database specific
{
    "versions": [
        {
            "introduced": "8.0.0"
        },
        {
            "fixed": "8.0.27"
        },
        {
            "introduced": "8.1.0"
        },
        {
            "fixed": "8.1.15"
        },
        {
            "introduced": "8.2.0"
        },
        {
            "fixed": "8.2.2"
        }
    ]
}

Database specific

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