Skip to main content

Apache Calcite CVE-2026-46718

| EUVDEUVD-2026-33906 MEDIUM
Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') (CWE-470)
2026-06-02 apache GHSA-c2rv-hwqm-wjpg
6.5
CVSS 3.1 · Vendor: apache
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted HTTP/JDBC request with malicious class identifier
  2. Delivery
    Calcite receives externally-controlled class name input
  3. Exploit
    Unsafe reflection invokes Class.forName() or equivalent
  4. Execution
    Unintended class loaded or instantiated in JVM
  5. Impact
    Partial data disclosure or integrity manipulation achieved

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V15 - Secure Coding and Architecture Reflection safety, class allowlisting
Exploitation Conditions

No authentication is required and no user interaction is needed - the CVSS vector AV:N/AC:L/PR:N/UI:N confirms remote unauthenticated exploitation against any network-accessible interface that feeds external input into Apache Calcite's reflection-sensitive code paths. The primary limiting factor is deployment architecture: Calcite is an embedded library, so exploitation is only possible if the host application exposes a Calcite query, expression, or plugin interface to untrusted network input without its own input validation layer. Applications that restrict SQL or expression input to authenticated users or internal services substantially reduce exposure. All Calcite versions from 1.5.0 to 1.41 are affected regardless of operating system or JVM version.

Impact

The CVSS 3.1 score of 6.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N) indicates network-reachable, zero-authentication exploitation with low attack complexity - on paper a straightforward network attack. However, EPSS of 0.02% in the 7th percentile signals that the broader security community currently assesses exploitation probability as very low. There is no CISA KEV listing and no public exploit code identified, meaning exploitation remains theoretical. The Scope:Unchanged and absence of Availability impact further constrain the worst-case outcome to partial data disclosure and partial integrity violation rather than full compromise or denial of service. Real-world risk is tempered by Calcite's deployment model: it is almost always an embedded library, so exploitation requires the host application to pipe untrusted input into Calcite's reflection-sensitive code paths. Organizations running applications that pass user-supplied SQL, expressions, or plugin identifiers through Calcite internals should treat this as a genuine medium-priority patching item; those with no external exposure of Calcite query surfaces face lower urgency.

Exploit ScenarioDerived

An attacker sends a crafted SQL query or expression payload to an application that exposes a Calcite-backed query interface (e.g., a JDBC endpoint or REST API), embedding a class name or type identifier as the malicious input. Calcite's reflection logic processes the attacker-controlled string without sufficient validation, causing the JVM to instantiate or invoke an unintended class, potentially leaking configuration data or manipulating internal state. No public proof-of-concept exists at this time, so exploitation would require independent discovery of the specific reflection sink and a suitable class gadget.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 02, 2026

Unsafe reflection in Apache Calcite 1.5.0 through 1.41 allows unauthenticated remote attackers to supply externally-controlled input that influences class or code selection at runtime, resulting in partial confidentiality and integrity impact (CVSS C:L/I:L). The vulnerability stems from CWE-470, where user-supplied input is used unsanitized to drive Java reflection operations. No public exploit code exists and no active exploitation has been confirmed; EPSS of 0.02% (7th percentile) indicates low community-assessed exploitation probability at time of analysis.

RemediationAI

Upgrade Apache Calcite to version 1.42 or later, which contains the vendor-confirmed fix per the Apache mailing list advisory at https://lists.apache.org/thread/9s37svo343w5ck1ovh478lkzcqk4949w and the oss-security disclosure at http://www.openwall.com/lists/oss-security/2026/06/01/7. For downstream projects embedding Calcite as a transitive dependency, update the dependency version in your build configuration (Maven, Gradle) and re-release. If an immediate upgrade is not feasible, a compensating control is to restrict the application layer so that untrusted external input cannot reach Calcite's class-selection or plugin-loading interfaces - for example, by validating and allowlisting any user-supplied type names, function names, or driver class identifiers before they are passed to Calcite. This allowlist approach has the trade-off of requiring ongoing maintenance as legitimate class references change. Blocking network access to query endpoints is not a practical workaround for embedded deployments but can reduce exposure in cases where Calcite-backed REST or JDBC endpoints are publicly reachable.

Affected VersionsENISA

Apache Calcite 1.5.0 <1.42

Affected Packages

maven org.apache.calcite:calcite-core fix: 1.42.0
euvd apache_calcite fix: 1.42

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Apache Calcite is a widely embedded SQL query parsing, planning, and optimization framework used as a foundational library by Apache Hive, Flink, Drill, Phoenix, and others. CWE-470 (Use of Externally-Controlled Input to Select Classes or Code) describes a class of vulnerability where attacker-supplied strings are passed to reflective class-loading APIs (e.g., Class.forName(), newInstance()) without adequate allowlisting or validation. This allows an attacker to influence which Java class is instantiated or which code path is invoked. The affected CPE is cpe:2.3:a:apache_software_foundation:apache_calcite:*:*:*:*:*:*:*:*, spanning all releases from 1.5.0 up to but not including 1.42. Because Calcite is typically embedded rather than exposed directly, the practical attack surface depends on how the consuming application exposes Calcite's query or expression parsing interfaces to untrusted input.

Know when Apache Calcite gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (apache) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Red Hat 5.4 MEDIUM

Primary rating from Vendor (apache).

CVSS VectorVendor: apache

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

4
CVSS changed
Jun 02, 2026 - 16:22 NVD
6.5 (MEDIUM)
Patch available
Jun 02, 2026 - 11:00 EUVD
CVE Published
Jun 02, 2026 - 09:17 nvd
UNKNOWN (no severity yet)
CVE Published
Jun 02, 2026 - 09:17 nvd
MEDIUM 6.5

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy