p PatchFirst

CVE-2021-32762

CVE-2021-32762 · Integer overflow that can lead to heap overflow in redis-cli, redis-sentinel on some platforms

This page contains facts from public vulnerability sources. Check the original advisory before updating.

Redis is an open source, in-memory database that persists on disk. The redis-cli command line tool and redis-sentinel service may be vulnerable to integer overflow when parsing specially crafted large multi-bulk network replies. This is a result of a vulnerability in the underlying hiredis library which does not perform an overflow check before calling the calloc() heap allocation function. This issue only impacts systems with heap allocators that do not perform their own overflow checks. Most modern systems do and are therefore not likely to be affected. Furthermore, by default redis-sentinel uses the jemalloc allocator which is also not vulnerable. The problem is fixed in Redis versions 6.2.6, 6.0.16 and 5.0.14.

CVSS 7.5 · High · EPSS 2.6% · Fix available

Published
Updated

Stack: system · database

Affected products and versions

  • redis

    Versions
    • < 5.0.14: Affected
    • >= 6.0.0, < 6.0.16: Affected
    • >= 6.2.0, < 6.2.6: Affected

    No fix published

  • redis Debian:12

    Affected ranges
    • ECOSYSTEM: < 5:6.0.16-1

    Update to 5:6.0.16-1

  • redis Debian:13

    Affected ranges
    • ECOSYSTEM: < 5:6.0.16-1

    Update to 5:6.0.16-1

  • redis Debian:14

    Affected ranges
    • ECOSYSTEM: < 5:6.0.16-1

    Update to 5:6.0.16-1

  • hiredis Ubuntu:16.04:LTS

    Versions
    • 0.13.1-2
    • 0.13.3-1
    • 0.13.3-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • webdis Ubuntu:16.04:LTS

    Versions
    • 0.1.1-2.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →