CVE-2022-23221

CRITICAL LAB

H2 Console <2.1.210 - RCE

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2022-23221. PoCs published by straightSang.

AI-analyzed exploit summary This repository contains a functional PoC for CVE-2022-23221, a remote code execution vulnerability in H2 Database versions prior to 2.1.210. The exploit leverages a malicious JDBC URL with an INIT script parameter to execute arbitrary SQL commands, including Java code via CREATE ALIAS, achieving RCE.

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.

Exploits (1)

nomisec WORKING POC
by straightSang · poc
https://github.com/straightSang/H2-database-CVE-2022-23221

This repository contains a functional PoC for CVE-2022-23221, a remote code execution vulnerability in H2 Database versions prior to 2.1.210. The exploit leverages a malicious JDBC URL with an INIT script parameter to execute arbitrary SQL commands, including Java code via CREATE ALIAS, achieving RCE.

Classification
Working Poc 98%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: H2 Database 2.0.206
No auth needed
Prerequisites: Network access to the H2 Database TCP port (9092) · H2 Database running a vulnerable version (2.0.206 or earlier) · Ability to host a malicious SQL script (e.g., via HTTP server)
mistral-large-3 · analyzed Jul 09, 2026 Full analysis →

References (10)

Core 10
Core References
Exploit, Mailing List, Third Party Advisory mailing-list
http://seclists.org/fulldisclosure/2022/Jan/39
Mailing List, Third Party Advisory mailing-list
https://lists.debian.org/debian-lts-announce/2022/02/msg00017.html
Third Party Advisory vendor-advisory
https://www.debian.org/security/2022/dsa-5076
Mitigation, Patch, Third Party Advisory
https://github.com/h2database/h2database/security/advisories

Scores

CVSS v3 9.8
EPSS 0.6477
EPSS Percentile 99.2%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact total

Lab Environment

COMMUNITY
Community Lab
docker pull eclipse-temurin:11-jdk-alpine

Details

CWE
CWE-88
Status published
Products (6)
com.h2database/h2 0 - 2.1.210Maven
debian/debian_linux 9.0
debian/debian_linux 10.0
debian/debian_linux 11.0
h2database/h2 1.1.100 - 2.0.206
oracle/communications_cloud_native_core_console 1.9.0
Published Jan 19, 2022
Tracked Since Feb 18, 2026