Skip to main content
EPSS 1.0%top 37%

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

0
Medium
Published: 10/09/2024 (10/09/2024, 16:44:40 UTC)
Source: GCVE Database
Product: valkey

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

Bitnamimore threats →ghsa
valkey
pkg:bitnami/valkey
Affected versions
<7.2.7>=8.0.0 <8.0.1

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

AILast updated: 09/08/2026, 13:20:21 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses