CVE-2021-32626
Lua scripts can overflow the heap-based Lua stack in Redis
Redis is an open source, in-memory database that persists on disk. In affected versions specially crafted Lua scripts executing in Redis can cause the heap-based Lua stack to be overflowed, due to incomplete checks for this condition. This can result with heap corruption and potentially remote code execution. This problem exists in all versions of Redis with Lua scripting support, starting from 2.6. The problem is fixed in versions 6.2.6, 6.0.16 and 5.0.14. For users unable to update an additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from executing Lua scripts. This can be done using ACL to restrict EVAL and EVALSHA commands.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 15.601% · 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-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 7.5 · published by GitHub_MCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T12:00:32.385Z
CVSS 3.1 · 7.5 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:H/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-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:00:32.385Z | CVE Program |
| epss | verified | 2026-11-19T16:04:30.739Z | FIRST EPSS |
| patches | verified | 2026-11-19T16:03:43.150Z | Ubuntu Security |
| affected | verified | 2026-11-19T12:00:32.385Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:00:32.385Z | CVE Program |
Affected versions and configuration
redis redis; default status: unknown: >= 6.2.0, < 6.2.6 [affected; scheme: unspecified]; >= 6.0.0, < 6.0.16 [affected; scheme: unspecified]; >= 2.6.0, < 5.0.14 [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": "security",
"status": "not-affected",
"component": null,
"description": "5:6.0.16-1",
"release_codename": "lunar"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "5:6.0.16-1",
"release_codename": "kinetic"
},
{
"pocket": "security",
"status": "ignored",
"component": null,
"description": "end of life",
"release_codename": "impish"
},
{
"pocket": "security",
"status": "ignored",
"component": null,
"description": "end of life",
"release_codename": "hirsute"
},
{
"pocket": "esm-infra",
"status": "released",
"component": null,
"description": "2:2.8.4-2ubuntu0.2+esm2",
"release_codename": "trusty"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "5:6.0.16-1",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "5:6.0.16-1",
"release_codename": "jammy"
},
{
"pocket": "esm-apps",
"status": "released",
"component": null,
"description": "2:3.0.6-1ubuntu0.4+esm1",
"release_codename": "xenial"
},
{
"pocket": "esm-apps",
"status": "released",
"component": null,
"description": "5:4.0.9-1ubuntu0.2+esm3",
"release_codename": "bionic"
},
{
"pocket": "esm-apps",
"status": "released",
"component": null,
"description": "5:5.0.7-2ubuntu0.1+esm1",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "5:6.0.16-1",
"release_codename": "mantic"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "5:6.0.16-1",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "5:6.0.16-1",
"release_codename": "oracular"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "5:6.0.16-1",
"release_codename": "plucky"
}
]
}
]Archived source JSONOSV · osv · full conditions
{
"id": "DEBIAN-CVE-2021-32626",
"aliases": [],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "5:6.0.16-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-32626.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-32626"
],
"withdrawn": null,
"references": [
{
"url": "https://security-tracker.debian.org/tracker/CVE-2021-32626",
"type": "ADVISORY"
}
],
"relatedGitRanges": [],
"database_specific": {}
}Archived source JSONOSV · osv · full conditions
{
"id": "DEBIAN-CVE-2021-32626",
"aliases": [],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "5:6.0.16-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-32626.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-32626"
],
"withdrawn": null,
"references": [
{
"url": "https://security-tracker.debian.org/tracker/CVE-2021-32626",
"type": "ADVISORY"
}
],
"relatedGitRanges": [],
"database_specific": {}
}Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "redis",
"product": "redis",
"versions": [
{
"status": "affected",
"version": ">= 6.2.0, < 6.2.6"
},
{
"status": "affected",
"version": ">= 6.0.0, < 6.0.16"
},
{
"status": "affected",
"version": ">= 2.6.0, < 5.0.14"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/redis/redis/security/advisories/GHSA-p486-xggp-782c",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://github.com/redis/redis/commit/666ed7facf4524bf6d19b11b20faa2cf93fdf591",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VL5KXFN3ATM7IIM7Q4O4PWTSRGZ5744Z/",
"name": "FEDORA-2021-8913c7900c",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA",
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HTYQ5ZF37HNGTZWVNJD3VXP7I6MEEF42/",
"name": "FEDORA-2021-61c487f241",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA",
"x_transferred"
]
},
{
"url": "https://lists.apache.org/thread.html/r75490c61c2cb7b6ae2c81238fd52ae13636c60435abcd732d41531a0%40%3Ccommits.druid.apache.org%3E",
"name": "[druid-commits] 20211025 [GitHub] [druid] jihoonson opened a new pull request #11844: Bump netty4 to 4.1.68; suppress CVE-2021-37136 and CVE-2021-37137 for netty3",
"tags": [
"mailing-list",
"x_refsource_MLIST",
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WR5WKJWXD4D6S3DJCZ56V74ESLTDQRAB/",
"name": "FEDORA-2021-aa94492a09",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA",
"x_transferred"
]
},
{
"url": "https://www.debian.org/security/2021/dsa-5001",
"name": "DSA-5001",
"tags": [
"vendor-advisory",
"x_refsource_DEBIAN",
"x_transferred"
]
},
{
"url": "https://www.oracle.com/security-alerts/cpuapr2022.html",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://security.netapp.com/advisory/ntap-20211104-0003/",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://security.gentoo.org/glsa/202209-17",
"name": "GLSA-202209-17",
"tags": [
"vendor-advisory",
"x_refsource_GENTOO",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T23:25:30.986Z"
}
}
]
}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 / trusty | redis | esm-infra | 2:2.8.4-2ubuntu0.2+esm2 | Official record |
| upstream-note | upstream / upstream | redis | Not a distribution channel | 5:6.0.16-1 | Official record |
| distribution-package | Ubuntu / xenial | redis | esm-apps | 2:3.0.6-1ubuntu0.4+esm1 | Official record |
| distribution-package | Ubuntu / bionic | redis | esm-apps | 5:4.0.9-1ubuntu0.2+esm3 | Official record |
| distribution-package | Ubuntu / focal | redis | esm-apps | 5:5.0.7-2ubuntu0.1+esm1 | Official record |
| ecosystem-boundary | Debian:13 / 13 | redis | unknown | 5:6.0.16-1 | Official record |
| ecosystem-boundary | Debian:12 / 12 | redis | unknown | 5:6.0.16-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:32.385ZArchived source JSON
Source publication: 2021-10-04T17:30:11.000Z
Source modification: 2024-08-03T23:25:30.986ZDocument fingerprint
8822e71dddf4bf63c56b27fef6ca9ed22406002f0f86710611913fae89606257 - OSVConsulted: 2026-11-19T12:52:05.332ZArchived source JSON
Source publication: 2021-10-04T18:15:08.140Z
Source modification: 2026-10-23T18:04:49.866ZDocument fingerprint
94bfb02156fcf158d97f00f60abbf710659689ea962e2bdc1019f072ab73cda7 - OSVConsulted: 2026-11-19T12:52:08.385ZArchived source JSON
Source publication: 2021-10-04T18:15:08.140Z
Source modification: 2026-10-23T18:04:49.866ZDocument fingerprint
c52aa2bc34487b9fc6701e2c856a07c837a7f028f5e2e61174c91381b6a172ab - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - Ubuntu SecurityConsulted: 2026-11-19T16:03:43.150ZArchived source JSON
Source publication: 2021-10-04T18:15:00.000Z
Source modification: 2025-08-25T23:37:00.384ZDocument fingerprint
ae3c2263d2b0476066bdbf2fc53f17af401f8073a2d1ea70542d9c2d461318c9 - FIRST EPSSConsulted: 2026-11-19T16:04:30.739ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
8b22e3d0bbbe22a3c52f8c688c42204480fc90c949431dad186ebe9ca81245a8
Official status history
- UNKNOWN → PUBLISHED · · evidence