go-redis allows potential out of order responses when `CLIENT SETINFO` times out during connection establishment
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 9.7.2, 9.6.3, 9.5.5, 9.7.3
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
go-redis is the official Redis client library for the Go programming language. Prior to 9.5.5, 9.6.3, and 9.7.2, go-redis potentially responds out of order when `CLIENT SETINFO` times out during connection establishment. This can happen when the client is configured to transmit its identity, there are network connectivity issues, or the client was configured with aggressive timeouts. The problem occurs for multiple use cases. For sticky connections, you receive persistent out-of-order responses for the lifetime of the connection. All commands in the pipeline receive incorrect responses. When used with the default ConnPool once a connection is returned after use with ConnPool#Put the read buffer will be checked and the connection will be marked as bad due to the unread data. This means that at most one out-of-order response before the connection is discarded. This issue is fixed in 9.5.5, 9.6.3, and 9.7.2; however, 9.7.2 has been yanked and 9.7.3 is the lowest available patched version on the 9.7.x branch. As a workaround, set the flag `DisableIndentity` to `true` when constructing the client instance.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- redis go-redis
From 9.7.0-beta.1 · fixed in 9.7.2; From 9.6.0b1 · fixed in 9.6.3; From 9.5.1 · fixed in 9.5.5
- github.com/redis/go-redisGo
All versions
- github.com/redis/go-redis/v7Go
All versions
- github.com/redis/go-redis/v8Go
All versions
- github.com/redis/go-redis/v9Go
From 9.5.1 · fixed in 9.5.5
- github.com/redis/go-redis/v9Go
fixed in 9.6.3
- github.com/redis/go-redis/v9Go
From 9.7.0-beta.1 · fixed in 9.7.3
- github.com/redis/go-redis/v9Go
From 9.6.0b1 · fixed in 9.6.3