---
title: "CVE-2024-31228\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2024-31228?format=md
keywords: index, follow
---

# CVE-2024-31228

Publication date 7 October 2024

Last updated 26 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**5.5 · Medium**

[Score breakdown](https://ubuntu.com/security/CVE-2024-31228?format=md#impact-score)

Toggle side navigation

## Description

Redis is an open source, in-memory database that persists on disk.
Authenticated users can trigger a denial-of-service by using specially
crafted, long string match patterns on supported commands such as `KEYS`,
`SCAN`, `PSUBSCRIBE`, `FUNCTION LIST`, `COMMAND LIST` and ACL definitions.
Matching of extremely long patterns may result in unbounded recursion,
leading to stack overflow and process crash. This problem has been fixed in
Redis versions 6.2.16, 7.2.6, and 7.4.1. Users are advised to upgrade.
There are no known workarounds for this vulnerability.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| redis | 26.04 LTS resolute | Not affected |
| 25.10 questing | Not affected |
| 25.04 plucky | Ignored end of life, was needed |
| 24.10 oracular | Fixed 5:7.0.15-1ubuntu0.24.10.1 |
| 24.04 LTS noble | Fixed 5:7.0.15-1ubuntu0.24.04.1 |
| 22.04 LTS jammy | Fixed 5:6.0.16-1ubuntu1+esm2  Ubuntu Pro |
| 20.04 LTS focal | Fixed 5:5.0.7-2ubuntu0.1+esm3  Ubuntu Pro |
| 18.04 LTS bionic | Fixed 5:4.0.9-1ubuntu0.2+esm5  Ubuntu Pro |
| 16.04 LTS xenial | Fixed 2:3.0.6-1ubuntu0.4+esm3  Ubuntu Pro |
| 14.04 LTS trusty | Fixed 2.8.4-2ubuntu0.2+esm4  Ubuntu Pro |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

### Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

[Get Ubuntu Pro](https://ubuntu.com/pro)
[30-day free trial](https://ubuntu.com/pro/free-trial)

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

5.5 · Medium

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Local |
  | Attack complexity | Low |
  | Privileges required | Low |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | None |
  | Integrity impact | None |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 5.5 · Medium |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-31228)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2024-31228)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2024-31228)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2024-31228)

### Related Ubuntu Security Notices (USN)

+ [USN-7321-1](https://usn.ubuntu.com/USN-7321-1)
+ Redis vulnerabilities
+ 5 March 2025

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2024-31228>
* <https://github.com/redis/redis/security/advisories/GHSA-66gq-c942-6976>
* <https://github.com/redis/redis/commit/9317bf64659b33166a943ec03d5d9b954e86afb0>
