PortGate

Advisories · Databases

CVE-2024-31228 Medium CVSS 5.5

Redis pattern matching denial of service

Disclosed 2024 · Last reviewed 2 Dec 2026

An authenticated user could make Redis spend unbounded time matching a pattern.

What happened

A pattern matcher had no backtracking limit.

Affected and patched versions

Affected
Redis builds before 6.2.16, 7.2.6, and 7.4.1. An authenticated user is required.
Patched
The same releases as CVE-2024-31449.

How to check your server

Check

redis-server --version

How to fix and harden

  1. Upgrade Redis on the line you already run.
  2. Keep the port on localhost.

Fix

redis-server --version

Sources

Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON