Valkey: Denial-of-service due to unbounded pattern matching in Redis (CVE-2024-31228)
Description
CVE-2024-31228 is a denial-of-service vulnerability in Redis caused by unbounded pattern matching on certain commands. Authenticated users can trigger a stack overflow and crash the Redis process by providing specially crafted, very long string match patterns to commands like KEYS, SCAN, PSUBSCRIBE, FUNCTION LIST, COMMAND LIST, and ACL definitions. This issue has been fixed in Redis versions 6.2.16, 7.2.6, and 7.4.1. No workarounds are known, so upgrading is recommended.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Redis contains a vulnerability where unbounded recursion occurs during pattern matching of extremely long strings on supported commands. This can lead to stack overflow and process crash, resulting in denial-of-service. The flaw affects versions prior to 6.2.16, 7.2.6, and 7.4.1, with specific affected version ranges including all versions below 7.2.7 and versions from 8.0.0 up to but not including 8.0.1. The vulnerability requires authentication to exploit. A patch is available and has been released by the Redis project.
Potential Impact
An authenticated user can cause the Redis server to crash by exploiting unbounded recursion in pattern matching, resulting in denial-of-service. This disrupts availability of the Redis service until it is restarted. There are no known exploits in the wild at this time.
Mitigation Recommendations
A fix is available in Redis versions 6.2.16, 7.2.6, and 7.4.1. Users should upgrade to these or later versions to remediate the vulnerability. No workarounds are known, so patching is the primary mitigation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BIT-valkey-2024-31228
- Osv Schema Version
- 1.5.0
- Aliases
- CVE-2024-31228
- Ecosystems
- Bitnami
- Database Specific Severity
- Medium
Patch Information
Threat ID: 6aa005b3acd9273b49ab58b7
Added to database: 09/08/2026, 12:55:15 UTC
Last enriched: 09/08/2026, 13:20:21 UTC
Last updated: 10/24/2026, 08:45:07 UTC
Views: 27
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.