cve.bz

CVE-2021-21309 redislabs redis: Year 2038 problem, Y2K38, Y2038, Epochalypse

8.8 highEPSS 5.0%Fix available

High (8.8) in redislabs redis. EPSS 5.0% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
5.0% (unchanged from 4.8% a week ago; 4.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 92nd percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-21309 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-21309?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-21309?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-21309 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redislabs:redisfrom 4.0 before 5.0.11
redislabs:redisfrom 6.0.0 before 6.0.11

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9redis3:3.2.6-3+deb9u4DLA-2576-1
Debian12, 13, 14redis5:6.0.11-1DEBIAN-CVE-2021-21309
UbuntuPro:14.04:LTSredis2:2.8.4-2ubuntu0.2+esm2USN-5221-1
UbuntuPro:16.04:LTSredis2:3.0.6-1ubuntu0.4+esm1USN-5221-1
UbuntuPro:18.04:LTSredis5:4.0.9-1ubuntu0.2+esm3UBUNTU-CVE-2021-21309 USN-5221-1
UbuntuPro:20.04:LTSredis5:5.0.7-2ubuntu0.1+esm1USN-5221-1
SUSELinux Enterprise Module for Server Applications 15 SP2, Linux Enterprise Module for Server Applications 15 SP3redis6.0.13-1.10.1SUSE-SU-2021:1652-1
openSUSELeap 15.2redis6.0.13-lp152.2.3.1openSUSE-SU-2021:0682-1
openSUSETumbleweedredis6.2.5-1.2openSUSE-SU-2024:11299-1
Alpinev3.10, v3.11, v3.12redis5.0.11-r0ALPINE-CVE-2021-21309
Alpinev3.13redis6.0.11-r0ALPINE-CVE-2021-21309
Alpinev3.14, v3.15, v3.16 and 8 moreredis6.2.0-r0ALPINE-CVE-2021-21309
Azure Linux2redis5.0.5-7AZL-6843

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue only affects 32-bit Redis. Red Hat Enterprise Linux 8 and Red Hat Software Collections are not affected by this issue because they do not provide support for 32-bit Redis. The following products are not affected because the vulnerable component (Redis 4.0) is not being consumed:

* Red Hat Ansible Automation Platform

* Red Hat Ansible Tower

* Red Hat OpenStack Platform

Red Hat's mitigation

As recommended in the upstream advisory, this issue can be mitigated by preventing 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.

ProductPackageStateAdvisory
Red Hat Advanced Cluster Management for Kubernetes 2redisgraph-tlsAffected
Red Hat Advanced Cluster Management for Kubernetes 2search-apiNot affected
Red Hat Ansible Automation Platform 1.2redisNot affected
Red Hat Ansible Tower 3redisNot affected
Red Hat Enterprise Linux 8redis:5/redisNot affected
Red Hat Enterprise Linux 8redis:6/redisNot affected
Red Hat Enterprise Linux 9redisNot affected
Red Hat OpenStack Platform 10 (Newton)redisNot affected
Red Hat OpenStack Platform 13 (Queens)redisNot affected
Red Hat Software Collectionsrh-redis5-redisNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-21309.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON