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

Published Mar 20, 2025
·
Updated

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.

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

Other sources

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

Microsoft

go-redis is the official Redis client library for the Go programming language. Prior to 9.5.5, 9.6.3, and 9.7.3, 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.3. You can prevent the vulnerability by setting the flag DisableIndentity to true when constructing the client instance.

NVD

Affected Software

10 affected componentsFixes available
go-redis go-redis<9.5.5, <9.6.3, <9.7.3
go/github.com/redis/go-redis/v9>=9.5.1<9.5.5
9.5.5
go/github.com/redis/go-redis/v9>=9.6.0b1<9.6.3
9.6.3
go/github.com/redis/go-redis/v9>=9.7.0-beta.1<9.7.3
9.7.3
IBM Concert Software<=1.0.0-1.1.0
Microsoft azl3 keda 2.14.1-7<2.14.1-5
2.14.1-5
Microsoft azl3 keda 2.14.1-5<2.14.1-5
2.14.1-5
Microsoft azl3 telegraf 1.31.0-11
Microsoft azl3 telegraf 1.31.0-10
Microsoft azl3 telegraf 1.31.0-23<1.31.0-24
1.31.0-24

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/redis/go-redis/v9 to a version that resolves this vulnerability.

    Fixed in 9.5.5
  2. Upgrade

    Upgrade go/github.com/redis/go-redis/v9 to a version that resolves this vulnerability.

    Fixed in 9.6.3
  3. Upgrade

    Upgrade go/github.com/redis/go-redis/v9 to a version that resolves this vulnerability.

    Fixed in 9.7.3
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.14.1-5
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.31.0-24
  6. Upgrade

    Upgrade redis/go-redis to a version that resolves this vulnerability.

    Fixed in 9.5.5
  7. Upgrade

    Upgrade redis/go-redis to a version that resolves this vulnerability.

    Fixed in 9.6.3
  8. Upgrade

    Upgrade redis/go-redis to a version that resolves this vulnerability.

    Fixed in 9.7.3
  9. Configuration

    When constructing the client instance, set the flag DisableIndentity to true (spelled DisableIndentity in the material) to disable client identity transmission and prevent the out-of-order response when CLIENT SETINFO times out during connection establishment.

    go-redis client DisableIndentity = true

Event History

Mar 20, 2025
CVE Published
via MITRE·06:03 PM
Data Sourced
via MITRE·06:03 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·06:49 PM
Apr 1, 2025
Data Sourced
via Microsoft·12:00 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·12:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Updated
via Microsoft·07:00 AM
SeverityAffected Software
Updated
via Microsoft·07:00 AM
Affected Software
Sep 8, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-29923?

The severity of CVE-2025-29923 is considered to be moderate due to potential issues occurring from connection establishment timeouts.

2

How do I fix CVE-2025-29923?

To fix CVE-2025-29923, upgrade to go-redis versions 9.5.5, 9.6.3, or 9.7.3 or later.

3

What are the affected versions of go-redis in CVE-2025-29923?

The affected versions of go-redis in CVE-2025-29923 are any versions prior to 9.5.5, 9.6.3, and 9.7.3.

4

What is the main issue described in CVE-2025-29923?

The main issue described in CVE-2025-29923 is that go-redis may potentially respond out of order when the `CLIENT SETINFO` command times out during connection establishment.

5

Is CVE-2025-29923 specific to any programming language or library?

Yes, CVE-2025-29923 is specific to the go-redis library used in the Go programming language.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203