

H2 DATABASE UPDATE
Related: New Google Tool Helps Developers Visualize Dependencies of Open Source Projects < LINK REL STYLESHEET HREF ' JSP - Styles.css ' TYPE ' text / css ' > < / HEAD > < BODY > < H2 > Database Update Using JDBC from a Java Bean < / H2 >.Related: ICS Vendors Respond to Log4j Vulnerabilities Only local data sources can be used,” the H2 maintainers explain. “Since version 2.0.206 H2 Console and linked tables explicitly forbid attempts to specify LDAP URLs for JNDI.
H2 DATABASE UPGRADE
The vulnerability was addressed with the release of H2 database version 2.0.206 and all those who use the H2 console are advised to upgrade to this release as soon as possible. The built-in H2 shell can also be leveraged as an attack vector, though the scenario is highly unlikely, JFrog says. The researchers also identified a series of SQL-based attack vectors, some requiring authentication with high privileges, such as those of an administrator. JFrog’s security researchers, who identified the vulnerability, explain that the most severe of the possible attack vectors is through the H2 console itself, mainly because one can use public search tools to locate WAN-facing vulnerable consoles.
H2 DATABASE CODE
The issue exists because unfiltered attacker-controlled URLs are passed to a lookup function, which essentially allows for the injection of Java code remotely, thus leading to RCE.

If remote access was enabled explicitly and some protection method (such as security constraint) wasn't set, an intruder can load own custom class and execute its code in a process with H2 Console (H2 Server process or a web server with H2 Console servlet),” the H2 maintainers explain. “H2 Console doesn't accept remote connections by default.

However, the severity of the issue becomes critical when the H2 console is exposed to the LAN or WAN, given that it could be exploited to execute code remotely, without authentication. The new bug, JFrog says, has the same root cause as the famous Log4Shell bug – they both involve the Java Naming and Directory Interface (JNDI) lookup feature – yet its impact isn’t as widespread, mainly because the console isn’t always used with the H2 database and because the H2 console listens to localhost by default. All versions through 2.0.204 (released in December 2021) are affected. Tracked as CVE-2021-42392, the newly disclosed vulnerability has been lurking in H2 since version 1.1.100, which was released in 2008. H2 database provides a list of features such as Pure. A critical, unauthenticated remote code execution vulnerability has been impacting the H2 database console since 2008.Īn open-source Java SQL database, H2 is an in-memory solution that eliminates the need to store data on disk, and is one of the most popular Maven packages, having roughly 7,000 artifact dependencies, H2 database is an open-source in-memory database that can be easily embedded into Java application.
