CVE-2018-10054: Datomic free Improper Input Validation Vulnerability

HIGH
Advisory Identifier: GHSA-9pf8-qqhm-7w64
CVSS 8.8
CWE-20
Published
Advisory Summary

CVE-2018-10054 is a HIGH (CVSS 8.8) improper input validation vulnerability (CWE-20: Improper Input Validation) affecting Datomic free libraries in the Maven ecosystem. The issue involves improper input validation in datomic. Remediation is available by upgrading affected packages to version 0.9.5697.

CVE-2018-10054 at a Glance

CVE Identifier CVE-2018-10054
GHSA Identifier GHSA-9pf8-qqhm-7w64
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-20: Improper Input Validation
Affected Product Datomic free
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2018-10054

To remediate this vulnerability, upgrade all affected Datomic free dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

com.datomic:datomic-free fixed: 0.9.5697
<dependency>
    <groupId>com.datomic</groupId>
    <artifactId>datomic-free</artifactId>
    <version>0.9.5697</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=com.datomic

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2018-10054, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.datomic

Analyze the terminal output to locate any version of Datomic free in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.5697), your application is affected.

Note: The mvn dependency:tree -Dincludes=com.datomic command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Datomic free, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2018-10054 Affected Datomic free Versions

1 component(s)
Fixed Versions:
0.9.5697
Product / Package Ecosystem Affected Versions Fixed Version
com.datomic:datomic-free
Maven
< 0.9.5697
0.9.5697

References

NVD — CVE-2018-10054 NVD
https://nvd.nist.gov/vuln/detail/CVE-2018-10054
Datomic free Source Repository REPOSITORY
https://github.com/h2database/h2database/issues/1225
Datomic free Source Repository REPOSITORY
https://github.com/h2database/h2database/issues/1808#issuecomment-599203115
Datomic free Source Repository REPOSITORY
https://github.com/h2database/h2database/issues/3099
Datomic free Security Information SECURITY
https://forum.datomic.com/t/important-security-update-0-9-5697/379
lists.apache.org/thread.html/582d416... WEB
https://lists.apache.org/thread.html/582d4165de6507b0be82d5a6f9a1ce392ec43a00c9fed32bacf7fe1e%40%3Cuser.ignite.apache.org%3E
lists.apache.org/thread.html/582d416... WEB
https://lists.apache.org/thread.html/582d4165de6507b0be82d5a6f9a1ce392ec43a00c9fed32bacf7fe1e@%3Cuser.ignite.apache.org%3E
lists.apache.org/thread.html/r8aaf4e... WEB
https://lists.apache.org/thread.html/r8aaf4ee16bbaf6204731d4770d96ebb34b258cd79b491f9cdd7f2540%40%3Ccommits.nifi.apache.org%3E
lists.apache.org/thread.html/r8aaf4e... WEB
https://lists.apache.org/thread.html/r8aaf4ee16bbaf6204731d4770d96ebb34b258cd79b491f9cdd7f2540@%3Ccommits.nifi.apache.org%3E
mthbernardes.github.io/rce/2018/03/14/abus... WEB
https://mthbernardes.github.io/rce/2018/03/14/abusing-h2-database-alias.html
Datomic free Security Information SECURITY
https://security.netapp.com/advisory/ntap-20240719-0003
www.exploit-db.com/exploits/44422 WEB
https://www.exploit-db.com/exploits/44422
Datomic free Security Information SECURITY
http://blog.datomic.com/2018/03/important-security-update.html

Frequently Asked Questions

What is CVE-2018-10054?
CVE-2018-10054 is a security vulnerability in Datomic free involving Improper Input Validation in Datomic under CWE-20: Improper Input Validation.
Which Datomic free versions are affected?
Affected versions include releases prior to 0.9.5697 across affected packages: com.datomic:datomic-free.
What version fixes CVE-2018-10054?
Upgrading to 0.9.5697 (or the latest patched release for your respective branch) resolves the vulnerability.
Is datomic-free affected?
Yes, com.datomic:datomic-free is affected in releases prior to 0.9.5697. Upgrade your dependency to 0.9.5697 or later.
What is the CVSS score of CVE-2018-10054?
CVE-2018-10054 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2018-10054?
CVE-2018-10054 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Maven dependencies for CVE-2018-10054?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.datomic'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-9pf8-qqhm-7w64",
  "modified" : "2024-07-19T15:31:45Z",
  "published" : "2022-05-13T01:30:17Z",
  "aliases" : [ "CVE-2018-10054" ],
  "summary" : "Improper Input Validation in Datomic",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.datomic:datomic-free"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.9.5697"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.9.5656"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-10054"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/h2database/h2database/issues/1225"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/h2database/h2database/issues/1808#issuecomment-599203115"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/h2database/h2database/issues/3099"
  }, {
    "type" : "WEB",
    "url" : "https://forum.datomic.com/t/important-security-update-0-9-5697/379"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/582d4165de6507b0be82d5a6f9a1ce392ec43a00c9fed32bacf7fe1e%40%3Cuser.ignite.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/582d4165de6507b0be82d5a6f9a1ce392ec43a00c9fed32bacf7fe1e@%3Cuser.ignite.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r8aaf4ee16bbaf6204731d4770d96ebb34b258cd79b491f9cdd7f2540%40%3Ccommits.nifi.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r8aaf4ee16bbaf6204731d4770d96ebb34b258cd79b491f9cdd7f2540@%3Ccommits.nifi.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://mthbernardes.github.io/rce/2018/03/14/abusing-h2-database-alias.html"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20240719-0003"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/44422"
  }, {
    "type" : "WEB",
    "url" : "http://blog.datomic.com/2018/03/important-security-update.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-06-30T14:03:27Z",
    "nvd_published_at" : "2018-04-11T20:29:00Z"
  }
}