Remote code execution for scripted UDFs (Apache Software Foundation Apache Cassandra)

CVE-2021-44521
CRITICAL 9.1

At a glance

Source
NVD
EPSS
EPSS 58.90 % · percentile 99 ()
State
PUBLISHED
Published
Updated
Assigner
apache
NVD status
Modified

Description

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.

Weaknesses (CWE)

  • CWE-94 — Improper Control of Generation of Code
  • CWE-732 — Incorrect Permission Assignment for Critical Resource

References

Scores

VersionScoreVectorScored by
CVSS 3.1CRITICAL 9.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)
CVSS 2.0HIGH 8.5AV:N/AC:M/Au:S/C:C/I:C/A:CNVD · nvd@nist.gov (Primary)

Advisories

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Apache Software Foundation · Apache Cassandraaffected 3.0.0 < unspecified ; affected unspecified < 3.0.26 ; affected 3.1 < unspecified ; affected unspecified < 3.11.12 ; affected 4.0.0 < unspecified ; affected unspecified < 4.0.2

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD