{"answers":{"affected":"3 open source packages ship an affected version, including github.com/ydb-platform/ydb-go-sdk/v3. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-45825 in the wild and no public exploit code.","fix":"Upgrade github.com/ydb-platform/ydb-go-sdk/v3 to 3.53.3 or later.","what":"CVE-2023-45825 is a medium-severity vulnerability in ydb-platform ydb-go-sdk, published on 19 Oct 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-45825 and fix it if it is affected.\n\nWhat it is: CVE-2023-45825 is a medium-severity vulnerability in ydb-platform ydb-go-sdk, published on 19 Oct 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-45825 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/ydb-platform/ydb-go-sdk/v3 (Go): affected from 3.48.6; fixed in 3.53.3\n- github.com/ydb-platform/ydb-go-sdk/v3 (Go): affected from 3.48.6; fixed in 3.53.3\n- github.com/ydb-platform/ydb-go-sdk/v3 (Go): affected from 3.48.6; fixed in 3.53.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-45825/ (Markdown: https://insights.sbomify.com/CVE-2023-45825/index.md)","id":"CVE-2023-45825","markdown":"https://insights.sbomify.com/CVE-2023-45825/index.md","name":"CVE-2023-45825","record":{"aliases":["GHSA-q24m-6h38-5xj8","GO-2023-2137"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","account_takeover"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Go YDB driver","requires_auth":"low_privilege","summary":"Attackers with log access can steal database credentials leaked by the Go YDB driver when using custom credentials objects.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"ydb-go-sdk","vendor":"ydb"}],"cvss":{"score":5.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Token in custom credentials object can leak through logs in ydb-go-sdk","id":"CVE-2023-45825","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2023"},"n_packages":3,"n_references":4,"next":{"headline":"Authenticated SQL Injection in leantime","id":"CVE-2023-45826"},"packages":[{"ecosystem":"Go","fixed":["3.53.3"],"introduced":["3.48.6"],"last_affected":[],"package":"github.com/ydb-platform/ydb-go-sdk/v3","purl":null,"source":"GHSA-q24m-6h38-5xj8"},{"ecosystem":"Go","fixed":["3.53.3"],"introduced":["3.48.6"],"last_affected":[],"package":"github.com/ydb-platform/ydb-go-sdk/v3","purl":"pkg:golang/github.com/ydb-platform/ydb-go-sdk/v3","source":"GHSA-q24m-6h38-5xj8"},{"ecosystem":"Go","fixed":["3.53.3"],"introduced":["3.48.6"],"last_affected":[],"package":"github.com/ydb-platform/ydb-go-sdk/v3","purl":"pkg:golang/github.com/ydb-platform/ydb-go-sdk/v3","source":"GO-2023-2137"}],"prev":{"headline":"OroPlatform's pinned entity creation form shows pages of other users","id":"CVE-2023-45824"},"products":["ydb-go-sdk"],"published":"2023-10-19","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-12","vendors":["ydb-platform"]},"summary":"Attackers with log access can steal database credentials leaked by the Go YDB driver when using custom credentials objects.","url":"https://insights.sbomify.com/CVE-2023-45825/"}