CVE-2022-31631

CRITICALNVD 9.19.1
EchelonGraph scoreMEDIUM confidence

“—” beside the score: it is equal to NVD's CVSS score.

Score 9.1 from GitHub Security Advisory (severity: CRITICAL) published 2025-02-13. NVD baseline CVSS 9.1; sources differ by 0.0.

Triggered by: GitHub Security Advisory CVSS
Sources: EPSS, GitHub Security Advisory, NVD CVSS v3
Trending — 4 sources updated this weekElevated

Also known asEUVD-2022-54225 (ENISA EUVD) · GHSA-4qmr-c42j-3wg2 (GitHub Security Advisories)Source: ENISA EUVD

9.1EG
EchelonGraph verdictPlan a fixRemediate within your standard update timelines at low or medium mission impact and sooner than that at high (the SSVC decision on this page).
  • CISA's Vulnrichment rates exploitation as PoC; EchelonGraph holds no exploit-code reference for it
CISA-KEV: Not listedEPSS PROB: 2.2%CVSS: 9.1Exploit: No code on recordExposed services: Not assessed

A fix is available — apply it.

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.

CVSS v3
9.1
EG Score
9.1CRITICALmedium confidence
EG Risk
72
EG Risk 72/100

EG Risk is EchelonGraph's 0–100 priority score. It fuses impact severity (EG Severity, the CVSS base score, never the KEV-floored or EPSS-lifted EG Score) with real-world exploitation and automatability, under weights EchelonGraph set by hand, so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner.

How it’s computed (value × EchelonGraph’s weight)
Severity91% × 45%
Impact severity (EG Severity): CVSS 9.1 of 10. Never the KEV-floored or EPSS-lifted EG Score.
Exploitation40% × 40%
EchelonGraph's fixed weight for EG-KEV Tier 3 (Elevated): a constant, not a probability.
Automatability100% × 15%
CISA's SSVC Automatable value: yes (Vulnrichment).
SSVC (CISA's decision table, applied by EchelonGraph): Track at low, Track* at medium and Attend at high mission impact.
Exploitation public PoC (CISA Vulnrichment) · Automatable yes (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE.
Action: A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high.
EPSS PROB
2.2%
EPSS %ILE
82nd
KEV
Not listed

What the EG score is made of (scorer v4.0: the three questions the 0–10 score mixes, published apart · methodology)

The EG score (9.1): severity, escalated by confirmed exploitation. This CVE's 9.1 is its impact severity (EG Severity), not escalated.

EG Severity
9.1 CRITICALCVSS-B, impact only: no KEV listing, EPSS or EG-KEV tier raises it.GitHub Security Advisory CVSS
EG Likelihood
2.2% within 30 daysSource: FIRST EPSS (model v2026.06.15, score date 2026-10-31). FIRST's exploitation probability, not an EchelonGraph model.
Confirmed exploitation
None on record (CISA KEV, EG-KEV Tier 1)Reported apart from the likelihood: an observed fact, not a probability.
EG Priority
SSVC Track* at medium mission impactTrack at low, Track* at medium and Attend at high mission impact.CISA BOD 26-04: 3 days if the affected system is publicly exposed; 60 days if it is not.Each input and its source, and whom BOD 26-04 binds: the SSVC and BOD 26-04 blocks below.

SSVC (CISA's decision table, applied by EchelonGraph)Track at low, Track* at medium and Attend at high mission impact.

A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high.

Exploitation public PoC (CISA Vulnrichment) · Automatable yes (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE. Mission impact is CISA's Mission & Well-being decision point, and only you can judge it. CISA's table makes it high when Mission Prevalence is Essential — the vulnerable component "directly provides capabilities that constitute at least one MEF for at least one entity" (MEF: mission essential function) — or when Public Well-Being Impact is Irreversible: "multiple fatalities are likely", the cyber-physical system "is likely lost or destroyed", "extreme or serious externalities" are imposed on other parties, or social systems such as elections or the financial grid "are destabilized and potentially collapse". CISA's decision table

BOD 26-04 (CISA's remediation timeline, Table 1)3 days if the affected system is publicly exposed; 60 days if it is not.

The score's inputs: In CISA KEV no (CISA's KEV catalog) · Automatable yes (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). Whether your system is publicly exposed is yours to answer. BOD 26-04 binds US Federal Civilian Executive Branch agencies; for anyone else it is CISA's published timeline, a reference rather than an obligation. The directive · how EchelonGraph applies it

Published

February 12, 2025

Last Modified

July 2, 2025

Advisory Details (2)

Auto-updated Aug 1, 2026
Patch available.
Web page

PHP :: Sec Bug #81740 :: PDO::quote() may return unquoted string

https://bugs.php.net/bug.php?id=81740

Patch Availability(6)

Vendor / EcosystemFix (by version range) / PatchReleasedSource
ubuntuphp8.1-snmp (8.1.7-1ubuntu3.2) @ kinetic2026-11-01ubuntu
ubuntuphp7.0-snmp (7.0.33-0ubuntu0.16.04.16+esm5) @ xenial2026-11-01ubuntu
redhatphp:7.4-8080020230118140634.cc3424242023-05-16redhat
redhatphp:8.1-9020020230120141750.92023-05-09redhat
redhatphp-0:8.0.27-1.el9_12023-02-28redhat
redhatphp:8.0-8070020230118114629.ef3316622023-02-21redhat

Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.

Affected Packages

(3 across 3 ecosystems)
Debian:10(1)
PackageVulnerable rangeFix by version rangeDependents
php7.37.3.10-1 ... 7.3.9-1~deb10u1 (17 versions)
  • every version up to 7.3.31-1~deb10u3: fixed in 7.3.31-1~deb10u3
—
Debian:11(1)
PackageVulnerable rangeFix by version rangeDependents
php7.47.4.21-1+deb11u1 ... 7.4.33-1+deb11u1 (6 versions)
  • every version up to 7.4.33-1+deb11u3: fixed in 7.4.33-1+deb11u3
—
Debian:12(1)
PackageVulnerable rangeFix by version rangeDependents
php8.2—
  • every version up to 8.2.1-1: fixed in 8.2.1-1
—

Weakness Classification(1)

MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.

Additional Vendor Advisories

(2)

Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.

Data Freshness Timeline

(refreshed 27× in last 7d / 95× in last 30d)

Each row is a time one of our pipelines fetched, updated or re-scored this CVE. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. An arrow marks a change the record states ("CVSS v3 → 9.1"); EPSS and GHSA rows show the values recorded at that time, not what changed (EPSS values are rounded; hover one for the exact figures). Most recent first.

Showing the most recent 100 of 265 refreshes on record for this CVE.

A repeat, a row identical to one the same pipeline wrote less than 10 seconds earlier, is not a separate refresh and is not counted. None are among the latest 100 rows. The 165 oldest rows on record are not shown and were not checked, so the counts can still include repeats.

  1. 2026-11-01 16:30 UTCEPSS rescoreEPSS 2.2% · 82nd percentile
  2. 2026-11-01 16:29 UTCVendor advisory
  3. 2026-11-01 16:29 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  4. 2026-10-31 18:45 UTCEG score recompute
  5. 2026-10-31 18:45 UTCVendor advisory
  6. 2026-10-31 18:45 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  7. 2026-10-31 16:29 UTCEPSS rescoreEPSS 2.2% · 82nd percentile
  8. 2026-10-30 21:01 UTCEG score recompute
  9. 2026-10-30 21:01 UTCVendor advisory
  10. 2026-10-30 21:01 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  11. 2026-10-30 16:30 UTCEPSS rescoreEPSS 2.2% · 82nd percentile
  12. 2026-10-29 23:17 UTCEG score recompute
  13. 2026-10-29 23:17 UTCVendor advisory
  14. 2026-10-29 23:17 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  15. 2026-10-29 16:29 UTCEPSS rescoreEPSS 2.2% · 82nd percentile
  16. 2026-10-29 01:34 UTCEG score recompute
  17. 2026-10-29 01:34 UTCVendor advisory
  18. 2026-10-29 01:34 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  19. 2026-10-28 16:28 UTCEPSS rescoreEPSS 2.2% · 82nd percentile
  20. 2026-10-28 03:51 UTCEG score recompute
  21. 2026-10-28 03:51 UTCVendor advisory
  22. 2026-10-28 03:51 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  23. 2026-10-27 16:28 UTCEPSS rescoreEPSS 2.2% · 82nd percentile
  24. 2026-10-27 05:54 UTCEG score recompute
  25. 2026-10-27 05:54 UTCVendor advisory
Show 75 more
  1. 2026-10-27 05:54 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  2. 2026-10-26 16:28 UTCEPSS rescoreEPSS 2.2% · 82nd percentile
  3. 2026-10-26 04:06 UTCVendor advisory
  4. 2026-10-26 04:06 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  5. 2026-10-25 18:07 UTCEG score recompute
  6. 2026-10-25 16:29 UTCEPSS rescoreEPSS 2.2% · 82nd percentile
  7. 2026-10-25 06:21 UTCEG score recompute
  8. 2026-10-25 06:21 UTCVendor advisory
  9. 2026-10-25 06:21 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  10. 2026-10-24 16:29 UTCEPSS rescoreEPSS 2.2% · 82nd percentile
  11. 2026-10-24 08:37 UTCEG score recompute
  12. 2026-10-24 08:37 UTCVendor advisory
  13. 2026-10-24 08:37 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  14. 2026-10-23 16:28 UTCEPSS rescoreEPSS 2.2% · 82nd percentile
  15. 2026-10-23 10:53 UTCEG score recompute
  16. 2026-10-23 10:53 UTCVendor advisory
  17. 2026-10-23 10:53 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  18. 2026-10-22 16:30 UTCEPSS rescoreEPSS 2.2% · 82nd percentile
  19. 2026-10-22 12:52 UTCEG score recompute
  20. 2026-10-22 12:52 UTCVendor advisory
  21. 2026-10-22 12:51 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  22. 2026-10-21 16:28 UTCEPSS rescoreEPSS 2.2% · 82nd percentile
  23. 2026-10-21 15:06 UTCVendor advisory
  24. 2026-10-21 15:06 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  25. 2026-10-20 17:01 UTCEG score recompute
  26. 2026-10-20 17:01 UTCVendor advisory
  27. 2026-10-20 17:01 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  28. 2026-10-20 16:29 UTCEPSS rescoreEPSS 2.2% · 82nd percentile
  29. 2026-10-19 19:16 UTCEG score recompute
  30. 2026-10-19 19:16 UTCVendor advisory
  31. 2026-10-19 19:16 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  32. 2026-10-19 16:28 UTCEPSS rescoreEPSS 2.2% · 82nd percentile
  33. 2026-10-18 21:23 UTCEG score recompute
  34. 2026-10-18 21:23 UTCVendor advisory
  35. 2026-10-18 21:22 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  36. 2026-10-18 16:28 UTCEPSS rescoreEPSS 2.2% · 82nd percentile
  37. 2026-10-18 08:35 UTCEG score recompute
  38. 2026-10-17 22:50 UTCEG score recompute
  39. 2026-10-17 22:50 UTCVendor advisory
  40. 2026-10-17 22:50 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  41. 2026-10-17 16:29 UTCEPSS rescoreEPSS 2.2% · 82nd percentile
  42. 2026-10-17 01:04 UTCEG score recompute
  43. 2026-10-17 01:04 UTCVendor advisory
  44. 2026-10-17 01:03 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  45. 2026-10-16 16:34 UTCEPSS rescoreEPSS 2.2% · 82nd percentile
  46. 2026-10-16 01:08 UTCEG score recompute
  47. 2026-10-16 01:08 UTCVendor advisory
  48. 2026-10-16 01:07 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  49. 2026-10-15 16:28 UTCEPSS rescoreEPSS 2.2% · 82nd percentile
  50. 2026-10-14 20:11 UTCEG score recompute
  51. 2026-10-14 20:11 UTCVendor advisory
  52. 2026-10-14 20:11 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  53. 2026-10-14 16:29 UTCEPSS rescoreEPSS 2.2% · 81st percentile
  54. 2026-10-13 16:29 UTCEPSS rescoreEPSS 2.2% · 81st percentile
  55. 2026-10-13 16:18 UTCVendor advisory
  56. 2026-10-13 16:18 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  57. 2026-10-12 18:30 UTCEG score recompute
  58. 2026-10-12 18:30 UTCVendor advisory
  59. 2026-10-12 18:30 UTCGHSA enrichmentGHSA-4qmr-c42j-3wg2 · GitHub severity CRITICAL · GitHub CVSS 9.1
  60. 2026-10-12 16:30 UTCEPSS rescoreEPSS 2.2% · 81st percentile
  61. 2026-10-11 23:18 UTCEG score recompute
  62. 2026-10-11 13:44 UTCEPSS rescoreEPSS 2.2% · 81st percentile
  63. 2026-10-10 19:56 UTCEPSS rescoreEPSS 2.2% · 81st percentile
  64. 2026-10-09 20:04 UTCEPSS rescoreEPSS 2.2% · 81st percentile
  65. 2026-10-08 16:40 UTCEPSS rescoreEPSS 2.2% · 81st percentile
  66. 2026-10-07 23:45 UTCEPSS rescoreEPSS 2.2% · 81st percentile
  67. 2026-10-06 15:14 UTCEPSS rescoreEPSS 2.2% · 81st percentile
  68. 2026-10-05 17:40 UTCEPSS rescoreEPSS 2.2% · 81st percentile
  69. 2026-10-04 23:19 UTCEPSS rescoreEPSS 2.2% · 81st percentile
  70. 2026-10-03 14:23 UTCEPSS rescoreEPSS 2.2% · 81st percentile
  71. 2026-10-02 23:25 UTCOSV refresh
  72. 2026-10-02 16:23 UTCEPSS rescoreEPSS 2.2% · 81st percentile
  73. 2026-09-30 15:55 UTCEG score recompute
  74. 2026-09-30 15:00 UTCEPSS rescoreEPSS 2.2% · 81st percentile
  75. 2026-09-29 15:16 UTCEPSS rescoreEPSS 2.2% · 81st percentile

Frequently asked(5)

What is CVE-2022-31631?
CVE-2022-31631 is a critical-severity vulnerability; its CVE record was published on February 12, 2025. 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.
When was CVE-2022-31631 made public?
CVE-2022-31631 was made public on December 19, 2022: that is the date its CVE record's CNA, PHP Group, gives for when the vulnerability was made public. The CVE record itself was published on February 12, 2025. EchelonGraph's copy of the record carries a last-modified date of July 2, 2025; the record at its source may have been updated since.
Is CVE-2022-31631 actively exploited?
CVE-2022-31631 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 2.2% probability of exploitation in the next 30 days (82nd percentile of EPSS-scored CVEs).
What is the CVSS score of CVE-2022-31631?
CVE-2022-31631 has a CVSS v3 base score of 9.1 (NVD).
How do I remediate CVE-2022-31631?
A fix for CVE-2022-31631 is available: update to the fixed version the vendor names in its advisory. The vendor advisories EchelonGraph has for CVE-2022-31631 are linked in the Vendor Advisories panel on this page.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2022-31631

Explore →

Is Your Infrastructure Affected by CVE-2022-31631?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.