Code injection in Apache Calcite Avatica JDBC driver



Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2022-36364
CWE-ID CWE-94
Exploitation vector Network
Public exploit N/A
Vulnerable software
Apache Calcite Avatica
Other software / Other software solutions

Vendor Apache Foundation

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Code Injection

EUVDB-ID: #VU65864

Risk: Medium

CVSSv4.0: 6.2 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2022-36364

CWE-ID: CWE-94 - Improper Control of Generation of Code ('Code Injection')

Exploit availability: No

Description

The vulnerability allows a remote user to execute arbitrary code on the target system.

The vulnerability exists due to improper input validation in JDBC driver, which creates HTTP client instances based on class names provided via "httpclient_impl" connection property. The driver does not verify if the class implements the expected interface before instantiating it. A remote user with ability to control JDBC connection parameters can inject arbitrary class name and execute code on the system.


Mitigation

Install updates from vendor's website.

Vulnerable software versions

Apache Calcite Avatica: 1.10.0 - 1.21.0

CPE2.3 External links

https://seclists.org/oss-sec/2022/q3/75


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###