Apache Cassandra vulnerable to Code Injection due to unsafe configuration
Critical severity
GitHub Reviewed
Published
Feb 12, 2022
to the GitHub Advisory Database
•
Updated Jan 30, 2023
Package
Affected versions
< 3.0.26
>= 3.11.0, < 3.11.12
>= 4.0.0, < 4.0.2
Patched versions
3.0.26
3.11.12
4.0.2
Description
Published by the National Vulnerability Database
Feb 11, 2022
Published to the GitHub Advisory Database
Feb 12, 2022
Reviewed
Feb 23, 2022
Last updated
Jan 30, 2023
When running Apache Cassandra with the following configuration: enable_user_defined_functions: true enable_scripted_user_defined_functions: true enable_user_defined_functions_threads: false it is possible for an attacker to execute arbitrary code on the host. The attacker would need to have enough permissions to create user defined functions in the cluster to be able to exploit this. Note that this configuration is documented as unsafe, and will continue to be considered unsafe after this CVE.
References