CVE-2025-1386: Github.com/ClickHouse/ch go CVE-2025-1386- Query Smuggling Vulnerability

MODERATE
Advisory Identifier: GHSA-m454-3xv7-qj85
CWE-444
Published
Advisory Summary

CVE-2025-1386 is a MODERATE cve-2025-1386- query smuggling vulnerability (CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')) affecting Github.com/ClickHouse/ch go libraries in the Go ecosystem. The issue involves cve-2025-1386- query smuggling in ch-go library. Remediation is available by upgrading affected packages to version 0.65.0.

CVE-2025-1386 at a Glance

CVE Identifier CVE-2025-1386
GHSA Identifier GHSA-m454-3xv7-qj85
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')
Affected Product Github.com/ClickHouse/ch go
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2025-1386

To remediate this vulnerability, upgrade all affected Github.com/ClickHouse/ch go 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/ClickHouse/ch-go fixed: 0.65.0
Upgrade github.com/ClickHouse/ch-go to 0.65.0
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/ClickHouse/ch-go

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-1386, inspect your project dependencies for Github.com/ClickHouse/ch go:

inspect dependencies for github.com/ClickHouse/ch-go

Analyze the terminal output to locate any version of Github.com/ClickHouse/ch go in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.65.0), 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-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling'), where the product acts as an intermediary http agent (such as a proxy or firewall) in the data flow between two entities such as a client and server, but it does not interpret malformed http requests or responses in ways that are consistent with how the messages will be processed by those entities that are at the ultimate destination. In Github.com/ClickHouse/ch go, 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 When using the ch-go library, under a specific condition when the query includes a large, uncompressed malicious external data, it is possible for an attacker in control of such data to smuggle another query packet into the connection stream. ### Patches If you are using ch-go library, we recommend you to update to at least version 0.65.0. ### Credit This issue was found by lixts and reported through our bugcrowd program.

CVE-2025-1386 Affected Github.com/ClickHouse/ch go Versions

1 component(s)
Fixed Versions:
0.65.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/ClickHouse/ch-go
Go
< 0.65.0
0.65.0

References

Frequently Asked Questions

What is CVE-2025-1386?
CVE-2025-1386 is a security vulnerability in Github.com/ClickHouse/ch go involving CVE-2025-1386- Query smuggling in ch-go library under CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling').
Which Github.com/ClickHouse/ch go versions are affected?
Affected versions include releases prior to 0.65.0 across affected packages: github.com/ClickHouse/ch-go.
What version fixes CVE-2025-1386?
Upgrading to 0.65.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/ClickHouse/ch-go affected?
Yes, github.com/ClickHouse/ch-go is affected in releases prior to 0.65.0. Upgrade your dependency to 0.65.0 or later.
What CWE is associated with CVE-2025-1386?
CVE-2025-1386 is classified under CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') (The product acts as an intermediary HTTP agent (such as a proxy or firewall) in the data flow between two entities such as a client and server, but it does not interpret malformed HTTP requests or responses in ways that are consistent with how the messages will be processed by those entities that are at the ultimate destination.).
How can I check Go dependencies for CVE-2025-1386?
Run the dependency tree command: 'inspect dependencies for github.com/ClickHouse/ch-go'. 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-m454-3xv7-qj85",
  "modified" : "2025-04-23T15:06:50Z",
  "published" : "2025-04-12T03:41:21Z",
  "aliases" : [ "CVE-2025-1386" ],
  "summary" : "CVE-2025-1386- Query smuggling in ch-go library",
  "details" : "### Impact\n\nWhen using the ch-go library, under a specific condition when the query includes a large, uncompressed malicious external data, it is possible for an attacker in control of such data to smuggle another query packet into the connection stream.\n\n### Patches\n\nIf you are using ch-go library, we recommend you to update to at least version 0.65.0.\n\n### Credit\n\nThis issue was found by lixts and reported through our bugcrowd program.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/ClickHouse/ch-go"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.65.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ClickHouse/ch-go/security/advisories/GHSA-m454-3xv7-qj85"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-1386"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ClickHouse/ch-go/commit/0e835663df32b09b828528c07a5507686e6d975e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ClickHouse/ch-go"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-3603"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-444" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-12T03:41:21Z",
    "nvd_published_at" : "2025-04-11T05:15:29Z"
  }
}