Skip to content
Heist/ feed
Back to feed
HighFix available

redis — security advisory

Type: advisorySources: OSVAdvisory ID: ALPINE-CVE-2021-32626

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.

Products
redis
Affected versions
Not specified
Fixed versions
5.0.14-r0, 6.0.16-r0, 6.2.6-r0
CVEs
CVE-2021-32626
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 22:04 UTC · Revision 1

Source evidence

ALPINE-CVE-2021-32626

core-osv · Original source

Published 4 Oct 2021, 18:15 UTC

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.

osv:ALPINE-CVE-2021-32626

redis

Fixed versions: 5.0.14-r0

redis

Fixed versions: 5.0.14-r0

redis

Fixed versions: 6.0.16-r0

redis

Fixed versions: 6.2.6-r0

redis

Fixed versions: 6.2.6-r0

redis

Fixed versions: 6.2.6-r0

redis

Fixed versions: 6.2.6-r0

redis

Fixed versions: 6.2.6-r0

redis

Fixed versions: 6.2.6-r0

Complete source record
{
  "id": "737d281b7f9fbe4c407e38ba58204e1d639439184328a89d7fa154d4444e020b",
  "url": "https://osv.dev/vulnerability/ALPINE-CVE-2021-32626",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ALPINE-CVE-2021-32626",
    "summary": "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.",
    "evidence": "osv:ALPINE-CVE-2021-32626",
    "products": [
      {
        "name": {
          "value": "redis",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.0.14-r0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "redis",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.0.14-r0",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "redis",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.0.16-r0",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "redis",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.2.6-r0",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "redis",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.2.6-r0",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "redis",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.2.6-r0",
            "evidence": "/affected/5/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "redis",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.2.6-r0",
            "evidence": "/affected/6/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "redis",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.2.6-r0",
            "evidence": "/affected/7/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "redis",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.2.6-r0",
            "evidence": "/affected/8/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "ALPINE-CVE-2021-32626",
      "aliases": [
        "ALPINE-CVE-2021-32626"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6"
                },
                {
                  "fixed": "5.0.14-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "redis",
            "purl": "pkg:apk/alpine/redis?arch=source",
            "ecosystem": "Alpine:v3.11"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-32626.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6"
                },
                {
                  "fixed": "5.0.14-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "redis",
            "purl": "pkg:apk/alpine/redis?arch=source",
            "ecosystem": "Alpine:v3.12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-32626.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6"
                },
                {
                  "fixed": "6.0.16-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "redis",
            "purl": "pkg:apk/alpine/redis?arch=source",
            "ecosystem": "Alpine:v3.13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-32626.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6"
                },
                {
                  "fixed": "6.2.6-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "redis",
            "purl": "pkg:apk/alpine/redis?arch=source",
            "ecosystem": "Alpine:v3.14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-32626.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6"
                },
                {
                  "fixed": "6.2.6-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "redis",
            "purl": "pkg:apk/alpine/redis?arch=source",
            "ecosystem": "Alpine:v3.15"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-32626.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6"
                },
                {
                  "fixed": "6.2.6-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "redis",
            "purl": "pkg:apk/alpine/redis?arch=source",
            "ecosystem": "Alpine:v3.16"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-32626.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6"
                },
                {
                  "fixed": "6.2.6-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "redis",
            "purl": "pkg:apk/alpine/redis?arch=source",
            "ecosystem": "Alpine:v3.17"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-32626.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6"
                },
                {
                  "fixed": "6.2.6-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "redis",
            "purl": "pkg:apk/alpine/redis?arch=source",
            "ecosystem": "Alpine:v3.18"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-32626.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6"
                },
                {
                  "fixed": "6.2.6-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "redis",
            "purl": "pkg:apk/alpine/redis?arch=source",
            "ecosystem": "Alpine:v3.19"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-32626.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-23T17:17:56.188003923Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-32626"
      ],
      "references": [
        "https://security.alpinelinux.org/vuln/CVE-2021-32626"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-32626",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 415443,
  "published_at": "2021-10-04T18:15:08.14+00:00"
}