Remote code execution for scripted UDFs (Apache Software Foundation Apache Cassandra)
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
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H | NVD · nvd@nist.gov (Primary) |
| CVSS 2.0 | HIGH 8.5 | AV:N/AC:M/Au:S/C:C/I:C/A:C | NVD · nvd@nist.gov (Primary) |
Advisories
- GHSA-8ffc-79xg-29w8 — Apache Cassandra vulnerable to Code Injection due to unsafe configuration
European references
- ENISA EUVD · EUVD-2022-0915
- GCVE · GCVE-0-2021-44521
CERT-FR advisories
- CERTFR-2023-AVI-0004 — Multiples vulnérabilités dans IBM Sterling Global Mailbox · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:apache:cassandra:*:*:*:*:*:*:*:*≥ 3.0.0 < 3.0.26cpe:2.3:a:apache:cassandra:*:*:*:*:*:*:*:*≥ 3.11.0 < 3.11.12cpe:2.3:a:apache:cassandra:*:*:*:*:*:*:*:*≥ 4.0.0 < 4.0.2
Affected products
| Product | Versions |
|---|---|
| Apache Software Foundation · Apache Cassandra | affected 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
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |