CVE-2021-41099

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-41099
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-41099.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-41099
Aliases
Downstream
Related
Published
2021-10-04T18:15:09Z
Modified
2025-10-15T13:19:00.578060Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/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. An integer overflow bug in the underlying string library can be used to corrupt the heap and potentially result with denial of service or remote code execution. The vulnerability involves changing the default proto-max-bulk-len configuration parameter to a very large value and constructing specially crafted network payloads or commands. The problem is fixed in Redis versions 6.2.6, 6.0.16 and 5.0.14. An additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from modifying the proto-max-bulk-len configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.

References

Affected packages

Git / github.com/redis/redis

Affected ranges

Type
GIT
Repo
https://github.com/redis/redis
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

1.*

1.3.6

2.*

2.2-alpha0
2.2-alpha1
2.2-alpha2
2.2-alpha3
2.2-alpha4
2.2-alpha5
2.2-alpha6
2.2.0-rc1
2.3-alpha0

3.*

3.0-alpha0

6.*

6.0-rc1
6.0-rc2
6.0-rc3
6.0-rc4
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

v1.*

v1.3.10
v1.3.11
v1.3.12
v1.3.7
v1.3.8
v1.3.9

v2.*

v2.0.0-rc1
v2.1.1-watch

Other

vm-playpen
with-deprecated-diskstore

Database specific

{
    "vanir_signatures": [
        {
            "source": "https://github.com/redis/redis/commit/c6ad876774f3cc11e32681ea02a2eead00f2c521",
            "signature_type": "Function",
            "digest": {
                "function_hash": "263861364008006447214780027011360238435",
                "length": 942.0
            },
            "id": "CVE-2021-41099-2f2cc239",
            "target": {
                "file": "src/sds.c",
                "function": "sdsMakeRoomFor"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "source": "https://github.com/redis/redis/commit/c6ad876774f3cc11e32681ea02a2eead00f2c521",
            "signature_type": "Line",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "31536250721424773439476737733983893446",
                    "31197297887750876145814346369914935386",
                    "39782041488683852462795552339368336124",
                    "255983622827330638827926300774193340040",
                    "309820509046219063941975706467352758695",
                    "286030179085042204311616100187563677535",
                    "193805607634471009234474877719107780862",
                    "279261928145133411651342465917023710",
                    "6004469484989770357786140015489948933",
                    "203936674237281946377878053125284052193",
                    "211058563121424472077369282767486457083",
                    "277457461090499370348233262450936527982"
                ]
            },
            "id": "CVE-2021-41099-e5ae2ecc",
            "target": {
                "file": "src/sds.c"
            },
            "deprecated": false,
            "signature_version": "v1"
        }
    ]
}