CVE-2026-70410

Apache Calcite Avatica: Unrestricted class initialization when instantiating plugins

Published Sep 22, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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. The CVSS score of 8.8 indicates high severity.

Remediation

No solution or workaround provided in the CVE record.

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 21:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Apache
Apache apache Calcite Avatica
Vendors & Products Apache
Apache apache Calcite Avatica
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
Weaknesses
  • CWE-470

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

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Sep 22, 2026, 7:19 PM
Reserved
Aug 4, 2026, 11:08 AM
Status
Awaiting Analysis
Published
Sep 22, 2026, 4:17 PM
Modified
Sep 22, 2026, 8:17 PM