CVE-2026-70410 PUBLISHED

Apache Calcite Avatica: Unrestricted class initialization when instantiating plugins

Assigner: apache
Reserved: 04.08.2026 Published: 22.09.2026 Updated: 22.09.2026

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.

Product Status

Vendor Apache Software Foundation
Product Apache Calcite Avatica
Versions Default: unaffected
  • affected from 0 to 1.29.0 (excl.)

Credits

  • tinyb0y finder
  • ReturnZero finder
  • n0mi1k finder
  • Yan Xu finder

References

Problem Types

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