Code Injection in H2 Database - #VU159733
Published: January 5, 2022 / Updated: November 6, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to execute arbitrary code in the Java process hosting H2 Console.
The vulnerability exists due to H2 Console permitting custom classes to be loaded from remote servers through JNDI when remote access is explicitly enabled without access protection. An unauthenticated remote attacker can supply an LDAP URL referencing an attacker-controlled server to load a malicious class and execute its code.