Lucene search

K
redhatcveRedhat.comRH:CVE-2021-21309
HistoryFeb 24, 2021 - 8:04 p.m.

CVE-2021-21309

2021-02-2420:04:13
redhat.com
access.redhat.com
13
redis
integer overflow
authenticated users
bulk input
heap corruption
remote code execution
mitigation
upstream advisory
acl configuration
redis 6.0
configuration directive.

CVSS2

6.5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:S/C:P/I:P/A:P

CVSS3

8.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS

0.006

Percentile

78.0%

An integer overflow was found in Redis. Redis 4.0 or newer uses a configurable limit for the maximum supported bulk input size. The default size is 512MB which is a safe value for all platforms. Authenticated Redis users could increase the bulk input size by changing the “proto-max-bulk-len” configuration parameter, leading to heap corruption and potentially remote code execution.

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.

CVSS2

6.5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:S/C:P/I:P/A:P

CVSS3

8.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS

0.006

Percentile

78.0%