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 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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 4.790% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T18:36:01.564Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 5.4 · published by GitHub_MCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:L
Assessment source · checked 2026-11-19T12:00:31.696Z
CVSS 3.1 · 8.8 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T16:03:43.150Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T18:36:01.564Z | CISA KEV |
| cvss | verified | 2026-11-19T12:00:31.696Z | CVE Program |
| epss | verified | 2026-11-19T18:27:05.361Z | FIRST EPSS |
| patches | verified | 2026-11-19T16:03:43.150Z | Ubuntu Security |
| affected | verified | 2026-11-19T12:00:31.696Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:00:31.696Z | CVE Program |
Affected versions and configuration
redis redis; default status: unknown: < 5.0.11 [affected; scheme: unspecified]; >= 6.0.0, < 6.0.11 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
Ubuntu Security · ubuntu-package · full conditions
[
{
"name": "redis",
"debian": "https://tracker.debian.org/pkg/redis",
"source": "https://ubuntu.com/security/cve?package=redis",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=redis",
"statuses": [
{
"pocket": "esm-apps",
"status": "released",
"component": null,
"description": "5:4.0.9-1ubuntu0.2+esm3",
"release_codename": "bionic"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "no 32bit version",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "5:6.0.11-1",
"release_codename": "hirsute"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "5:6.0.11-1",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "5:6.0.11-1",
"release_codename": "kinetic"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "5:6.0.11-1",
"release_codename": "lunar"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "code not present",
"release_codename": "trusty"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "5:6.0.11-1",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "code not present",
"release_codename": "xenial"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "5:6.0.11-1",
"release_codename": "impish"
},
{
"pocket": "security",
"status": "ignored",
"component": null,
"description": "end of life",
"release_codename": "groovy"
}
]
}
]Archived source JSONOSV · osv · full conditions
{
"id": "DEBIAN-CVE-2021-21309",
"aliases": [],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "5:6.0.11-1"
}
]
}
],
"package": {
"name": "redis",
"purl": "pkg:deb/debian/redis?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-21309.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"upstream": [
"CVE-2021-21309"
],
"withdrawn": null,
"references": [
{
"url": "https://security-tracker.debian.org/tracker/CVE-2021-21309",
"type": "ADVISORY"
}
],
"relatedGitRanges": [],
"database_specific": {}
}Archived source JSONOSV · osv · full conditions
{
"id": "DEBIAN-CVE-2021-21309",
"aliases": [],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "5:6.0.11-1"
}
]
}
],
"package": {
"name": "redis",
"purl": "pkg:deb/debian/redis?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-21309.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"upstream": [
"CVE-2021-21309"
],
"withdrawn": null,
"references": [
{
"url": "https://security-tracker.debian.org/tracker/CVE-2021-21309",
"type": "ADVISORY"
}
],
"relatedGitRanges": [],
"database_specific": {}
}Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "redis",
"product": "redis",
"versions": [
{
"status": "affected",
"version": "< 5.0.11"
},
{
"status": "affected",
"version": ">= 6.0.0, < 6.0.11"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/redis/redis/security/advisories/GHSA-hgj8-vff2-7cjf",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://github.com/redis/redis/commit/c992857618db99776917f10bf4f2345a5fdc78b0",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/redis/redis/pull/8522",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://security.gentoo.org/glsa/202103-02",
"name": "GLSA-202103-02",
"tags": [
"vendor-advisory",
"x_refsource_GENTOO",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T18:09:15.320Z"
}
}
]
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| distribution-package | Ubuntu / bionic | redis | esm-apps | 5:4.0.9-1ubuntu0.2+esm3 | Official record |
| distribution-package | Ubuntu / hirsute | redis | security | 5:6.0.11-1 | Official record |
| upstream-note | upstream / upstream | redis | Not a distribution channel | 5:6.0.11-1 | Official record |
| ecosystem-boundary | Debian:13 / 13 | redis | unknown | 5:6.0.11-1 | Official record |
| ecosystem-boundary | Debian:12 / 12 | redis | unknown | 5:6.0.11-1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CVE ProgramConsulted: 2026-11-19T12:00:31.696ZArchived source JSON
Source publication: 2021-02-26T21:50:16.000Z
Source modification: 2024-08-03T18:09:15.320ZDocument fingerprint
10a6906d5cfab7d2768b27eb98afc48659c9050fcddc3581bf2f928799dc0b9f - FIRST EPSSConsulted: 2026-11-19T18:27:05.361ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
6edec3ff5408c9332bb5cad007615e6981ab6e76b387b737f9030d5936c5b5e2 - OSVConsulted: 2026-11-19T12:52:05.332ZArchived source JSON
Source publication: 2021-02-26T22:15:19.457Z
Source modification: 2026-10-23T18:03:48.772ZDocument fingerprint
94bfb02156fcf158d97f00f60abbf710659689ea962e2bdc1019f072ab73cda7 - OSVConsulted: 2026-11-19T12:52:08.385ZArchived source JSON
Source publication: 2021-02-26T22:15:19.457Z
Source modification: 2026-10-23T18:03:48.772ZDocument fingerprint
c52aa2bc34487b9fc6701e2c856a07c837a7f028f5e2e61174c91381b6a172ab - Ubuntu SecurityConsulted: 2026-11-19T16:03:43.150ZArchived source JSON
Source publication: 2021-02-26T22:15:00.000Z
Source modification: 2025-08-25T23:31:58.716ZDocument fingerprint
ae3c2263d2b0476066bdbf2fc53f17af401f8073a2d1ea70542d9c2d461318c9 - CISA KEVConsulted: 2026-11-19T18:36:01.564ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56
Official status history
- UNKNOWN → PUBLISHED · · evidence