{"id":"GHSA-92cp-5422-2mw7","revision":"468c8126e0f94e81b506a896990481ac","records":[{"revision":"468c8126e0f94e81b506a896990481ac","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-92cp-5422-2mw7","aliases":["CVE-2025-29923","GO-2025-3540"],"title":"go-redis allows potential out of order responses when `CLIENT SETINFO` times out during connection establishment","description":"### 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","state":0,"publishedAt":"2025-03-20T18:49:59+00:00","modifiedAt":"2026-09-10T03:50:23.0283231+00:00","affected":[{"ecosystem":"Go","name":"github.com/redis/go-redis/v9","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"9.7.0-beta.1"},{"kind":"fixed","version":"9.7.3"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/redis/go-redis/v9","ranges":[{"type":"ECOSYSTEM","events":[{"kind":"introduced","version":"9.6.0b1"},{"kind":"fixed","version":"9.6.3"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/redis/go-redis/v9","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"9.5.1"},{"kind":"fixed","version":"9.5.5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/redis/go-redis/security/advisories/GHSA-92cp-5422-2mw7","https://nvd.nist.gov/vuln/detail/CVE-2025-29923","https://github.com/redis/go-redis/pull/3295","https://github.com/redis/go-redis/commit/d236865b0cfa1b752ea4b7da666b1fdcd0acebb6","https://github.com/redis/go-redis"],"sourceUrl":"https://github.com/advisories/GHSA-92cp-5422-2mw7","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-92cp-5422-2mw7","identifiers":["GHSA-92cp-5422-2mw7","CVE-2025-29923","GO-2025-3540"]},"retained":false,"historicalAffected":[]}],"coverage":[]}