CVE-2018-10054 Improper Input Validation in Datomic

High 8.8 Published Updated

Remote attackers can execute arbitrary Java code via the CREATE ALIAS command in the H2 database, affecting applications using this library.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-10054?

CVE-2018-10054 is a high-severity code injection vulnerability in n/a, published on 11 Apr 2018. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-20

Which versions are affected by CVE-2018-10054?

2 open source packages ship an affected version, including com.datomic:datomic-free. It affects 2 products.

PackageAffectedFixed in
com.datomic:datomic-free MavenAll versions0.9.5697
com.datomic:datomic-free MavenAll versions0.9.5697

Products include Cognitect Datomic, H2database H2.

How do I fix CVE-2018-10054?

Upgrade com.datomic:datomic-free to 0.9.5697 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2018-10054 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-10054 exists.

Public exploit code: 1 Metasploit module.

Sources

Also known as GHSA-9pf8-qqhm-7w64.

Is CVE-2018-10054 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free