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

38 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/redict<7.3.1+ds-1
7.3.1+ds-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/redict
7.3.6+ds-3
debian/redis
5:7.0.15-1~deb12u75:7.0.15-1~deb12u105:8.0.2-3+deb13u25:8.0.2-3+deb13u35:8.0.6-3
debian/valkey
8.1.1+dfsg1-3+deb13u28.1.1+dfsg1-3+deb13u39.1.2-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>=2.2.5<7.2.4-r1
7.2.4-r1
alpine/redis>=2.2.5<7.2.5-r1
7.2.5-r1
alpine/redis>=2.2.5<7.2.5-r1
7.2.5-r1
alpine/redis>=2.2.5<7.2.5-r1
7.2.5-r1
alpine/redis>=2.2.5<7.2.5-r1
7.2.5-r1
alpine/redis>=2.2.5<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

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 7.3.1+ds-1
  2. Upgrade

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

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

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

    Fixed in 5:7.0.15-2
  4. Upgrade

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

    Fixed in 8.0.1+dfsg1-1
  5. Upgrade

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

    Fixed in 7.3.6+ds-3
  6. Upgrade

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

    Fixed in 5:7.0.15-1~deb12u7Fixed in 5:7.0.15-1~deb12u10Fixed in 5:8.0.2-3+deb13u2Fixed in 5:8.0.2-3+deb13u3Fixed in 5:8.0.6-3
  7. Upgrade

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

    Fixed in 8.1.1+dfsg1-3+deb13u2Fixed in 8.1.1+dfsg1-3+deb13u3Fixed in 9.1.2-1
  8. Upgrade

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

    Fixed in 7.3.1-r0
  9. Upgrade

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

    Fixed in 6.2.18-r0
  10. Upgrade

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

    Fixed in 7.0.15-r1
  11. Upgrade

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

    Fixed in 7.2.4-r1
  12. Upgrade

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

    Fixed in 7.2.5-r1
  13. Upgrade

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

    Fixed in 7.2.7-r0
  14. 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
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software
Nov 1, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeaknessAffected 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