Description
H2 1.4.197, as used in Datomic before 0.9.5697 and other products, allows remote code execution because CREATE ALIAS can execute arbitrary Java code. NOTE: the vendor's position is "h2 is not designed to be run outside of a secure environment."
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.
Metasploit 1 module
-
H2 Web Interface Create Alias RCE
exploit/linux/http/h2_webinterface_rce
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | com.datomic:datomic-free | < 0.9.5697 | 0.9.5697 | GHSA-9pf8-qqhm-7w64 |
Advisories 1
- WID-SEC-2024-0094 Atlassian Bamboo: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 15, 2024
References
- https://forum.datomic.com/t/important-security-update-0-9-5697/379
- 44422 exploit
- http://blog.datomic.com/2018/03/important-security-update.html
- https://mthbernardes.github.io/rce/2018/03/14/abusing-h2-database-alias.html
- [ignite-user] 20191213 Re: H2 version security concern mailing-list
- [nifi-commits] 20200421 svn commit: r1876802 - /nifi/site/trunk/registry-security.html mailing-list
- https://github.com/h2database/h2database/issues/1225
- https://github.com/h2database/h2database/issues/3099
- https://github.com/h2database/h2database/issues/1808#issuecomment-599203115
- https://security.netapp.com/advisory/ntap-20240719-0003/