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

13 affected componentsFixes available
Redis redis<6.2.16, <7.2.6, <7.4.1
debian/redict
7.3.2+ds-1
debian/redis<=5:6.0.16-1+deb11u2
5:6.0.16-1+deb11u55:7.0.15-1~deb12u35:7.0.15-3
debian/valkey
8.0.2+dfsg1-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

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 NVD·08:15 PM
RemedyAffected Software
Nov 1, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Mar 13, 2025
Data Sourced
via Ubuntu·05:44 PM
RemedyDescriptionSeverityAffected Software

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