CVE-2023-45825: ydb-go-sdk - Hardcoded Credentials
- Cve: CVE-2023-45825
- Name: ydb-go-sdk - Hardcoded Credentials
- Description: ydb-go-sdk is a pure Go native and database/sql driver for the YDB platform. Since ydb-go-sdk v3.48.6 if you use a custom credentials object (implementation of interface Credentials it may leak into logs. This happens because this object could be serialized into an error message using `fmt.Errorf("something went wrong (credentials: %q)", credentials)` during connection to the YDB server. If such logging occurred, a malicious user with access to logs could read sensitive information (i.e. credentials) information and use it to get access to the database. ydb-go-sdk contains this problem in versions from v3.48.6 to v3.53.2. The fix for this problem has been released in version v3.53.3. Users are advised to upgrade. Users unable to upgrade should implement the `fmt.Stringer` interface in your custom credentials type with explicit stringify of object state.
- Impact: Malicious users with log access can read sensitive credentials and potentially access the database.
- Remediation: Upgrade to version v3.53.3 or later. Alternatively, implement the fmt.Stringer interface in your custom credentials type to control string representation.
- Vulnerability type: hardcoded_credentials
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.5
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.00234
- Epss percentile: 0.14434
- Assignee: [email protected]
- Published at: 2023-10-19T19:15:16Z
- Age in days: 1132
- Modified at: 2026-06-17T06:29:36Z
- Patch available: yes
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-45825
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-532 | Insertion of Sensitive Information into Log File |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| ydb:ydb-go-sdk | >= 3.48.6, < 3.53.2 | no | nvd | /v1/products/ydb/ydb-go-sdk |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| ydb-platform/ydb-go-sdk | commit, package, pull, security_advisory | yes | /v1/repositories/ydb-platform/ydb-go-sdk |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts