Token in custom credentials object can leak through logs in ydb-go-sdk
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-532.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ydb-platform | ydb-go-sdk | 3.48.6 to before 3.53.3 | 3.53.3 | Patch available | CNA |
| — | github.com/ydb-platform/ydb-go-sdk/v3 (Go) | 3.48.6 to before 3.53.3 | 3.53.3 | Patch available | GHSA-q24m-6h38-5xj8 |
- ydb-go-sdk Vendorydb-platform Affected 3.48.6 to before 3.53.3 Fixed in 3.53.3 Patch available CNA
- github.com/ydb-platform/ydb-go-sdk/v3 (Go) Vendor— Affected 3.48.6 to before 3.53.3 Fixed in 3.53.3 Patch available GHSA-q24m-6h38-5xj8
Remediation
- Fix · CNA ydb-go-sdk (ydb-platform) Fixed in 3.53.3
- Fix · GHSA-q24m-6h38-5xj8 github.com/ydb-platform/ydb-go-sdk/v3 (Go) Fixed in 3.53.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-45825
- 2026-10-03 Alias added: GHSA-q24m-6h38-5xj8
References
Advisory 2
Other 5
- https://github.com/ydb-platform/ydb-go-sdk/pull/859
- https://github.com/ydb-platform/ydb-go-sdk/blob/master/credentials/credentials.go#L10
- https://github.com/ydb-platform/ydb-go-sdk/blob/v3.48.6/internal/balancer/balancer.go#L71
- https://github.com/ydb-platform/ydb-go-sdk/commit/a0d92057c4e1bbdc5e85ae8d649edb0232b8fd4c
- https://github.com/ydb-platform/ydb-go-sdk
More ydb-platform vulnerabilities
- TI-2026-20024 Memory leak in ydb-platform ydb CVSS 4.0MEDIUM 6.9
Sources
- CVE-2023-45825 · CVE Program
- CVE-2023-45825 · NVD
- FIRST EPSS
- GHSA-q24m-6h38-5xj8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences