CVE-2024-31228
Denial-of-service due to unbounded pattern matching in Redis
Description
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.
How to fix CVE-2024-31228
To remediate CVE-2024-31228, upgrade the affected package to a fixed version below.
- —upgrade to 6.2.18-r0 or later
- —upgrade to 7.2.7-r0 or later
- —upgrade to 6.3.4 or later
- —upgrade to 6.2.16 or later
- —upgrade to 7.2.7 or later
- —upgrade to 7.3.1+ds-1 or later
- —upgrade to 5:6.0.16-1+deb11u4 or later
- —upgrade to 8.0.1+dfsg1-1 or later
Is CVE-2024-31228 being exploited?
Low — EPSS is 1.4%, meaning exploitation activity has not been observed at scale.
Affected packages (8)
- from 0, < 6.2.18-r0
- from 0, < 7.2.7-r0
- >= 2.2.5, < 6.3.4, >= 7.0.0
- >= 2.2.5, < 6.2.16, >= 7.0.0, < 7.2.8, >= 7.3.0, < 7.4.1
- from 0, < 7.2.7, >= 8.0.0, < 8.0.1
- from 0, < 7.3.1+ds-1
- from 0, < 5:6.0.16-1+deb11u4
- from 0, < 8.0.1+dfsg1-1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |