CVE-2022-35977: Integer overflow in certain command arguments can drive Redis to OOM panic

Published Jan 20, 2023
·
Updated

Redis is an in-memory database that persists on disk. Authenticated users issuing specially crafted SETRANGE and SORT(RO) commands can trigger an integer overflow, resulting with Redis attempting to allocate impossible amounts of memory and abort with an out-of-memory (OOM) panic. The problem is fixed in Redis versions 7.0.8, 6.2.9 and 6.0.17. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Other sources

Redis is vulnerable to a denial of service, caused by an integer overflow flaw. By sending specially-crafted SETRANGE and SORT(RO) commands, a local authenticated attacker could exploit this vulnerability to allocate impossible amounts of memory and abort with an OOM panic.

— IBM

Affected Software

33 affected componentsFixes available
ubuntu/redis<5:4.0.9-1ubuntu0.2+
5:4.0.9-1ubuntu0.2+
ubuntu/redis<5:5.0.7-2ubuntu0.1+
5:5.0.7-2ubuntu0.1+
ubuntu/redis<5:6.0.16-1ubuntu1+
5:6.0.16-1ubuntu1+
ubuntu/redis<2:2.8.4-2ubuntu0.2+
2:2.8.4-2ubuntu0.2+
ubuntu/redis<7.0.8
7.0.8
ubuntu/redis<2:3.0.6-1ubuntu0.4+
2:3.0.6-1ubuntu0.4+
Redis Redis>=6.0.0<6.0.17
Redis Redis>=6.2.0<6.2.9
Redis Redis>=7.0.0<7.0.8
IBM Planning Analytics<=2.0
redhat/redis<7.0.8
7.0.8
redhat/redis<6.2.9
6.2.9
redhat/redis<6.0.17
6.0.17
alpine/redis>=6.2.0<6.2.9-r0
6.2.9-r0
alpine/redis>=6.2.0<6.2.9-r0
6.2.9-r0
alpine/redis>=7.0.0<7.0.8-r0
7.0.8-r0
alpine/redis>=7.0.0<7.0.8-r0
7.0.8-r0
alpine/redis>=7.0.0<7.0.8-r0
7.0.8-r0
alpine/redis>=7.0.0<7.0.8-r0
7.0.8-r0
alpine/redis>=7.0.0<7.0.8-r0
7.0.8-r0
alpine/redis>=7.0.0<7.0.8-r0
7.0.8-r0
alpine/redis>=7.0.0<7.0.8-r0
7.0.8-r0
alpine/redis>=7.0.0<7.0.8-r0
7.0.8-r0
alpine/redis>=7.0.0<7.0.8-r0
7.0.8-r0
debian/redis<5:7.0.8-1
5:7.0.8-1
debian/redis<5:7.0.8-1
5:7.0.8-1
debian/redis<5:7.0.8-1
5:7.0.8-1
debian/redis
5:6.0.16-1+deb11u45:7.0.8-1
ubuntu/redis<2:2.8.4-2ubuntu0.2+esm3
2:2.8.4-2ubuntu0.2+esm3
ubuntu/redis<2:3.0.6-1ubuntu0.4+esm2
2:3.0.6-1ubuntu0.4+esm2
ubuntu/redis<5:4.0.9-1ubuntu0.2+esm4
5:4.0.9-1ubuntu0.2+esm4
ubuntu/redis<5:5.0.7-2ubuntu0.1+esm2
5:5.0.7-2ubuntu0.1+esm2
ubuntu/redis<5:6.0.16-1ubuntu1+esm1
5:6.0.16-1ubuntu1+esm1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/redis to a version that resolves this vulnerability.

    Fixed in 5:4.0.9-1ubuntu0.2+
  2. Upgrade

    Upgrade ubuntu/redis to a version that resolves this vulnerability.

    Fixed in 5:5.0.7-2ubuntu0.1+
  3. Upgrade

    Upgrade ubuntu/redis to a version that resolves this vulnerability.

    Fixed in 5:6.0.16-1ubuntu1+
  4. Upgrade

    Upgrade ubuntu/redis to a version that resolves this vulnerability.

    Fixed in 2:2.8.4-2ubuntu0.2+
  5. Upgrade

    Upgrade ubuntu/redis to a version that resolves this vulnerability.

    Fixed in 7.0.8
  6. Upgrade

    Upgrade ubuntu/redis to a version that resolves this vulnerability.

    Fixed in 2:3.0.6-1ubuntu0.4+
  7. Upgrade

    Upgrade redhat/redis to a version that resolves this vulnerability.

    Fixed in 7.0.8
  8. Upgrade

    Upgrade redhat/redis to a version that resolves this vulnerability.

    Fixed in 6.2.9
  9. Upgrade

    Upgrade redhat/redis to a version that resolves this vulnerability.

    Fixed in 6.0.17
  10. Upgrade

    Upgrade alpine/redis to a version that resolves this vulnerability.

    Fixed in 6.2.9-r0
  11. Upgrade

    Upgrade alpine/redis to a version that resolves this vulnerability.

    Fixed in 7.0.8-r0
  12. Upgrade

    Upgrade debian/redis to a version that resolves this vulnerability.

    Fixed in 5:7.0.8-1
  13. Upgrade

    Upgrade debian/redis to a version that resolves this vulnerability.

    Fixed in 5:6.0.16-1+deb11u4Fixed in 5:7.0.8-1
  14. Upgrade

    Upgrade ubuntu/redis to a version that resolves this vulnerability.

    Fixed in 2:2.8.4-2ubuntu0.2+esm3
  15. Upgrade

    Upgrade ubuntu/redis to a version that resolves this vulnerability.

    Fixed in 2:3.0.6-1ubuntu0.4+esm2
  16. Upgrade

    Upgrade ubuntu/redis to a version that resolves this vulnerability.

    Fixed in 5:4.0.9-1ubuntu0.2+esm4
  17. Upgrade

    Upgrade ubuntu/redis to a version that resolves this vulnerability.

    Fixed in 5:5.0.7-2ubuntu0.1+esm2
  18. Upgrade

    Upgrade ubuntu/redis to a version that resolves this vulnerability.

    Fixed in 5:6.0.16-1ubuntu1+esm1
  19. Upgrade

    Upgrade redis/redis to a version that resolves this vulnerability.

    Fixed in 7.0.8
  20. Upgrade

    Upgrade redis/redis to a version that resolves this vulnerability.

    Fixed in 6.2.9
  21. Upgrade

    Upgrade redis/redis to a version that resolves this vulnerability.

    Fixed in 6.0.17

