{"id":"GHSA-7fxj-fr3v-r9gj","revision":"9ccc6b3bacf146978020418f94a24dcc","records":[{"revision":"9ccc6b3bacf146978020418f94a24dcc","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-7fxj-fr3v-r9gj","aliases":["CVE-2022-3023"],"title":"TiDB vulnerable to Use of Externally-Controlled Format String","description":"TiDB server (importer CLI tool) prior to version 6.4.0 & 6.1.3 is vulnerable to data source name injection. The database name for generating and inserting data into a database does not properly sanitize user input which can lead to arbitrary file reads.\"","state":0,"publishedAt":"2022-11-04T19:01:17+00:00","modifiedAt":"2026-09-10T03:49:46.994032+00:00","affected":[{"ecosystem":"Go","name":"github.com/pingcap/tidb","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"6.1.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/pingcap/tidb","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"6.2.0"},{"kind":"last_affected","version":"6.4.0-alpha1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2022-3023","https://github.com/pingcap/tidb/commit/d0376379d615cc8f263a0b17c031ce403c8dcbfb","https://advisory.dw1.io/45","https://github.com/pingcap/tidb","https://huntr.dev/bounties/120f1346-e958-49d0-b66c-0f889a469540"],"sourceUrl":"https://github.com/advisories/GHSA-7fxj-fr3v-r9gj","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-7fxj-fr3v-r9gj","identifiers":["GHSA-7fxj-fr3v-r9gj","CVE-2022-3023"]},"retained":false,"historicalAffected":[]}],"coverage":[]}