CVE-2021-32762

Source
https://cve.org/CVERecord?id=CVE-2021-32762
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32762.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-32762
Aliases
Downstream
Related
Published
2021-10-04T18:15:09.043Z
Modified
2026-02-04T21:34:37.544193Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/redis/redis

Affected versions

5.*
5.0.0
5.0.1
5.0.10
5.0.11
5.0.12
5.0.13
5.0.2
5.0.3
5.0.4
5.0.5
5.0.6
5.0.7
5.0.8
5.0.9
6.*
6.0.0
6.0.1
6.0.10
6.0.11
6.0.12
6.0.13
6.0.14
6.0.15
6.0.2
6.0.3
6.0.4
6.0.5
6.0.6
6.0.7
6.0.8
6.0.9
6.2.0
6.2.1
6.2.2
6.2.3
6.2.4
6.2.5

Database specific

vanir_signatures
[
    {
        "deprecated": false,
        "source": "https://github.com/redis/redis/commit/0215324a66af949be39b34be2d55143232c1cb71",
        "id": "CVE-2021-32762-3e4b08f6",
        "target": {
            "file": "deps/hiredis/test.c",
            "function": "test_reply_reader"
        },
        "digest": {
            "function_hash": "160136926384499477379751229509923238067",
            "length": 6546.0
        },
        "signature_type": "Function",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "source": "https://github.com/redis/redis/commit/0215324a66af949be39b34be2d55143232c1cb71",
        "id": "CVE-2021-32762-4ae63639",
        "target": {
            "file": "deps/hiredis/hiredis.c",
            "function": "createArrayObject"
        },
        "digest": {
            "function_hash": "179161735348210698687051920573265359593",
            "length": 581.0
        },
        "signature_type": "Function",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "source": "https://github.com/redis/redis/commit/0215324a66af949be39b34be2d55143232c1cb71",
        "id": "CVE-2021-32762-8a67fc88",
        "target": {
            "file": "deps/hiredis/hiredis.c"
        },
        "digest": {
            "line_hashes": [
                "311195162694762926584360255253075821286",
                "34398200280396169294640070927249867179",
                "76188935927609120202871962455023382498",
                "186027357458498207079532665570846242970"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "source": "https://github.com/redis/redis/commit/0215324a66af949be39b34be2d55143232c1cb71",
        "id": "CVE-2021-32762-c084ea7c",
        "target": {
            "file": "deps/hiredis/test.c"
        },
        "digest": {
            "line_hashes": [
                "2960801188689279389740907912361228292",
                "103680156091366763705168315892522468615",
                "313519843436751110082004899014515685551"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "signature_version": "v1"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32762.json"