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:10:45.418Z
Modified
2026-05-08T04:47:02.597637Z
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
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31631.json",
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "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"
        },
        {
            "extracted_events": [
                {
                    "fixed": "8.0.27"
                },
                {
                    "fixed": "8.1.15"
                },
                {
                    "fixed": "8.2.2"
                }
            ],
            "source": "DESCRIPTION"
        }
    ],
    "cwe_ids": [
        "CWE-74"
    ],
    "cna_assigner": "php"
}
References

Affected packages

Git / github.com/php/php-src

Affected ranges

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

Database specific

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