# CVE-2022-29240: Uninitialized memory read in LZ4 decompression leads to authentication bypass in Scylla

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.38% (percentile 72, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2022-09-15T21:20:11.000Z
- **Modified:** 2026-06-17T04:39:53.820Z

## Who should check

- Anyone running scylladb scylla \< 4.6.7; \>= 5.0.0, \< 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. 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).

## Affected and fixed versions

- scylladb scylla: \< 4.6.7; \>= 5.0.0, \< 5.0.3 (cvelist)

## Mitigation

- Upgrade scylla to 5.0.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-29240. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-29240.md
Affected: scylladb scylla < 4.6.7; >= 5.0.0, < 5.0.3
Fixed in: scylladb scylla 4.6.7, scylladb scylla 5.0.3

Steps:
1. Search this machine and project for scylladb scylla: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-29240 being exploited?

There is no confirmed exploitation: CVE-2022-29240 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.38% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-29240?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2022-29240?

scylladb scylla \< 4.6.7; \>= 5.0.0, \< 5.0.3.

### Is there a fix for CVE-2022-29240?

Yes. Fixed in scylladb scylla 4.6.7, scylladb scylla 5.0.3. Upgrade scylla to 5.0.3 or later.

### How do I check if I'm affected by CVE-2022-29240?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/scylladb/scylla/security/advisories/GHSA-25pq-rrqm-6fmr>
- patch: <https://github.com/scylladb/scylladb/issues/11476>
- patch: <https://github.com/scylladb/scylladb/commit/1c2eef384da439b0457b6d71c7e37d7268e471cb>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-29240>

HTML: <https://flawdb.com/CVE-2022-29240> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-29240>
