# CVE-2023-45825: Token in custom credentials object can leak through logs in ydb-go-sdk

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2023-10-19T17:10:00.000Z
- Modified: 2026-09-10T03:50:03.881Z
- Also known as: GHSA-q24m-6h38-5xj8, GO-2023-2137
- Weaknesses: CWE-532
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- ydb-platform ydb-go-sdk: >= 3.48.6, < 3.53.3
- github.com/ydb-platform/ydb-go-sdk/v3 (Go): from 3.48.6 before 3.53.3
- ydb ydb-go-sdk: from 3.48.6 before 3.53.2

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/ydb-platform/ydb-go-sdk/security/advisories/GHSA-q24m-6h38-5xj8> (advisory, vendor-advisory, web)
- <https://github.com/ydb-platform/ydb-go-sdk/pull/859> (fix, issue-tracking, web)
- <https://github.com/ydb-platform/ydb-go-sdk/blob/master/credentials/credentials.go#L10> (product, web)
- <https://github.com/ydb-platform/ydb-go-sdk/blob/v3.48.6/internal/balancer/balancer.go#L71> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-45825> (advisory)
- <https://github.com/ydb-platform/ydb-go-sdk/commit/a0d92057c4e1bbdc5e85ae8d649edb0232b8fd4c> (fix, web)
- <https://github.com/ydb-platform/ydb-go-sdk> (package)

## Sources

- CVE List: [CVE-2023-45825](https://www.cve.org/CVERecord?id=CVE-2023-45825), CVE Terms of Use, modified 2024-09-12
- GitHub Advisory Database: [GHSA-q24m-6h38-5xj8](https://github.com/advisories/GHSA-q24m-6h38-5xj8), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2023-2137](https://pkg.go.dev/vuln/GO-2023-2137), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2023-45825](https://nvd.nist.gov/vuln/detail/CVE-2023-45825), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-45825 · Whole record: https://cve.day/CVE-2023-45825.json · Rebuilt by cve.day 2026-11-25T22:58:28.942Z
