CVE catalog

CVE-2021-21309

redis: CVE-2021-21309

[CVE catalog]

Severity
High · CVSS 8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
4.79% · Oct 25, 2026

Redis is an open-source, in-memory database that persists on disk. In affected versions of Redis an integer overflow bug in 32-bit Redis version 4.0 or newer could be exploited to corrupt the heap and potentially result with remote code execution. Redis 4.0 or newer uses a configurable limit for the maximum supported bulk input size. By default, it is 512MB which is a safe value for all platforms. If the limit is significantly increased, receiving a large request from a client may trigger several integer overflow scenarios, which would result with buffer overflow and heap corruption. We believe this could in certain conditions be exploited for remote code execution. By default, authenticated Redis users have access to all configuration parameters and can therefore use the “CONFIG SET proto-max-bulk-len” to change the safe default, making the system vulnerable. **This problem only affects 32-bit Redis (on a 32-bit system, or as a 32-bit executable running on a 64-bit system).** The problem is fixed in version 6.2, and the fix is back ported to 6.0.11 and 5.0.11. Make sure you use one of these versions if you are running 32-bit Redis. An additional workaround to mitigate the problem without patching the redis-server executable is to prevent clients from directly executing `CONFIG SET`: Using Redis 6.0 or newer, ACL configuration can be used to block the command. Using older versions, the `rename-command` configuration directive can be used to rename the command to a random string unknown to users, rendering it inaccessible. Please note that this workaround may have an additional impact on users or operational systems that expect `CONFIG SET` to behave in certain ways.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianredissid5:8.0.6-3fixed
Debianredisforky5:8.0.6-3fixed
Debianredistrixie5:8.0.2-3+deb13u2fixed
Debianredistrixie-security5:8.0.2-3+deb13u3fixed
Debianredisbookworm5:7.0.15-1~deb12u7fixed
Debianredisbookworm-security5:7.0.15-1~deb12u10fixed
Alpineredis3.105.0.11-r0fixed
Alpineredis3.115.0.11-r0fixed
Alpineredis3.125.0.11-r0fixed
Alpineredis3.136.0.11-r0fixed
Alpineredis3.146.2.0-r0fixed
Alpineredis3.156.2.0-r0fixed
Alpineredis3.166.2.0-r0fixed
Alpineredis3.176.2.0-r0fixed
Alpineredis3.186.2.0-r0fixed
Alpineredis3.196.2.0-r0fixed
Ubunturedispro5:5.0.5-2build1vulnerable
Ubunturedispro5:5.0.6-1vulnerable
Ubunturedispro5:5.0.7-1vulnerable
Ubunturedispro5:5.0.7-2vulnerable
Ubunturedispro5:5.0.7-2ubuntu0.1~esm1vulnerable
Ubunturedispro5:5.0.7-2ubuntu0.1vulnerable
Ubunturedispro5:5.0.7-2ubuntu0.1+esm1fixed
Suseredislinux enterprise module for server applications 15 sp26.0.13-1.10.1fixed
Suseredislinux enterprise module for server applications 15 sp36.0.13-1.10.1fixed
Ubunturedispro4:4.0.1-7vulnerable
Ubunturedispro4:4.0.2-6vulnerable
Ubunturedispro4:4.0.2-9vulnerable
Ubunturedispro5:4.0.5-1vulnerable
Ubunturedispro5:4.0.6-1vulnerable
Ubunturedispro5:4.0.6-2vulnerable
Ubunturedispro5:4.0.7-1vulnerable
Ubunturedispro5:4.0.8-1vulnerable
Ubunturedispro5:4.0.8-2vulnerable
Ubunturedispro5:4.0.9-1vulnerable
Ubunturedispro5:4.0.9-1ubuntu0.1vulnerable
Ubunturedispro5:4.0.9-1ubuntu0.2vulnerable
Ubunturedispro5:4.0.9-1ubuntu0.2+esm2vulnerable
Ubunturedispro5:4.0.9-1ubuntu0.2+esm3fixed
Opensuseredisleap 15.26.0.13-lp152.2.3.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianredissourcesid5:6.0.11-1not yet assignedNot reported[983446]
Debianredissourceforky5:6.0.11-1not yet assignedNot reported[983446]
Debianredissourcetrixie5:6.0.11-1not yet assignedNot reported[983446]
Debianredissourcebookworm5:6.0.11-1not yet assignedNot reported[983446]
Alpineredisapk3.105.0.11-r0Not reportedALPINE-CVE-2021-21309Not reported
Alpineredisapk3.115.0.11-r0Not reportedALPINE-CVE-2021-21309Not reported
Alpineredisapk3.125.0.11-r0Not reportedALPINE-CVE-2021-21309Not reported
Alpineredisapk3.136.0.11-r0Not reportedALPINE-CVE-2021-21309Not reported
Alpineredisapk3.146.2.0-r0Not reportedALPINE-CVE-2021-21309Not reported
Alpineredisapk3.156.2.0-r0Not reportedALPINE-CVE-2021-21309Not reported
Alpineredisapk3.166.2.0-r0Not reportedALPINE-CVE-2021-21309Not reported
Alpineredisapk3.176.2.0-r0Not reportedALPINE-CVE-2021-21309Not reported
Alpineredisapk3.186.2.0-r0Not reportedALPINE-CVE-2021-21309Not reported
Alpineredisapk3.196.2.0-r0Not reportedALPINE-CVE-2021-21309Not reported
Ubunturedisdebpro5:5.0.7-2ubuntu0.1+esm1Not reportedUSN-5221-1Not reported
Suseredisrpmlinux enterprise module for server applications 15 sp26.0.13-1.10.1Not reportedSUSE-SU-2021:1652-1Not reported
Suseredisrpmlinux enterprise module for server applications 15 sp36.0.13-1.10.1Not reportedSUSE-SU-2021:1652-1Not reported
Ubunturedisdebpro5:4.0.9-1ubuntu0.2+esm3Not reportedUBUNTU-CVE-2021-21309Not reported
Opensuseredisrpmleap 15.26.0.13-lp152.2.3.1Not reportedOPENSUSE-SU-2021:0682-1Not reported

[Debian bug #983446]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [redis]Unknown
    Details (4)
    • 5:7.0.15-1~deb12u7 · all · bookworm

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · bookworm; dsa · redis · debian · 12

    • 5:7.0.15-1~deb12u7 · all · bookworm

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · bookworm; dsa · redis · debian · 12

    • 5:7.0.15-1~deb12u9 · all · bookworm-security

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · bookworm; dsa · redis · debian · 12

    • 5:7.0.15-1~deb12u9 · all · bookworm-security

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · bookworm; dsa · redis · debian · 12

  • Source package: [redis]

    Details (4)
    • 5:7.0.15-1~deb12u7 · amd64 · bookworm

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · bookworm; dsa · redis · debian · 12

    • 5:7.0.15-1~deb12u7 · arm64 · bookworm

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · bookworm; dsa · redis · debian · 12

    • 5:7.0.15-1~deb12u9 · amd64 · bookworm-security

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · bookworm; dsa · redis · debian · 12

    • 5:7.0.15-1~deb12u9 · arm64 · bookworm-security

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · bookworm; dsa · redis · debian · 12

  • [redis-server]Unknown

    Source package: [redis]

    Details (4)
    • 5:7.0.15-1~deb12u7 · amd64 · bookworm

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · bookworm; dsa · redis · debian · 12

    • 5:7.0.15-1~deb12u7 · arm64 · bookworm

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · bookworm; dsa · redis · debian · 12

    • 5:7.0.15-1~deb12u9 · amd64 · bookworm-security

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · bookworm; dsa · redis · debian · 12

    • 5:7.0.15-1~deb12u9 · arm64 · bookworm-security

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · bookworm; dsa · redis · debian · 12

  • [redis-tools]Unknown

    Source package: [redis]

    Details (4)
    • 5:7.0.15-1~deb12u7 · amd64 · bookworm

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · bookworm; dsa · redis · debian · 12

    • 5:7.0.15-1~deb12u7 · arm64 · bookworm

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · bookworm; dsa · redis · debian · 12

    • 5:7.0.15-1~deb12u9 · amd64 · bookworm-security

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · bookworm; dsa · redis · debian · 12

    • 5:7.0.15-1~deb12u9 · arm64 · bookworm-security

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · bookworm; dsa · redis · debian · 12

[Debian 13 (Trixie)]

  • [redis]Unknown
    Details (5)
    • 5:8.0.2-3+deb13u2 · all · trixie

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · 13

    • 5:8.0.2-3+deb13u2 · all · trixie

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · 13

    • 5:8.0.2-3+deb13u2 · all · trixie-security

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · 13

    • 5:8.0.2-3+deb13u2 · all · trixie-security · Historical version

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · 13

    • 5:8.0.2-3+deb13u3 · all · trixie-security

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · 13

  • Source package: [redis]

    Details (5)
    • 5:8.0.2-3+deb13u2 · amd64 · trixie

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · 13

    • 5:8.0.2-3+deb13u2 · arm64 · trixie

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · 13

    • 5:8.0.2-3+deb13u2 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · 13

    • 5:8.0.2-3+deb13u2 · arm64 · trixie-security

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · 13

    • 5:8.0.2-3+deb13u3 · amd64 · trixie-security

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · 13

  • [redis-server]Unknown

    Source package: [redis]

    Details (5)
    • 5:8.0.2-3+deb13u2 · amd64 · trixie

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · 13

    • 5:8.0.2-3+deb13u2 · arm64 · trixie

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · 13

    • 5:8.0.2-3+deb13u2 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · 13

    • 5:8.0.2-3+deb13u2 · arm64 · trixie-security

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · 13

    • 5:8.0.2-3+deb13u3 · amd64 · trixie-security

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · 13

  • [redis-tools]Unknown

    Source package: [redis]

    Details (5)
    • 5:8.0.2-3+deb13u2 · amd64 · trixie

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · 13

    • 5:8.0.2-3+deb13u2 · arm64 · trixie

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · 13

    • 5:8.0.2-3+deb13u2 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · 13

    • 5:8.0.2-3+deb13u2 · arm64 · trixie-security

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · 13

    • 5:8.0.2-3+deb13u3 · amd64 · trixie-security

      Fixed · Fixed: 5:6.0.11-1

      dsa · redis · debian · 13

Observed:

References