Patchfirst
CVE-2022-23221 Public exploit Critical · 9.8 EPSS 64.8%

H2 Console before 2.1.210 allows remote attackers to execute arbitrary code via a jdbc:h2:mem JDBC URL containing the…

Fix:upgrade h2 to 2.1.210 or later also fixes CVE-2021-42392 Details ↓

Summary

The H2 Console, in versions before 2.1.210, contains a flaw in how it handles JDBC URLs, specifically those using the jdbc:h2:mem form, where argument delimiters are not properly neutralized. An remote attacker with no authentication and no user interaction can supply a crafted URL containing the IGNORE_UNKNOWN_SETTINGS, FORBID_CREATION and INIT=RUNSCRIPT settings to execute arbitrary code over the network.

Official description · CVE.org

H2 Console before 2.1.210 allows remote attackers to execute arbitrary code via a jdbc:h2:mem JDBC URL containing the IGNORE_UNKNOWN_SETTINGS=TRUE;FORBID_CREATION=FALSE;INIT=RUNSCRIPT substring, a different vulnerability than CVE-2021-42392.

Breakdown
33.3 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Public exploit code (PoC-in-GitHub) appeared 4 years after disclosure. No confirmed exploitation is recorded.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+4 yrs

4 fixes in h2 over 11 months. The latest fix listed for h2 is 2.2.220.

Fixes in h2Maven package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 2.0.202CVE-2021-2346310 Dec 2021
  2. 2.0.206CVE-2021-423927 Jan 2022
  3. 2.1.210CVE-2022-2322119 Jan 2022
  4. 2.2.220CVE-2022-4586823 Nov 2022Latest listed

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: com.h2database:h2.

Mavencom.h2database:h2GHSA-45hx-wfhj-473x

Upgrade to 2.1.210 or later

Fixes this CVE and 1 other known vulnerability in this package (CVE-2021-42392).

Set the version to 2.1.210 or later in your pom.xml or build.gradle.

The first fix for CVE-2022-23221.

Affected versions

If you runUpgrade to
All versions before 2.1.2102.1.210

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 4 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

10 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close