{"id":"CVE-2025-29923","aliases":["CVE-2025-29923","GHSA-92cp-5422-2mw7","GO-2025-3540"],"related":["CGA-rgfh-76wx-p645"],"kind":"vulnerability","state":"published","title":"go-redis allows potential out of order responses when `CLIENT SETINFO` times out during connection establishment","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe issue only occurs when the `CLIENT SETINFO` command times out during connection establishment. The following circumstances can cause such a timeout:\n\n1. The client is configured to transmit its identity. This can be disabled via the `DisableIndentity` flag.\n2. There are network connectivity issues\n3. The client was configured with aggressive timeouts\n\nThe impact differs by use case:\n\n* **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.\n* **Pipelines**: All commands in the pipeline receive incorrect responses.\n* **Default connection pool usage without pipelining**: When used with the default [ConnPool](https://github.com/redis/go-redis/blob/8fadbef84a3f4e7573f8b38e5023fd469470a8a4/internal/pool/pool.go#L77) once a connection is returned after use with [ConnPool#Put](https://github.com/redis/go-redis/blob/8fadbef84a3f4e7573f8b38e5023fd469470a8a4/internal/pool/pool.go#L366) 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.\n\n### Patches\nWe 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.\n\n### Workarounds\nYou can prevent the vulnerability by setting the flag `DisableIndentity` (BTW: We also need to fix the spelling.) to `true` when constructing the client instance.\n\n### Credit\n\nAkhass Wasti\nRamin Ghorashi\nAnton Amlinger\nSyed Rahman\nMahesh Venkateswaran\nSergey Zavoloka\nAditya Adarwal\nAbdulla Anam\nAbd-Alhameed\nAlex Vanlint\nGaurav Choudhary\nVedanta Jha\nYll Kelani\nRyan Picard","format":"markdown","source":"ghsa"},{"lang":"en","text":"Potential out of order responses when CLIENT SETINFO times out during connection establishment in github.com/redis/go-redis","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-03-20T18:03:14.933Z","modified":"2026-09-10T03:50:23.028Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":3.7,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":3.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":3.7,"rating":"LOW"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":">= 9.7.0-beta.1, < 9.7.2","status":"affected"},{"version":">= 9.6.0b1, < 9.6.3","status":"affected"},{"version":">= 9.5.1, < 9.5.5","status":"affected"}],"vendor":"redis","product":"go-redis","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"9.7.0-beta.1","status":"affected","fixed":"9.7.3"}],"ecosystem":"Go","package":"github.com/redis/go-redis/v9","purl":"pkg:golang/github.com/redis/go-redis/v9","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"9.6.0b1","status":"affected","fixed":"9.6.3"}],"ecosystem":"Go","package":"github.com/redis/go-redis/v9","purl":"pkg:golang/github.com/redis/go-redis/v9","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"9.5.1","status":"affected","fixed":"9.5.5"}],"ecosystem":"Go","package":"github.com/redis/go-redis/v9","purl":"pkg:golang/github.com/redis/go-redis/v9","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/redis/go-redis","purl":"pkg:golang/github.com/redis/go-redis","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/redis/go-redis","purl":"pkg:golang/github.com/redis/go-redis","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/redis/go-redis","purl":"pkg:golang/github.com/redis/go-redis","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/redis/go-redis/v7","purl":"pkg:golang/github.com/redis/go-redis/v7","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/redis/go-redis/v8","purl":"pkg:golang/github.com/redis/go-redis/v8","source":"go"},{"ranges":[{"type":"semver","introduced":"9.5.1","status":"affected","fixed":"9.5.5"}],"ecosystem":"Go","package":"github.com/redis/go-redis/v9","purl":"pkg:golang/github.com/redis/go-redis/v9","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"9.6.3"}],"ecosystem":"Go","package":"github.com/redis/go-redis/v9","purl":"pkg:golang/github.com/redis/go-redis/v9","source":"go"},{"ranges":[{"type":"semver","introduced":"9.7.0-beta.1","status":"affected","fixed":"9.7.3"}],"ecosystem":"Go","package":"github.com/redis/go-redis/v9","purl":"pkg:golang/github.com/redis/go-redis/v9","source":"go"}],"references":[{"url":"https://github.com/redis/go-redis/security/advisories/GHSA-92cp-5422-2mw7","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/redis/go-redis/pull/3295","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/redis/go-redis/commit/d236865b0cfa1b752ea4b7da666b1fdcd0acebb6","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-29923","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/redis/go-redis","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-03-20T19:43:05.478Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-29923","url":"https://www.cve.org/CVERecord?id=CVE-2025-29923","licence":"CVE Terms of Use","modified":"2026-09-02T21:19:29.467Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-92cp-5422-2mw7","url":"https://github.com/advisories/GHSA-92cp-5422-2mw7","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:23.028Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3540","url":"https://pkg.go.dev/vuln/GO-2025-3540","licence":"CC-BY-4.0","modified":"2026-02-04T03:06:24.656Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-29923","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-29923","licence":"Public domain","modified":"2026-09-03T13:04:17.697Z"}],"updatedAt":"2026-11-25T22:58:55.391Z","epss":{"score":0.00751,"percentile":0.5621,"date":"2026-12-01T12:00:22.000Z"}}