Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted HTTP/JDBC request with malicious class identifier
-
DeliveryCalcite receives externally-controlled class name input
-
ExploitUnsafe reflection invokes Class.forName() or equivalent
-
ExecutionUnintended class loaded or instantiated in JVM
-
ImpactPartial 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Primary rating from Vendor (apache).
CVSS VectorVendor: apache
Lifecycle Timeline
4DescriptionCVE.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.
Blast Radius
ecosystem impact- 20 maven packages depend on org.apache.calcite:calcite-core (9 direct, 11 indirect)
Ecosystem-wide dependent count for version 1.5.0.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-33906
GHSA-c2rv-hwqm-wjpg
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB