Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2022-23221 EUVD-2022-0440GHSA-45hx-wfhj-473x

Arbitrary code execution in H2 Console

Published Jan 19, 2022 · Updated May 5, 2025 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 h2database 2.1.210-1 —
Debian 13 h2database 2.1.210-1 —
Debian 12 h2database 2.1.210-1 —
Debian 11 h2database 1.4.197-4+deb11u1 DSA-5076-1
Debian 10 h2database 1.4.197-4+deb10u1 DSA-5076-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 9 h2database 1.4.193-1+deb9u1 DLA-2923-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS h2database 2.1.210+really1.4.197-1 —
Ubuntu 20.04 LTS h2database 1.4.197-4+deb10u1build0.20.04.1 USN-5365-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS h2database 1.4.196-2ubuntu0.1~esm1 USN-6834-1
Ubuntu Pro 16.04 LTS h2database 1.4.191-1ubuntu0.1~esm1 USN-6834-1
ReleasePackageFixed inAdvisory
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-apache-cxf +3 3.1.16-3.SP1_redhat_00001.1.ep7.el7 RHSA-2024:10208, RHSA-2024:10207
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-avro 1.7.6-2.redhat_00003.1.ep7.el7 RHSA-2024:10208, RHSA-2024:10207
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-bouncycastle +3 1.68.0-1.redhat_00005.1.ep7.el7 RHSA-2024:10208
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-h2database 1.4.197-2.redhat_00005.1.ep7.el7 RHSA-2024:10208, RHSA-2024:10207
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jackson-databind 2.8.11.6-1.SP1_redhat_00001.1.ep7.el7 RHSA-2024:10208
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jboss-annotations-api_1.3_spec 2.0.1-4.Final_redhat_00001.1.el7eap RHSA-2024:10207
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jboss-marshalling +1 2.0.15-1.Final_redhat_00001.1.el7eap RHSA-2024:10208, RHSA-2024:10207
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jboss-server-migration +21 1.7.2-12.Final_redhat_00013.1.el7eap RHSA-2024:10207
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jboss-xnio-base 3.5.10-1.Final_redhat_00001.1.ep7.el7 RHSA-2024:10208, RHSA-2024:10207
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-log4j-jboss-logmanager 1.2.2-2.Final_redhat_00002.1.el7eap RHSA-2024:10207
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-wildfly +1 7.1.8-2.GA_redhat_00002.1.ep7.el7 RHSA-2024:10208, RHSA-2024:10207
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-wildfly-javadocs +2 7.3.11-4.GA_redhat_00002.1.el7eap RHSA-2024:10207
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-wss4j +6 2.3.3-2.redhat_00001.1.el7eap RHSA-2024:10207
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-xalan-j2 2.7.1-26.redhat_00015.1.ep7.el7 RHSA-2024:10208, RHSA-2024:10207
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-xml-security 2.2.3-2.redhat_00001.1.el7eap RHSA-2024:10207
Red Hat JBoss EAP 7 eap7-activemq-artemis +15 2.16.0-9.redhat_00042.1.el7eap RHSA-2022:4919, RHSA-2022:4918
Red Hat JBoss EAP 7 eap7-h2database 1.4.197-2.redhat_00004.1.el7eap RHSA-2022:4919, RHSA-2022:4918
Red Hat JBoss EAP 7 eap7-hal-console 3.3.12-1.Final_redhat_00001.1.el7eap RHSA-2022:4919, RHSA-2022:4918
Red Hat JBoss EAP 7 eap7-jackson-databind 2.12.6.1-1.redhat_00003.1.el7eap RHSA-2022:4919, RHSA-2022:4918
Red Hat JBoss EAP 7 eap7-jboss-xnio-base 3.8.7-1.SP1_redhat_00001.1.el7eap RHSA-2022:4919, RHSA-2022:4918
Red Hat JBoss EAP 7 eap7-netty +27 4.1.72-4.Final_redhat_00001.1.el7eap RHSA-2022:4919, RHSA-2022:4918
Red Hat JBoss EAP 7 eap7-undertow 2.2.17-2.SP4_redhat_00001.1.el7eap RHSA-2022:4919, RHSA-2022:4918
Red Hat JBoss EAP 7 eap7-wildfly +4 7.4.5-3.GA_redhat_00001.1.el7eap RHSA-2022:4919, RHSA-2022:4918
Red Hat JBoss EAP 7 eap7-wildfly-http-client +4 1.1.11-1.SP1_redhat_00001.1.el7eap RHSA-2022:4919, RHSA-2022:4918
Red Hat JBoss EAP 7 eap7-xerces-j2 2.12.0-3.SP04_redhat_00001.1.el7eap RHSA-2022:4919, RHSA-2022:4918

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven com.h2database:h2 < 2.1.210 2.1.210 GHSA-45hx-wfhj-473x

Advisories 11

References