Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-21309

MEDIUM 5.4EPSS 93%

Integer overflow on 32-bit systems

Mitigation

  • Upgrade redis to 6.0.11 or later.

Who should check

  • Anyone running redis < 5.0.11; >= 6.0.0, < 6.0.11

Vulnerability facts

Affected
redis < 5.0.11; >= 6.0.0, < 6.0.11
Fixed in
redis 5.0.11, redis 6.0.11
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
5.4 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: None
  • User interaction: None
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: None
  • Integrity impact: Low
  • Availability impact: Low
EPSS
5.00% chance of exploitation in 30 days (percentile 93, 2026-11-26)
CWE
CWE-190
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
redis< 5.0.11; >= 6.0.0, < 6.0.11—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2021-21309. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-21309.md
Affected: redis < 5.0.11; >= 6.0.0, < 6.0.11
Fixed in: redis 5.0.11, redis 6.0.11

Steps:
1. Search this machine and project for redis: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2021-21309 being exploited?

There is no confirmed exploitation: CVE-2021-21309 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 5.00% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2021-21309?

Medium: CVSS 5.4 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2021-21309?

redis < 5.0.11; >= 6.0.0, < 6.0.11.

Is there a fix for CVE-2021-21309?

Yes. Fixed in redis 5.0.11, redis 6.0.11. Upgrade redis to 6.0.11 or later.

How do I check if I'm affected by CVE-2021-21309?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors