CVE-2025-29923
JSON

3.7low

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

Severity
3.7low CVSS:3.1 by GitHub_M
Exploit likelihood
0.75% (higher than 56% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-92cp-5422-2mw7GO-2025-3540

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

Product or packageVersionsReported by
redis go-redis>= 9.7.0-beta.1, < 9.7.2, >= 9.6.0b1, < 9.6.3, >= 9.5.1, < 9.5.5CVE List
github.com/redis/go-redis/v9 (Go)from 9.7.0-beta.1 before 9.7.3, from 9.6.0b1 before 9.6.3, from 9.5.1 before 9.5.5, before 9.6.3GitHub Advisory Database, Go Vulnerability Database
github.com/redis/go-redis (Go)all versionsGo Vulnerability Database
github.com/redis/go-redis/v7 (Go)all versionsGo Vulnerability Database
github.com/redis/go-redis/v8 (Go)all versionsGo Vulnerability Database

All scores

GitHub_M3.7low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
GitHub3.7low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

Classification

CWE-20

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

The issue only occurs when the CLIENT SETINFO command times out during connection establishment. The following circumstances can cause such a timeout:

  1. The client is configured to transmit its identity. This can be disabled via the DisableIndentity flag.
  2. There are network connectivity issues
  3. The client was configured with aggressive timeouts

The impact differs by use case:

  • Sticky connections: Rather than using a connection from the pool on-demand, the caller can stick with a connection. Then you receive persistent out-of-order responses for the lifetime of the connection.
  • Pipelines: All commands in the pipeline receive incorrect responses.
  • Default connection pool usage without pipelining: 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.
Patches

We prepared a fix in https://github.com/redis/go-redis/pull/3295 and plan to release patch versions soon. Versions 9.7.2, 9.6.3, and 9.5.5 were patched. However, 9.7.2 has been yanked, making 9.7.3 the lowest available 9.7.x version with a patch.

Workarounds

You can prevent the vulnerability by setting the flag DisableIndentity (BTW: We also need to fix the spelling.) to true when constructing the client instance.

Credit

Akhass Wasti Ramin Ghorashi Anton Amlinger Syed Rahman Mahesh Venkateswaran Sergey Zavoloka Aditya Adarwal Abdulla Anam Abd-Alhameed Alex Vanlint Gaurav Choudhary Vedanta Jha Yll Kelani Ryan Picard

Go Vulnerability Database

Potential out of order responses when CLIENT SETINFO times out during connection establishment in github.com/redis/go-redis

NVD (es)

go-redis es la librería cliente oficial de Redis para el lenguaje de programación Go. En versiones anteriores a las 9.5.5, 9.6.3 y 9.7.3, go-redis podía responder de forma incorrecta cuando se agotaba el tiempo de espera de `CLIENT SETINFO` durante el establecimiento de la conexión. Esto puede ocurrir cuando el cliente está configurado para transmitir su identidad, existen problemas de conectividad de red o se configuró con tiempos de espera agresivos. El problema se presenta en varios casos de uso. En conexiones persistentes, se reciben respuestas incorrectas persistentes durante la vida útil de la conexión. Todos los comandos en la canalización reciben respuestas incorrectas. Al usar el ConnPool predeterminado, una vez que se devuelve una conexión después de usar ConnPool#Put, se revisa el búfer de lectura y la conexión se marca como incorrecta debido a los datos no leídos. Esto significa que se recibe como máximo una respuesta incorrecta antes de que se descarte la conexión. Este problema se solucionó en las versiones 9.5.5, 9.6.3 y 9.7.3. Puede evitar la vulnerabilidad estableciendo el indicador DisableIndentity en verdadero al construir la instancia del cliente.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2025-29923 changed 2026-09-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-92cp-5422-2mw7 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2025-3540 changed 2026-02-04CC-BY-4.0
NVDCVE-2025-29923 changed 2026-09-03Public domain