Black Friday60% off BLACKFRIDAY2026
Platform
PlansPartners
Resources
ToolsBlogDocs
Sign Up →
critical·Product Based Web Vulnerabilities·Updated Nov 23, 2026

CVE-2022-23221 Scanner

CVE-2022-23221 Scanner - Remote Code Execution (RCE) vulnerability in H2 Database

How to fix it
Est. Time~10 seconds
Scan TypeGroup Scan
Targetsdomain, subdomain, ipv4
CostFree
0
Times Used
continuous scan runs
4.7k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
9.8
CVSScritical
Exploitable remotely over the internet · no authentication required.
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.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
n/aby n/a
n/a
Updated Nov 29, 2026View on NVD →
Detail

The H2 Database is widely used as a lightweight, fast database engine across various applications. It finds usage among developers for prototyping and testing, while also serving as a backend for many web applications. This database is appreciated for its portability and ease of integration into Java applications. Being an open-source solution, it allows for flexible usage among small to medium scale projects. It comes equipped with a web console for management and query execution, which is particularly used by database administrators. The H2 Database enables efficient storage and retrieval of data by software developers and IT professionals.

The vulnerability identified in the H2 Database involves a pre-authentication remote code execution (RCE). It affects versions from 1.4.198 up to, but not including, 2.1.210. An unauthenticated attacker can exploit this vulnerability by sending specially crafted JDBC URLs. These URLs can bypass the restrictions put in place and execute arbitrary operating system commands. This poses a significant risk as it does not require user interaction, and the impact includes potential full control over the affected systems' operations. The exploit involves manipulating the database's web console, which serves as an entry point for unauthorized actions.

Technical exploitation of this vulnerability involves appending 'FORBID_CREATION=TRUE' to the JDBC URL, ending it with a backslash, and then using a 'CREATE TRIGGER' SQL command. This setup allows running a JavaScript block that triggers the execution of OS commands through the H2 web console. The error response reflects the command output, indicating a successful execution. The vulnerability is particularly present in the JDBC configurations of the vulnerable versions, where misconfiguration allows this exploitation. The role of the 'INIT' trigger in the process highlights a flaw in initialization security of the console. JavaScript used in this context executes code, demonstrating a critical loophole in remote command protection.

Should this vulnerability be exploited by attackers, the effects could be severe. The main consequence is unauthorized command execution in the host system, leading to potential data breaches, system compromise, and downtime. Attackers could gain complete control over the database server, extract sensitive information, and manipulate or delete records. Such access could further be used as a pivot point for lateral movement within an internal network. The host system's integrity and confidentiality stand at risk as attackers may also deploy additional malware or pursue broader exploitation of connected services. This RCE vulnerability essentially provides a backdoor access point into the infrastructure housing the vulnerable software.

REFERENCES

Solution Advice
  • Upgrade the H2 Database to version 2.1.210 or later to patch the vulnerability.
  • Disable the web console if not necessary, or restrict its access to trusted network locations only.
  • Regularly conduct security audits and vulnerability evaluations to identify and rectify similar weaknesses.
  • Ensure that any service utilizing H2 Database follows best security practices, including safe configuration and restricted privileges.
  • Implement network monitoring to detect unusual activity or access patterns that might suggest exploit attempts.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

12,000+ scanners. Free to start. No credit card required.

Browse All Tools