Remote code execution for scripted UDFs
Apache Software Foundation Apache Cassandra
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.apache.cassandra:cassandra-all Maven |
|
|
Apache Software Foundation Apache Cassandra
| Product | Affected | Fixed in |
|---|---|---|
| org.apache.cassandra:cassandra-all Maven |
|
|
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.
From the CVE record · apache
Apache Cassandra is vulnerable when user-defined functions and scripted user-defined functions are enabled and user-defined function threads are disabled. An attacker with permission to create user-defined functions in the cluster can execute arbitrary code on the host; this configuration remains unsafe after the listed fixes.
Check Apache Cassandra deployments using Maven org.apache.cassandra:cassandra-all versions before 3.0.26, 3.11.0 through 3.11.11, or 4.0.0 through 4.0.1.