8.1
HIGH
CVE-2022-29240
Scylla CQL Decompression Buffer Initialization Vulnerability (Authentication Bypass and Sensitive Information Disclosure)
Description

Scylla is a real-time big data database that is API-compatible with Apache Cassandra and Amazon DynamoDB. When decompressing CQL frame received from user, Scylla assumes that user-provided uncompressed length is correct. If user provides fake length, that is greater than the real one, part of decompression buffer won't be overwritten, and will be left uninitialized. This can be exploited in several ways, depending on the privileges of the user. 1. The main exploit is that an attacker with access to CQL port, but no user account, can bypass authentication, but only if there are other legitimate clients making connections to the cluster, and they use LZ4. 2. Attacker that already has a user account on the cluster can read parts of uninitialized memory, which can contain things like passwords of other users or fragments of other queries / results, which leads to authorization bypass and sensitive information disclosure. The bug has been patched in the following versions: Scylla Enterprise: 2020.1.14, 2021.1.12, 2022.1.0. Scylla Open Source: 4.6.7, 5.0.3. Users unable to upgrade should make sure none of their drivers connect to cluster using LZ4 compression, and that Scylla CQL port is behind firewall. Additionally make sure no untrusted client can connect to Scylla, by setting up authentication and applying workarounds from previous point (firewall, no lz4 compression).

INFO

Published Date :

Sept. 15, 2022, 10:15 p.m.

Last Modified :

Sept. 21, 2022, 2:17 p.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

2.2
Affected Products

The following products are affected by CVE-2022-29240 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Scylladb scylla
2 Scylladb scylladb
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2022-29240.

URL Resource
https://github.com/scylladb/scylla/security/advisories/GHSA-25pq-rrqm-6fmr Third Party Advisory
https://github.com/scylladb/scylladb/commit/1c2eef384da439b0457b6d71c7e37d7268e471cb Patch Third Party Advisory
https://github.com/scylladb/scylladb/issues/11476 Issue Tracking Patch Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-29240 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-29240 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Sep. 21, 2022

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://github.com/scylladb/scylla/security/advisories/GHSA-25pq-rrqm-6fmr No Types Assigned https://github.com/scylladb/scylla/security/advisories/GHSA-25pq-rrqm-6fmr Third Party Advisory
    Changed Reference Type https://github.com/scylladb/scylladb/commit/1c2eef384da439b0457b6d71c7e37d7268e471cb No Types Assigned https://github.com/scylladb/scylladb/commit/1c2eef384da439b0457b6d71c7e37d7268e471cb Patch, Third Party Advisory
    Changed Reference Type https://github.com/scylladb/scylladb/issues/11476 No Types Assigned https://github.com/scylladb/scylladb/issues/11476 Issue Tracking, Patch, Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:scylladb:scylla:*:*:*:*:open_source:*:*:* versions up to (excluding) 4.6.7 *cpe:2.3:a:scylladb:scylla:*:*:*:*:open_source:*:*:* versions from (including) 5.0.0 up to (excluding) 5.0.3 *cpe:2.3:a:scylladb:scylla:*:*:*:*:enterprise:*:*:* versions up to (excluding) 2020.1.14 *cpe:2.3:a:scylladb:scylla:*:*:*:*:enterprise:*:*:* versions from (including) 2021.1.0 up to (excluding) 2021.1.12
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-29240 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2022-29240 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.20 }} 0.01%

score

0.57115

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability