CVE-2026-46718: Calcite core Apache Calcite Is Vulnerable To Vulnerability

MODERATE
Advisory Identifier: GHSA-c2rv-hwqm-wjpg
CVSS 6.5
CWE-470
Published
Advisory Summary

CVE-2026-46718 is a MODERATE (CVSS 6.5) apache calcite is vulnerable to vulnerability (CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')) affecting Calcite core libraries in the Maven ecosystem. The issue involves apache calcite is vulnerable to use of externally-controlled input to select classes. Remediation is available by upgrading affected packages to version 1.42.0.

CVE-2026-46718 at a Glance

CVE Identifier CVE-2026-46718
GHSA Identifier GHSA-c2rv-hwqm-wjpg
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
Affected Product Calcite core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

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

How to Fix CVE-2026-46718

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

org.apache.calcite:calcite-core fixed: 1.42.0
<dependency>
    <groupId>org.apache.calcite</groupId>
    <artifactId>calcite-core</artifactId>
    <version>1.42.0</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=org.apache.calcite

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.apache.calcite

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

Note: The mvn dependency:tree -Dincludes=org.apache.calcite 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-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection'), where the product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code. In Calcite core, 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

Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') vulnerability in Apache Calcite. This issue affects Apache Calcite: from 1.5.0 before 1.42. Users are recommended to upgrade to version 1.42, which fixes the issue.

CVE-2026-46718 Affected Calcite core Versions

1 component(s)
Fixed Versions:
1.42.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.calcite:calcite-core
Maven
≥ 1.5.0
< 1.42.0
1.42.0

References

Frequently Asked Questions

What is CVE-2026-46718?
CVE-2026-46718 is a security vulnerability in Calcite core involving Apache Calcite is Vulnerable to Use of Externally-Controlled Input to Select Classes under CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection').
Which Calcite core versions are affected?
Affected versions include releases prior to 1.42.0 across affected packages: org.apache.calcite:calcite-core.
What version fixes CVE-2026-46718?
Upgrading to 1.42.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is calcite-core affected?
Yes, org.apache.calcite:calcite-core is affected in releases prior to 1.42.0. Upgrade your dependency to 1.42.0 or later.
What is the CVSS score of CVE-2026-46718?
CVE-2026-46718 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2026-46718?
CVE-2026-46718 is classified under CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') (The product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code.).
How can I check Maven dependencies for CVE-2026-46718?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.calcite'. 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-c2rv-hwqm-wjpg",
  "modified" : "2026-07-09T21:19:28Z",
  "published" : "2026-06-02T12:31:26Z",
  "aliases" : [ "CVE-2026-46718" ],
  "summary" : "Apache Calcite is Vulnerable to Use of Externally-Controlled Input to Select Classes",
  "details" : "Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') vulnerability in Apache Calcite.\n\nThis issue affects Apache Calcite: from 1.5.0 before 1.42.\n\nUsers are recommended to upgrade to version 1.42, which fixes the issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.calcite:calcite-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.5.0"
      }, {
        "fixed" : "1.42.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-46718"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/calcite/commit/5855cfa14d8038e2a123ff6ce9722edce0e0cc25"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/calcite"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/CALCITE-7532"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/9s37svo343w5ck1ovh478lkzcqk4949v"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2026/06/01/7"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-470" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-09T21:19:28Z",
    "nvd_published_at" : "2026-06-02T10:16:25Z"
  }
}