Vulnerability · Published Mar 20, 2025 · Assigned by GitHub_M

CVE-2025-29923go-redis allows potential out of order responses when `CLIENT SETINFO` times out during connection establishment

Low 3.7

In plain English

A low-severity improper input validation in go-redis from redis. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.7Low
Exploit odds (30 days)0.8%top 44.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/redis/go-redisno fix listedGO-2025-3540
Gogithub.com/redis/go-redisno fix listedGO-2025-3540
Gogithub.com/redis/go-redisno fix listedGO-2025-3540
Gogithub.com/redis/go-redis/v7no fix listedGO-2025-3540
Gogithub.com/redis/go-redis/v8no fix listedGO-2025-3540
Gogithub.com/redis/go-redis/v99.5.5GHSA-92cp-5422-2mw7
Gogithub.com/redis/go-redis/v99.7.3GHSA-92cp-5422-2mw7
Gogithub.com/redis/go-redis/v99.5.5GO-2025-3540
Gogithub.com/redis/go-redis/v99.6.3GO-2025-3540
Gogithub.com/redis/go-redis/v99.7.3GO-2025-3540
Gogithub.com/redis/go-redis/v99.6.3GHSA-92cp-5422-2mw7
Ubuntu:22.04:LTSgolang-github-go-redis-redisno fix listedUBUNTU-CVE-2025-29923
Ubuntu:24.04:LTSgolang-github-go-redis-redisno fix listedUBUNTU-CVE-2025-29923
Ubuntu:25.10golang-github-go-redis-redisno fix listedUBUNTU-CVE-2025-29923
Ubuntu:26.04:LTSgolang-github-go-redis-redisno fix listedUBUNTU-CVE-2025-29923
Ubuntu:26.10golang-github-go-redis-redisno fix listedUBUNTU-CVE-2025-29923

Affected products (as reported)

VendorProductVersions
redis go-redis >= 9.7.0-beta.1, < 9.7.2>= 9.6.0b1, < 9.6.3>= 9.5.1, < 9.5.5

Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

References