VDB

CVE-2024-31228

CVE-2024-31228 PUBLISHED CVSS 5.5 MEDIUM

Denial-of-service due to unbounded pattern matching in Redis

Reported by github_m · Published October 7, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
keydbBitnami6.3.4
redictAlpine7.3.1-r0
redis6-docAmazon Linux6.2.14-2.amzn2023.0.1
redisredis7.2.6, 6.2.16
valkeyBitnami8.0.1, 7.2.7

Risk scores

CVSS 3.1
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
redisredis>= 2.2.5, < 6.2.16, >= 7.0.0, < 7.2.6, >= 7.3.0, < 7.4.1
alpineredict0
amazon:2023redis6-doc0
redisredis2.2.5, 7.3.0, 7.0.0
chainguardredis-6.20
chainguardredis-7.40
wolfiredis-6.20
wolfiredis-7.40
alpinevalkey0
alpineredis0, 0, 0
amazon:2023redis60
amazon:2023redis6-devel0
wolfiredis-7.20
chainguardpy3-redis*
chainguardredis-7.20

Timeline

  • Oct 2, 2024 CVE Published
  • Oct 8, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 14, 2024 Coalition ESS Score (18 in total, the first dated here)
  • Jan 13, 2026 Security Advisory (15 in total, the first dated here)
  • Aug 10, 2026 Distribution Patch (6 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-31228
vulnetix vdb fixes CVE-2024-31228

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-31228/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›