CVE-2021-21309
CVE-2021-21309 — Integer overflow on 32-bit systems
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…
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
5%
chance of exploitation in 30 days
CVSS base
5.4
MEDIUM
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 5.4 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-190
References
4 on the record
- github.com/redis/redis/security/advisories/GHSA-hgj8-vff2-7cjf
x_refsource_CONFIRM
- github.com/redis/redis/commit/c992857618db99776917f10bf4f2345a5fdc78b0
x_refsource_MISC
- github.com/redis/redis/pull/8522
x_refsource_MISC
- security.gentoo.org/glsa/202103-02
vendor-advisory, x_refsource_GENTOO
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2022-0543 Debian-specific Redis Server Lua Sandbox Escape VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2025-49844 Redis Lua Use-After-Free may lead to remote code executionCVSS 9.9
- CVE-2026-25243 redis-server RESTORE invalid memory access may allow remote code executionCVSS 8.8
- CVE-2026-23631 redis-server Lua use-after-free may allow remote code executionCVSS 8.1
- CVE-2021-32675 DoS vulnerability in RedisCVSS 7.5
- CVE-2026-97229 Integer Overflow or Wraparound in GitLabCVSS 10.0 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.