Event History

Jan 20, 2023
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
12:00 AM
Affected Software
CVE Published
via MITRE·06:19 PM
Data Sourced
via MITRE·06:19 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·07:15 PM
DescriptionSeverityAffected Software
Jan 23, 2023
Data Sourced
via Red Hat·07:38 AM
DescriptionSeverityAffected Software
Feb 2, 2023
Data Sourced
02:28 PM
Weakness
Data Sourced
via NVD·02:28 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·02:28 PM
Affected Software
Dec 21, 2023
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Updated
via IBM·12:00 AM
Affected Software
Jun 17, 2026
Updated
via NVD·04:52 AM
RemedyAffected Software
Nov 17, 2026
Updated
via OSV·06:31 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2022-35977?

CVE-2022-35977 is a vulnerability in Redis, an in-memory database that persists on disk, which allows authenticated users to trigger an integer overflow by issuing specially crafted SETRANGE and SORT(_RO) commands, leading to an out-of-memory panic.

2

How severe is CVE-2022-35977?

CVE-2022-35977 has a severity rating of medium with a CVSS score of 5.5.

3

Which software versions are affected by CVE-2022-35977?

Redis versions 6.0.0 to 6.0.17, 6.2.0 to 6.2.9, and 7.0.0 to 7.0.8 are affected by CVE-2022-35977.

4

How can authenticated users exploit CVE-2022-35977?

Authenticated users can exploit CVE-2022-35977 by issuing specially crafted SETRANGE and SORT(_RO) commands to trigger an integer overflow.

5

How can I fix CVE-2022-35977?

To fix CVE-2022-35977, upgrade to Redis versions 6.0.18, 6.2.10, or 7.0.9 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203