CVE-2024-31228: Denial-of-service due to unbounded pattern matching in Redis

Published Oct 7, 2024
·
Updated

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

Other sources

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.

— NVD

Affected Software

39 affected componentsFixes available
Redis Redis<6.2.16, <7.2.6, <7.4.1
Redis Redis>=2.2.5<6.2.16
Redis Redis>=7.2.0<7.2.6
Redis Redis=7.4.0
Redis Redis=7.4.0-rc1
Redis Redis=7.4.0-rc2
Microsoft azl3 valkey 8.0.1-1
Microsoft cbl2 redis 6.2.14-2
Microsoft azl3 valkey 8.0.0-2
Microsoft cbl2 redis 6.2.16-1
debian/redis<5:7.0.15-1~deb12u2
5:7.0.15-1~deb12u2
debian/redis<5:7.0.15-2
5:7.0.15-2
debian/redis<5:7.0.15-2
5:7.0.15-2
debian/valkey<8.0.1+dfsg1-1
8.0.1+dfsg1-1
debian/valkey<8.0.1+dfsg1-1
8.0.1+dfsg1-1
debian/redis
5:6.0.16-1+deb11u45:7.0.15-1~deb12u25:7.0.15-2
debian/valkey
8.0.1+dfsg1-1
debian/redict
7.3.1+ds-1
alpine/redict<7.3.1-r0
7.3.1-r0
alpine/redict<7.3.1-r0
7.3.1-r0
alpine/redict<7.3.1-r0
7.3.1-r0
alpine/redict<7.3.1-r0
7.3.1-r0
alpine/redict<7.3.1-r0
7.3.1-r0
alpine/redis>=2.2.5<6.2.18-r0
6.2.18-r0
alpine/redis>=2.2.5<7.0.15-r1
7.0.15-r1
alpine/redis>=2.2.5<7.0.15-r1
7.0.15-r1
alpine/redis>=7.2.0<7.2.4-r1
7.2.4-r1
alpine/redis>=7.2.0<7.2.5-r1
7.2.5-r1
alpine/redis>=7.2.0<7.2.5-r1
7.2.5-r1
alpine/redis>=7.2.0<7.2.5-r1
7.2.5-r1
alpine/redis>=7.2.0<7.2.5-r1
7.2.5-r1
alpine/redis>=7.2.0<7.2.5-r1
7.2.5-r1
alpine/redis>=7.2.0<7.2.5-r1
7.2.5-r1
alpine/valkey<7.2.7-r0
7.2.7-r0
alpine/valkey<7.2.7-r0
7.2.7-r0
alpine/valkey<7.2.7-r0
7.2.7-r0
alpine/valkey<7.2.7-r0
7.2.7-r0
alpine/valkey<7.2.7-r0
7.2.7-r0
alpine/valkey<7.2.7-r0
7.2.7-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/redict to a version that resolves this vulnerability.

    Fixed in 7.3.1-r0
  2. Upgrade

    Upgrade alpine/redis to a version that resolves this vulnerability.

    Fixed in 6.2.18-r0
  3. Upgrade

    Upgrade alpine/redis to a version that resolves this vulnerability.

    Fixed in 7.0.15-r1
  4. Upgrade

    Upgrade alpine/redis to a version that resolves this vulnerability.

    Fixed in 7.2.4-r1
  5. Upgrade

    Upgrade alpine/redis to a version that resolves this vulnerability.

    Fixed in 7.2.5-r1
  6. Upgrade

    Upgrade alpine/valkey to a version that resolves this vulnerability.

    Fixed in 7.2.7-r0
  7. Upgrade

    Upgrade debian/redis to a version that resolves this vulnerability.

    Fixed in 5:7.0.15-1~deb12u2
  8. Upgrade

    Upgrade debian/redis to a version that resolves this vulnerability.

    Fixed in 5:7.0.15-2
  9. Upgrade

    Upgrade debian/valkey to a version that resolves this vulnerability.

    Fixed in 8.0.1+dfsg1-1
  10. Upgrade

    Upgrade debian/redis to a version that resolves this vulnerability.

    Fixed in 5:6.0.16-1+deb11u4Fixed in 5:7.0.15-1~deb12u2Fixed in 5:7.0.15-2
  11. Upgrade

    Upgrade debian/redict to a version that resolves this vulnerability.

    Fixed in 7.3.1+ds-1
  12. Upgrade

    Upgrade Redis to a version that resolves this vulnerability.

    Fixed in 6.2.16

Event History

Oct 7, 2024
CVE Published
via MITRE·07:51 PM
Data Sourced
via MITRE·07:51 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·08:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software
Nov 1, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Sep 4, 2025
Data Sourced
via NVD·07:01 PM
RemedyAffected Software
Updated
via NVD·07:01 PM
Severity
Event
via NVD·07:01 PM
Updated
via NVD·07:10 PM
Affected Software
Jun 17, 2026
Updated
via NVD·07:28 AM
Severity
Nov 3, 2026
Updated
via OSV·06:32 AM
Affected Software
Nov 12, 2026
Updated
via OSV·04:00 PM
Affected Software
Nov 14, 2026
Updated
via OSV·05:00 PM
Affected Software
Nov 17, 2026
Updated
via OSV·06:31 AM
Affected Software
Nov 24, 2026
Updated
via OSV·05:00 AM
Affected Software
Dec 3, 2026
Updated
via OSV·11:32 PM
Affected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2024-31228?

CVE-2024-31228 is classified as a denial-of-service vulnerability.

2

How do I fix CVE-2024-31228?

To mitigate CVE-2024-31228, upgrade Redis to a version later than 6.2.16, 7.2.6, or 7.4.1.

3

Who is affected by CVE-2024-31228?

CVE-2024-31228 affects Redis versions prior to 6.2.16, 7.2.6, and 7.4.1.

4

What commands are impacted by CVE-2024-31228?

Commands such as KEYS, SCAN, PSUBSCRIBE, FUNCTION LIST, COMMAND LIST, and ACL definition are impacted by CVE-2024-31228.

5

How can users exploit CVE-2024-31228?

Authenticated users can exploit CVE-2024-31228 by sending specially crafted, long string match patterns to trigger a denial-of-service.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203