The org.h2.util.JdbcUtils.getConnection method of the H2 database takes as parameters the class name of the driver and URL of the database. An attacker may pass a JNDI driver name and a URL leading to a LDAP or RMI servers, causing remote code execution. This can be exploited through various attack vectors, most notably through the H2 Console which leads to unauthenticated remote code execution.
| Software | From | Fixed in |
|---|---|---|
| h2database / h2 | 1.1.000 | 2.0.204.x |
| debian / debian_linux | 9.0 | 9.0.x |
| debian / debian_linux | 10.0 | 10.0.x |
| debian / debian_linux | 11.0 | 11.0.x |
| oracle / communications_cloud_native_core_policy | 1.15.0 | 1.15.0.x |
com.h2database / h2
|
1.1.100 | 2.0.206 |