CVE-2021-44521: 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...

Critical CVSS 9.1

CVE id
CVE-2021-44521
Published
Last modified

Affected packages

PackageAffected versionsFixed in
Apache Cassandra
Runtimes and servers
>= 3.0.0, < 3.0.26
>= 3.11.0, < 3.11.12
>= 4.0.0, < 4.0.2
3.0.26, 3.11.12, 4.0.2

How to fix it

Upgrade Apache Cassandra to the fixed release of the line you run: 3.0.26, 3.11.12, 4.0.2.

nodetool version
  • Install the patched Cassandra release of your series (the cassandra image tag) and restart the nodes.

A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.

Details

When running Apache Cassandra with the following configuration: enableuserdefinedfunctions: true enablescripteduserdefinedfunctions: true enableuserdefinedfunctions_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

Am I affected?

Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.

or paste its content

Needed when you paste. package.json and pyproject.toml only have version ranges: use the lockfile next to them.

Only package names and versions are checked; the file itself is not kept. We use your email to send this report and nothing else unless you tick the box above. Privacy policy.

About this data

Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.