PT-2022-19490 · Scylla+2 · Scylla Open Source+3

Avikivityo

·

Published

2022-09-15

·

Updated

2022-09-21

·

CVE-2022-29240

CVSS v3.1

8.1

High

VectorAV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Scylla Enterprise versions prior to 2020.1.14 Scylla Enterprise versions prior to 2021.1.12 Scylla Enterprise version 2022.1.0 Scylla Open Source versions prior to 4.6.7 Scylla Open Source versions prior to 5.0.3
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. 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. An 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.
Recommendations For Scylla Enterprise versions prior to 2020.1.14, update to version 2020.1.14 or later. For Scylla Enterprise versions prior to 2021.1.12, update to version 2021.1.12 or later. For Scylla Enterprise version 2022.1.0, this version is not vulnerable. For Scylla Open Source versions prior to 4.6.7, update to version 4.6.7 or later. For Scylla Open Source versions prior to 5.0.3, update to version 5.0.3 or later. As a temporary workaround for users unable to upgrade, 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).

Exploit

Fix

Use of Uninitialized Resource

Weakness Enumeration

Related Identifiers

CVE-2022-29240
GHSA-25PQ-RRQM-6FMR

Affected Products

Amazon Dynamodb
Apache Cassandra
Scylla Enterprise
Scylla Open Source