{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-31631","id":"CVE-2022-31631","title":"PDO::quote() may return unquoted string","description":"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.","descriptionLong":"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.","published":"2025-02-12T22:10:45.418Z","updated":"2026-10-28T02:31:03.598769932Z","reserved":"2022-05-25T21:03:32.861Z","status":"Analyzed","rejected":false,"assigner":"php","metric":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"php"},"metrics":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"php"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"php.net"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"OSV"}],"rating":"critical","products":["PHP Group PHP"],"affectedProducts":[{"vendor":"PHP Group","product":"PHP","defaultStatus":"affected","versions":[{"lessThan":"8.0.27","status":"affected","version":"8.0.x","versionType":"semver"},{"lessThan":"8.1.15","status":"affected","version":"8.1.x","versionType":"semver"},{"lessThan":"8.2.2","status":"affected","version":"8.2.x","versionType":"semver"}],"platforms":[]}],"packages":[],"cwes":["CWE-74"],"aliases":["BIT-libphp-2022-31631","BIT-php-2022-31631","BIT-php-min-2022-31631"],"references":[{"url":"https://bugs.php.net/bug.php?id=81740","tags":["exploit","Vendor Advisory","web"]},{"url":"https://security.netapp.com/advisory/ntap-20230223-0007/","tags":["Third Party Advisory","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31631.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31631","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total"},"epss":0.02143,"epssPercentile":0.82456,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-31631","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31631","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-31631","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-31631","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}