CVE-2025-29923 go-redis allows potential out of order responses when `CLIENT SETINFO` times out during connection establishment
go-redis may return out-of-order responses during connection setup if identity transmission times out, causing data corruption or connection drops.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-29923?
CVE-2025-29923 is a low-severity vulnerability in go-redis, published on 20 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-20
Which versions are affected by CVE-2025-29923?
12 open source packages ship an affected version, including github.com/redis/go-redis/v9, github.com/redis/go-redis and github.com/redis/go-redis/v7.
| Package | Affected | Fixed in |
|---|---|---|
github.com/redis/go-redis/v9 Go | All versions | 9.6.3 |
github.com/redis/go-redis/v9 Go | From 9.5.1 | 9.5.5 |
github.com/redis/go-redis/v9 Go | From 9.5.1 | 9.5.5 |
github.com/redis/go-redis/v9 Go | From 9.5.1 | 9.5.5 |
github.com/redis/go-redis/v9 Go | From 9.6.0b1 | 9.6.3 |
github.com/redis/go-redis/v9 Go | From 9.6.0b1 | 9.6.3 |
6 more packages
github.com/redis/go-redis/v9 Go | From 9.7.0-beta.1 | 9.7.3 |
github.com/redis/go-redis/v9 Go | From 9.7.0-beta.1 | 9.7.3 |
github.com/redis/go-redis/v9 Go | From 9.7.0-beta.1 | 9.7.3 |
github.com/redis/go-redis Go | All versions | None |
github.com/redis/go-redis/v7 Go | All versions | None |
github.com/redis/go-redis/v8 Go | All versions | None |
How do I fix CVE-2025-29923?
Upgrade github.com/redis/go-redis/v9 to a fixed version for your release line: 9.6.3, 9.5.5 or 9.7.3.
Is CVE-2025-29923 being exploited?
There is no known exploitation of CVE-2025-29923 in the wild and no public exploit code.
Sources
Also known as AZL-59156, AZL-59192, CLEANSTART-2026-UK45706, GHSA-92cp-5422-2mw7, GO-2025-3540, MINI-33x9-fxf8-v48v and 10 more.