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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 9 | h2database | 1.4.193-1+deb9u1 | DLA-2923-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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.
GitHub 2 repositories
-
CyberCTF/vulhub-h2database-cve-2022-23221 ★ 0 · Oct 8, 2026
Vulhub h2database/CVE-2022-23221: H2 Database Console JDBC URL RCE (CVE-2022-23221), run with Isoloom
-
straightSang/H2-database-CVE-2022-23221 ★ 0 · Jul 9, 2026
vulhub/H2-database/CVE-2022-23221
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | com.h2database:h2 | < 2.1.210 | 2.1.210 | GHSA-45hx-wfhj-473x |
Advisories 11
- RHSA-2024:10208 Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.1.8 on RHEL 7 security update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- RHSA-2024:10207 Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.3.11 Security update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- RHSA-2022:4919 Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.5 security update on RHEL 8 Red Hat Security Advisories (RHSA) · Oct 13, 2026
- RHSA-2022:4918 Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.5 security update on RHEL 7 Red Hat Security Advisories (RHSA) · Oct 13, 2026
- WID-SEC-2022-0607 Red Hat FUSE: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 9, 2026
- USN-6834-1 h2database vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- WID-SEC-2024-0123 Oracle Fusion Middleware: Mehrere Schwachstellen BSI CERT-Bund (WID) · May 7, 2026
- DSA-5076-1 h2database - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2923-1 h2database - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-5365-1 h2database vulnerabilities Ubuntu Security Notices (USN) · Feb 10, 2026
- WID-SEC-2022-0102 H2: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Jun 13, 2024
References
- https://github.com/h2database/h2database/security/advisories
- 20220124 Unauthenticated RCE vuln in the H2 Database console: CVE-2022-23221. mailing-list
- [debian-lts-announce] 20220215 [SECURITY] [DLA 2923-1] h2database security update mailing-list
- DSA-5076 vendor-advisory
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://github.com/h2database/h2database/releases/tag/version-2.1.210
- https://twitter.com/d0nkey_man/status/1483824727936450564
- http://packetstormsecurity.com/files/165676/H2-Database-Console-Remote-Code-Execution.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://security.netapp.com/advisory/ntap-20230818-0011/