[
https://issues.apache.org/jira/browse/CALCITE-7610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18118038#comment-18118038
]
Stamatis Zampetakis commented on CALCITE-7610:
----------------------------------------------
[https://www.cve.org/CVERecord?id=CVE-2026-70410]
CVE-2026-70410: Apache Calcite Avatica: Unrestricted class initialization when
instantiating plugins
Severity: low
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.
Credit:
tinyb0y (finder)
ReturnZero (finder)
n0mi1k (finder)
Yan Xu (finder)
> Improve type checking when instantiating plugins
> ------------------------------------------------
>
> Key: CALCITE-7610
> URL: https://issues.apache.org/jira/browse/CALCITE-7610
> Project: Calcite
> Issue Type: Task
> Components: avatica
> Reporter: Stamatis Zampetakis
> Assignee: Stamatis Zampetakis
> Priority: Minor
> Fix For: avatica-1.29
>
>
> The goal is to provide better quality errors when instantiating plugins and
> the type is not the expected one.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)