Vulnerability · Published Apr 23, 2025 · Assigned by GitHub_M
CVE-2025-21605Redis DoS Vulnerability due to unlimited growth of output buffers abused by unauthenticated client
High 7.5
In plain English
A high-severity resource allocation without limits in redis from redis. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Redis is an open source, in-memory database that persists on disk. In versions starting at 2.6 and prior to 7.4.3, An unauthenticated client can cause unlimited growth of output buffers, until the server runs out of memory or is killed. By default, the Redis configuration does not limit the output buffer of normal clients (see client-output-buffer-limit). Therefore, the output buffer can grow unlimitedly over time. As a result, the service is exhausted and the memory is unavailable. When password authentication is enabled on the Redis server, but no password is provided, the client can still cause the output buffer to grow from "NOAUTH" responses until the system will run out of memory. This issue has been patched in version 7.4.3. An additional workaround to mitigate this problem without patching the redis-server executable is to block access to prevent unauthenticated users from connecting to Redis. This can be done in different ways. Either using network access control tools like firewalls, iptables, security groups, etc, or enabling TLS and requiring users to authenticate using client side certificates.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | redis | 6.2.18-1.module_el8.10.0+3994+c2cc5395 | ALSA-2025:7686 |
| AlmaLinux:9 | redis | 7.2.8-1.module_el9.6.0+168+b8d8e900 | ALSA-2025:7429 |
| AlmaLinux:9 | redis | 6.2.18-1.el9_6 | ALSA-2025:7438 |
| AlmaLinux:8 | redis-devel | 6.2.18-1.module_el8.10.0+3994+c2cc5395 | ALSA-2025:7686 |
| AlmaLinux:9 | redis-devel | 7.2.8-1.module_el9.6.0+168+b8d8e900 | ALSA-2025:7429 |
| AlmaLinux:9 | redis-devel | 6.2.18-1.el9_6 | ALSA-2025:7438 |
| AlmaLinux:8 | redis-doc | 6.2.18-1.module_el8.10.0+3994+c2cc5395 | ALSA-2025:7686 |
| AlmaLinux:9 | redis-doc | 6.2.18-1.el9_6 | ALSA-2025:7438 |
| AlmaLinux:9 | redis-doc | 7.2.8-1.module_el9.6.0+168+b8d8e900 | ALSA-2025:7429 |
| AlmaLinux:10 | valkey | 8.0.3-1.el10_0 | ALSA-2025:7509 |
| AlmaLinux:10 | valkey-devel | 8.0.3-1.el10_0 | ALSA-2025:7509 |
| Alpine:v3.20 | redict | 7.3.3-r0 | ALPINE-CVE-2025-21605 |
| Alpine:v3.21 | redict | 7.3.3-r0 | ALPINE-CVE-2025-21605 |
| Alpine:v3.22 | redict | 7.3.3-r0 | ALPINE-CVE-2025-21605 |
| Alpine:v3.23 | redict | 7.3.3-r0 | ALPINE-CVE-2025-21605 |
| Alpine:v3.24 | redict | 7.3.3-r0 | ALPINE-CVE-2025-21605 |
| Alpine:v3.20 | redis | 7.2.8-r0 | ALPINE-CVE-2025-21605 |
| Alpine:v3.21 | redis | 7.2.8-r0 | ALPINE-CVE-2025-21605 |
| Alpine:v3.22 | redis | 8.0.0-r0 | ALPINE-CVE-2025-21605 |
| Alpine:v3.23 | redis | 8.0.0-r0 | ALPINE-CVE-2025-21605 |
| Alpine:v3.24 | redis | 8.0.0-r0 | ALPINE-CVE-2025-21605 |
| Alpine:v3.20 | valkey | 7.2.9-r0 | ALPINE-CVE-2025-21605 |
| Alpine:v3.21 | valkey | 7.2.9-r0 | ALPINE-CVE-2025-21605 |
| Alpine:v3.22 | valkey | 7.2.9-r0 | ALPINE-CVE-2025-21605 |
| Alpine:v3.23 | valkey | 7.2.9-r0 | ALPINE-CVE-2025-21605 |
| Alpine:v3.24 | valkey | 7.2.9-r0 | ALPINE-CVE-2025-21605 |
| Debian:14 | redict | 7.3.5+ds-1 | DEBIAN-CVE-2025-21605 |
| Debian:12 | redis | 5:7.0.15-1~deb12u4 | DEBIAN-CVE-2025-21605 |
| Debian:13 | redis | 5:7.0.15-3.1 | DEBIAN-CVE-2025-21605 |
| Debian:14 | redis | 5:7.0.15-3.1 | DEBIAN-CVE-2025-21605 |
| Debian:13 | valkey | 8.1.1+dfsg1-1 | DEBIAN-CVE-2025-21605 |
| Debian:14 | valkey | 8.1.1+dfsg1-1 | DEBIAN-CVE-2025-21605 |
| Rocky Linux:8 | redis | 0:6.2.18-1.module+el8.10.0+1980+8f0924a4 | RLSA-2025:7686 |
| Rocky Linux:9 | redis | 0:6.2.18-1.el9_6 | RLSA-2025:7438 |
| Rocky Linux:9 | redis | 0:7.2.8-1.module+el9.6.0+32036+eb8f79e6 | RLSA-2025:7429 |
| Rocky Linux:10 | valkey | 0:8.0.3-1.el10_0 | RLSA-2025:7509 |
| Ubuntu:25.10 | redict | no fix listed | UBUNTU-CVE-2025-21605 |
| Ubuntu:26.04:LTS | redict | no fix listed | UBUNTU-CVE-2025-21605 |
| Ubuntu:26.10 | redict | no fix listed | UBUNTU-CVE-2025-21605 |
| Ubuntu:24.04:LTS | redis | no fix listed | UBUNTU-CVE-2025-21605 |
| Ubuntu:24.04:LTS | valkey | 7.2.11+dfsg1-0ubuntu0.2 | UBUNTU-CVE-2025-21605 |
Affected products (as reported)
Weakness: CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/redis/redis/security/advisories/GHSA-r67f-p999-2gff x_refsource_CONFIRM
- https://github.com/redis/redis/releases/tag/7.4.3 x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2025/05/msg00014.html
- https://github.com/valkey-io/valkey/releases/tag/8.1.1
- https://www.vicarius.io/vsociety/posts/cve-2025-21605-detection-script-memory-exhaustion-vulnerability-in-redis-database
- https://www.vicarius.io/vsociety/posts/cve-2025-21605-mitigation-script-memory-exhaustion-vulnerability-in-redis-database