Description
Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') vulnerability in Apache Calcite Avatica. Plugin instantiation (via AvaticaUtils#instantiatePlugin and other methods) initializes arbitrary classes via unrestricted calls to Class.forName(String) which by default triggers initialization. This may lead to the execution of static initializer blocks in arbitrary classes present in the classpath. The instantiation APIs should initialize and instantiate only classes implementing the specified plugin interface passed as input in conjunction with the desired classname. At the moment of writing, there are no well-known or widely used classes with dangerous static initializer blocks so the severity is low.



This issue affects Apache Calcite Avatica: before 1.29.0.



Users are recommended to upgrade to version 1.29.0, which fixes the issue.
Published: 2026-09-22
Score: n/a
EPSS: n/a
KEV: No
Impact: Unrestricted class initialization potentially leading to arbitrary static code execution
Action: Update to 1.29.0
AI Analysis

Impact

Use of unsafe reflection allows an attacker to trigger the static initializer of any class present in the application’s classpath. If that initializer performs privileged operations, the attacker could gain unauthorized privileges, modify data, or disrupt service. The vulnerability is classified as CWE‑470. While no widely deployed classes with dangerous static initializers are known, the potential remains if malicious or vulnerable classes are introduced.

Affected Systems

The issue is in Apache Calcite Avatica versions before 1.29.0. Systems running any affected release of Avatica may call AvaticaUtils.instantiatePlugin or similar APIs and automatically load a class identified by a supplied name.

Risk and Exploitability

The EPSS score is unavailable and the vulnerability is not in CISA’s KEV catalog, indicating no publicly reported exploitation yet. The attack would likely require control over the plugin name passed to the instantiation API or access to the application’s classpath. Because the trigger is internal to the library, the risk of remote exploitation is low unless an attacker can influence the plugin configuration. Nonetheless, the presence of unrestricted class initialization makes it an actionable security concern.

Generated by OpenCVE AI on September 22, 2026 at 16:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Apache Calcite Avatica to version 1.29.0 or later.
  • If upgrading is not immediately possible, configure the application to use a restricted classpath that contains only trusted classes and remove any untrusted entries.
  • Disable or remove plugin instantiation functionality or validate the class name against a whitelist of approved plugin classes before calling instantiatePlugin.

Generated by OpenCVE AI on September 22, 2026 at 16:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 22 Sep 2026 15:45:00 +0000

Type Values Removed Values Added
Description Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') vulnerability in Apache Calcite Avatica. Plugin instantiation (via AvaticaUtils#instantiatePlugin and other methods) initializes arbitrary classes via unrestricted calls to Class.forName(String) which by default triggers initialization. This may lead to the execution of static initializer blocks in arbitrary classes present in the classpath. The instantiation APIs should initialize and instantiate only classes implementing the specified plugin interface passed as input in conjunction with the desired classname. At the moment of writing, there are no well-known or widely used classes with dangerous static initializer blocks so the severity is low. This issue affects Apache Calcite Avatica: before 1.29.0. Users are recommended to upgrade to version 1.29.0, which fixes the issue.
Title Apache Calcite Avatica: Unrestricted class initialization when instantiating plugins
Weaknesses CWE-470
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-09-22T15:39:46.187Z

Reserved: 2026-08-04T11:08:06.676Z

Link: CVE-2026-70410

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-22T16:17:52.930

Modified: 2026-09-22T16:17:52.930

Link: CVE-2026-70410

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-22T16:30:12Z

Weaknesses
  • CWE-470

    Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')