Vulnerabilities in pkg:golang/github.com/redis/go-redis/v9

PACKAGE
Advisory Identifier: GHSA-92cp-5422-2mw7
Advisory Summary

CVE-2025-29923 is a LOW (CVSS 3.7) go-redis allows potential out of vulnerability (CWE-20: Improper Input Validation) affecting Github.com/redis/go redis/v9 libraries in the Go ecosystem. The issue involves go-redis allows potential out of order responses when `client setinfo` times out during connection establishment. Remediation is available by upgrading affected packages to version 9.7.3, 9.6.3, 9.5.5.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/redis/go-redis/v9

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/redis/go-redis/v9. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-92cp-5422-2mw7 CVE-2025-29923 LOW go-redis allows potential out of order responses when `CLIENT SETINFO` times out during connection establishment

CVE-2025-29923 at a Glance

CVE Identifier CVE-2025-29923
GHSA Identifier GHSA-92cp-5422-2mw7
Severity LOW
CVSS v3.1 Base Score 3.7
CWE Classification CWE-20: Improper Input Validation
Affected Product Github.com/redis/go redis/v9
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 3.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2025-29923

To remediate this vulnerability, upgrade all affected Github.com/redis/go redis/v9 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/redis/go-redis/v9 fixed: 9.7.3
Upgrade github.com/redis/go-redis/v9 to 9.7.3
github.com/redis/go-redis/v9 fixed: 9.6.3
Upgrade github.com/redis/go-redis/v9 to 9.6.3
github.com/redis/go-redis/v9 fixed: 9.5.5
Upgrade github.com/redis/go-redis/v9 to 9.5.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/redis/go-redis/v9

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-29923, inspect your project dependencies for Github.com/redis/go redis/v9:

inspect dependencies for github.com/redis/go-redis/v9

Analyze the terminal output to locate any version of Github.com/redis/go redis/v9 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.7.3), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Github.com/redis/go redis/v9, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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](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. ### 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

CVE-2025-29923 Affected Github.com/redis/go redis/v9 Versions

3 component(s)
Fixed Versions:
9.7.39.6.39.5.5
Product / Package Ecosystem Affected Versions Fixed Version
github.com/redis/go-redis/v9
Go
≥ 9.7.0-beta.1
< 9.7.3
9.7.3
github.com/redis/go-redis/v9
Go
≥ 9.6.0b1
< 9.6.3
9.6.3
github.com/redis/go-redis/v9
Go
≥ 9.5.1
< 9.5.5
9.5.5

References

Frequently Asked Questions

What is CVE-2025-29923?
CVE-2025-29923 is a security vulnerability in Github.com/redis/go redis/v9 involving go-redis allows potential out of order responses when `CLIENT SETINFO` times out during connection establishment under CWE-20: Improper Input Validation.
Which Github.com/redis/go redis/v9 versions are affected?
Affected versions include releases prior to 9.7.3, 9.6.3, 9.5.5 across affected packages: github.com/redis/go-redis/v9.
What version fixes CVE-2025-29923?
Upgrading to 9.7.3, 9.6.3, 9.5.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/redis/go-redis/v9 affected?
Yes, github.com/redis/go-redis/v9 is affected in releases prior to 9.7.3, 9.6.3, 9.5.5. Upgrade your dependency to 9.7.3, 9.6.3, 9.5.5 or later.
What is the CVSS score of CVE-2025-29923?
CVE-2025-29923 has a CVSS v3.1 base score of 3.7 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2025-29923?
CVE-2025-29923 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Go dependencies for CVE-2025-29923?
Run the dependency tree command: 'inspect dependencies for github.com/redis/go-redis/v9'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-92cp-5422-2mw7",
  "modified" : "2026-09-02T21:19:10Z",
  "published" : "2025-03-20T18:49:59Z",
  "aliases" : [ "CVE-2025-29923" ],
  "summary" : "go-redis allows potential out of order responses when `CLIENT SETINFO` times out during connection establishment",
  "details" : "### 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",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/redis/go-redis/v9"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.7.0-beta.1"
      }, {
        "fixed" : "9.7.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 9.7.1"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/redis/go-redis/v9"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.6.0b1"
      }, {
        "fixed" : "9.6.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/redis/go-redis/v9"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.5.1"
      }, {
        "fixed" : "9.5.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/redis/go-redis/security/advisories/GHSA-92cp-5422-2mw7"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-29923"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/redis/go-redis/pull/3295"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/redis/go-redis/commit/d236865b0cfa1b752ea4b7da666b1fdcd0acebb6"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/redis/go-redis"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-20T18:49:59Z",
    "nvd_published_at" : "2025-03-20T18:15:19Z"
  }
}