CVE-2026-46718 Apache Calcite: A user-controled model can load arbitrary classes, leading to code execution
Attackers can execute arbitrary code by providing a user-controlled model that triggers unsafe reflection in Apache Calcite.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-46718?
CVE-2026-46718 is a medium-severity code injection vulnerability in Apache Calcite, published on 2 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-470
Which versions are affected by CVE-2026-46718?
2 open source packages ship an affected version, including org.apache.calcite:calcite-core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.calcite:calcite-core Maven | From 1.5.0 | 1.42.0 |
org.apache.calcite:calcite-core Maven | From 1.5.0 | 1.42.0 |
Products include Apache Calcite.
How do I fix CVE-2026-46718?
Upgrade org.apache.calcite:calcite-core to 1.42.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-46718 being exploited?
There is no known exploitation of CVE-2026-46718 in the wild and no public exploit code.
Other vulnerabilities in Apache Calcite
Sources
Also known as CLEANSTART-2026-CR95275, CLEANSTART-2026-HU10682, CLEANSTART-2026-UC89938, CLEANSTART-2026-WS21723, ECHO-26a2-2636-f4e1, GHSA-c2rv-hwqm-wjpg and 2 more.