Skip to content
Fencer Intel
medium 5.5

CVE-2024-31228 json

Denial-of-service due to unbounded pattern matching in Redis

published 2y ago modified 2mo ago also BIT-keydb-2024-31228 , BIT-redis-2024-31228 , BIT-valkey-2024-31228 , EUVD-2024-29124 , GHSA-66gq-c942-6976

cvss
5.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.0%
EPSS 1.0% chance of exploitation in 30 days, percentile 63%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami keydb 6.3.4
  • bitnami redis 6.2.16, 7.2.8, 7.4.1
  • bitnami valkey 7.2.7, 8.0.1
  • redis redis 6.2.16, 7.2.6, 7.4.1
  • redislabs redis 6.2.16, 7.2.6, 7.4.1
  • lfprojects valkey 7.2.7, 8.0.1
  • linuxfoundation valkey 7.2.7, 8.0.1
  • valkey-io valkey 7.2.7, 8.0.1
  • redict redict 7.3.1
  • redis Debian 12 5:7.0.15-1~deb12u2
  • redis Debian 14, Debian 13 5:7.0.15-2
  • redict Debian 14 7.3.1+ds-1
  • valkey Debian 14, Debian 13 8.0.1+dfsg1-1

debian advisories DEBIAN-CVE-2024-31228

  • redis Ubuntu 24.04 LTS 5:7.0.15-1ubuntu0.24.04.1
  • redis Ubuntu Pro 16.04 LTS 2:3.0.6-1ubuntu0.4+esm3
  • redis Ubuntu Pro 18.04 LTS 5:4.0.9-1ubuntu0.2+esm5
  • redis Ubuntu Pro 20.04 LTS 5:5.0.7-2ubuntu0.1+esm3
  • redis Ubuntu Pro 22.04 LTS 5:6.0.16-1ubuntu1+esm2

ubuntu advisories UBUNTU-CVE-2024-31228

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • redis RHEL 9 6.2.17-1.el9_5
  • redis RHEL 8 6.2.17-1.module+el8.10.0+22680+748527fd
  • redis RHEL 9 7.2.6-1.module+el9.5.0+22422+63e067d8

red hat advisories RHSA-2025:0693RHSA-2025:0595RHSA-2024:10869

  • redis SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 6.0.14-150200.6.32.1
  • redis SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Module for Server Applications 15 SP5 +5 more 6.2.6-150400.3.28.1
  • redis7 SLE Module for Server Applications 15 SP5, openSUSE Leap 15.5 7.0.8-150500.3.12.1
  • redis7 SLE Module for Server Applications 15 SP6, openSUSE Leap 15.6 7.0.8-150600.8.3.1
  • redis SLE Module for Server Applications 15 SP6, openSUSE Leap 15.6 7.2.4-150600.3.3.1

suse advisories SUSE-SU-2025:0081-1SUSE-SU-2024:3575-1SUSE-SU-2024:3549-1SUSE-SU-2024:3537-1SUSE-SU-2024:3535-1

  • redis openSUSE Tumbleweed 8.0.2-1.1
  • valkey openSUSE Tumbleweed 8.0.1-1.1

opensuse advisories openSUSE-SU-2025:15293-1openSUSE-SU-2024:14412-1

  • redis AlmaLinux 9 6.2.17-1.el9_5
  • redis AlmaLinux 8 6.2.17-1.module_el8.10.0+3946+3de613d5
  • redis AlmaLinux 9 7.2.6-1.module_el9.5.0+130+36ae7635

almalinux advisories ALSA-2025:0693ALSA-2025:0595ALSA-2024:10869

  • redis Rocky Linux 9 6.2.17-1.el9_5
  • redis Rocky Linux 8 6.2.17-1.module+el8.10.0+1923+5b85c6a7

rocky linux advisories RLSA-2025:0693RLSA-2025:0595

  • redis Alpine 3.15 6.2.18-r0
  • redis Alpine 3.18, Alpine 3.17 7.0.15-r1
  • redis Alpine 3.19 7.2.4-r1
  • redis Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 7.2.5-r1
  • redict Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 7.3.1-r0
  • valkey Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 7.2.7-r0

alpine advisories ALPINE-CVE-2024-31228

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • redis CBL-Mariner 2.0 6.2.16-1
  • valkey Azure Linux 3.0 8.0.1-1

azure linux advisories AZL-50154AZL-52011

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Is CVE-2024-31228 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-31228 updated cvss 5.5

redis: Denial-of-service due to unbounded pattern matching in Redis

  • Red Hat 3scale API Management Platform 2 3scale-amp2/system-rhel7
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Quay 3 quay/quay-rhel8
    affected: workaround, no fix available
  • Red Hat Discovery 1 for RHEL 9 discovery/discovery-ui-rhel9 1.12.0-1, discovery/discovery-server-rhel9 1.12.0-1
    fixed: vendor fix RHSA-2025:1249
  • Red Hat Enterprise Linux AppStream (v. 8) redis 6.2.17-1.module+el8.10.0+22680+748527fd
    fixed: vendor fix RHSA-2025:0595
  • Red Hat Enterprise Linux AppStream (v. 9) redis 6.2.17-1.el9_5, redis 7.2.6-1.module+el9.5.0+22422+63e067d8
    fixed: vendor fix RHSA-2025:0693

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2y ago

Exploit prediction

1.01% chance of exploitation in the next 30 days, higher than 63% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
CNA 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
OSV 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
bitnami keydb
>=2.2.5, <6.3.4
>=7.0.0
6.3.4
bitnami redis
>=2.2.5, <6.2.16
>=7.0.0, <7.2.8
>=7.3.0, <7.4.1
6.2.16
7.2.8
7.4.1
bitnami valkey
<7.2.7
>=8.0.0, <8.0.1
7.2.7
8.0.1

Affected products

  • redis redis

Classification

Weakness
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

The maintainers of redis/redis published their own advisory on GitHub. Reviewed sources take precedence over it.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.