Improper Input Validation in github.com/redis/go-redis
CVE-2025-29923
- github.com/redis/go-redis
- github.com/redis/go-redis/v9
Summary
The go-redis is the official Redis client library for the Go programming language. In affected versions, 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 is configured with aggressive timeouts. The problem occurs in 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 affects github.com/redis/go-redis/v9 package versions 9.5.1 through 9.5.4, 9.6.0b1 through 9.6.2, and 9.7.0-beta.1 through 9.7.2. You can prevent the vulnerability by setting the flag "DisableIndentity" to "true" when constructing the client instance.
- HIGH
- NETWORK
- LOW
- UNCHANGED
- NONE
- NONE
- NONE
- NONE
CWE-20 - Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
References
Advisory Timeline
- Published