Vulnerabilities in pkg:nuget/CouchbaseNetClient

PACKAGE
Advisory Identifier: GHSA-px2c-r924-mwcc
Advisory Summary

CVE-2025-49015 is a MODERATE (CVSS 4.9) couchbase .net sdk (client library) vulnerability (CWE-297: Improper Validation of Certificate with Host Mismatch) affecting CouchbaseNetClient libraries in the NuGet ecosystem. The issue involves couchbase .net sdk (client library) does not properly enable hostname verification for tls certificates. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:nuget/CouchbaseNetClient

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:nuget/CouchbaseNetClient. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-px2c-r924-mwcc CVE-2025-49015 MODERATE Couchbase .NET SDK (client library) does not properly enable hostname verification for TLS certificates

CVE-2025-49015 at a Glance

CVE Identifier CVE-2025-49015
GHSA Identifier GHSA-px2c-r924-mwcc
Severity MODERATE
CVSS v3.1 Base Score 4.9
CWE Classification CWE-297: Improper Validation of Certificate with Host Mismatch
Affected Product CouchbaseNetClient
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 4.9

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

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

How to Fix CVE-2025-49015

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

CouchbaseNetClient fixed: Latest secure release
Upgrade CouchbaseNetClient to Latest secure release
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 CouchbaseNetClient

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-49015, inspect your project dependencies for CouchbaseNetClient:

inspect dependencies for CouchbaseNetClient

Analyze the terminal output to locate any version of CouchbaseNetClient in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-297: Improper Validation of Certificate with Host Mismatch, where the product communicates with a host that provides a certificate, but the product does not properly ensure that the certificate is actually associated with that host. In CouchbaseNetClient, 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

The Couchbase .NET SDK (client library) before 3.7.1 does not properly enable hostname verification for TLS certificates. In fact, the SDK was also using IP addresses instead of hostnames due to a configuration option that was incorrectly enabled by default.

CVE-2025-49015 Affected CouchbaseNetClient Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
CouchbaseNetClient
NuGet

References

Frequently Asked Questions

What is CVE-2025-49015?
CVE-2025-49015 is a security vulnerability in CouchbaseNetClient involving Couchbase .NET SDK (client library) does not properly enable hostname verification for TLS certificates under CWE-297: Improper Validation of Certificate with Host Mismatch.
Which CouchbaseNetClient versions are affected?
Affected versions include releases prior to current release patches across affected packages: CouchbaseNetClient.
What version fixes CVE-2025-49015?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is CouchbaseNetClient affected?
Yes, CouchbaseNetClient is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-49015?
CVE-2025-49015 has a CVSS v3.1 base score of 4.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2025-49015?
CVE-2025-49015 is classified under CWE-297: Improper Validation of Certificate with Host Mismatch (The product communicates with a host that provides a certificate, but the product does not properly ensure that the certificate is actually associated with that host.).
How can I check NuGet dependencies for CVE-2025-49015?
Run the dependency tree command: 'inspect dependencies for CouchbaseNetClient'. 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-px2c-r924-mwcc",
  "modified" : "2025-06-18T19:42:25Z",
  "published" : "2025-06-18T15:31:15Z",
  "aliases" : [ "CVE-2025-49015" ],
  "summary" : "Couchbase .NET SDK (client library) does not properly enable hostname verification for TLS certificates",
  "details" : "The Couchbase .NET SDK (client library) before 3.7.1 does not properly enable hostname verification for TLS certificates. In fact, the SDK was also using IP addresses instead of hostnames due to a configuration option that was incorrectly enabled by default.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "CouchbaseNetClient"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 3.7.1"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-49015"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/couchbase/couchbase-net-client/commit/04d1679b2178f922036be6e595b3d91f972c5ba3"
  }, {
    "type" : "WEB",
    "url" : "https://docs.couchbase.com/server/current/release-notes/relnotes.html"
  }, {
    "type" : "WEB",
    "url" : "https://forums.couchbase.com/tags/security"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/couchbase/couchbase-net-client"
  }, {
    "type" : "WEB",
    "url" : "https://www.couchbase.com/alerts"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-297" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-18T19:42:25Z",
    "nvd_published_at" : "2025-06-18T14:15:44Z"
  }
}