Vulnerabilities in pkg:golang/github.com/couchbase/sync_gateway

PACKAGE
Advisory Identifier: GHSA-pqhp-4xfc-hjgq
Advisory Summary

CVE-2025-52490 is a HIGH (CVSS 7.3) couchbase sync gateway shows cleartext vulnerability (CWE-319: Cleartext Transmission of Sensitive Information) affecting Github.com/couchbase/sync gateway libraries in the Go ecosystem. The issue involves couchbase sync gateway shows cleartext passwords in redacted and unredacted output. Remediation is available by upgrading affected packages to version 3.2.6.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/couchbase/sync_gateway

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/couchbase/sync_gateway. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-pqhp-4xfc-hjgq CVE-2025-52490 HIGH Couchbase Sync Gateway shows cleartext passwords in redacted and unredacted output
GHSA-g622-r636-qfqh CVE-2019-9039 CRITICAL SQL Injection in Couchbase Sync Gateway

CVE-2025-52490 at a Glance

CVE Identifier CVE-2025-52490
GHSA Identifier GHSA-pqhp-4xfc-hjgq
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-319: Cleartext Transmission of Sensitive Information
Affected Product Github.com/couchbase/sync gateway
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.3

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

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

How to Fix CVE-2025-52490

To remediate this vulnerability, upgrade all affected Github.com/couchbase/sync gateway 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/couchbase/sync_gateway fixed: 3.2.6
Upgrade github.com/couchbase/sync_gateway to 3.2.6
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/couchbase/sync_gateway

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-52490, inspect your project dependencies for Github.com/couchbase/sync gateway:

inspect dependencies for github.com/couchbase/sync_gateway

Analyze the terminal output to locate any version of Github.com/couchbase/sync gateway in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.6), 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-319: Cleartext Transmission of Sensitive Information, where the product transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors. In Github.com/couchbase/sync gateway, 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

An issue was discovered in Couchbase Sync Gateway before 3.2.6. In sgcollect_info_options.log and sync_gateway.log, there are cleartext passwords in redacted and unredacted output.

CVE-2025-52490 Affected Github.com/couchbase/sync gateway Versions

1 component(s)
Fixed Versions:
3.2.6
Product / Package Ecosystem Affected Versions Fixed Version
github.com/couchbase/sync_gateway
Go
< 3.2.6
3.2.6

References

Frequently Asked Questions

What is CVE-2025-52490?
CVE-2025-52490 is a security vulnerability in Github.com/couchbase/sync gateway involving Couchbase Sync Gateway shows cleartext passwords in redacted and unredacted output under CWE-319: Cleartext Transmission of Sensitive Information.
Which Github.com/couchbase/sync gateway versions are affected?
Affected versions include releases prior to 3.2.6 across affected packages: github.com/couchbase/sync_gateway.
What version fixes CVE-2025-52490?
Upgrading to 3.2.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/couchbase/sync_gateway affected?
Yes, github.com/couchbase/sync_gateway is affected in releases prior to 3.2.6. Upgrade your dependency to 3.2.6 or later.
What is the CVSS score of CVE-2025-52490?
CVE-2025-52490 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2025-52490?
CVE-2025-52490 is classified under CWE-319: Cleartext Transmission of Sensitive Information (The product transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors.).
How can I check Go dependencies for CVE-2025-52490?
Run the dependency tree command: 'inspect dependencies for github.com/couchbase/sync_gateway'. 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-pqhp-4xfc-hjgq",
  "modified" : "2026-06-05T20:21:56Z",
  "published" : "2025-07-29T21:30:44Z",
  "aliases" : [ "CVE-2025-52490" ],
  "summary" : "Couchbase Sync Gateway shows cleartext passwords in redacted and unredacted output",
  "details" : "An issue was discovered in Couchbase Sync Gateway before 3.2.6. In sgcollect_info_options.log and sync_gateway.log, there are cleartext passwords in redacted and unredacted output.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/couchbase/sync_gateway"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.2.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-52490"
  }, {
    "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/sync_gateway"
  }, {
    "type" : "WEB",
    "url" : "https://www.couchbase.com/alerts"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-319" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-05T20:21:56Z",
    "nvd_published_at" : "2025-07-29T20:15:27Z"
  }
}