CVE-2022-3023
Use of Externally-Controlled Format String in pingcap/tidb
Use of Externally-Controlled Format String in GitHub repository pingcap/tidb prior to 6.4.0, 6.1.3.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- High
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
4.2
Use of Externally-Controlled Format String in pingcap/tidb
Use of Externally-Controlled Format String in GitHub repository pingcap/tidb prior to 6.4.0, 6.1.3.
- Record
CVE-2022-3023- CVSS 3.0
- 4.2 Medium
CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-134
- Updated
- 2026-11-02
EUVDEUVD-2022-7269
4.2
Use of Externally-Controlled Format String in GitHub repository pingcap/tidb prior to 6.4.0, 6.1.3.
- Record
EUVD-2022-7269- CVSS 3.0
- 4.2 Medium
CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-7fxj-fr3v-r9gj
9.8
TiDB vulnerable to Use of Externally-Controlled Format String
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."
- Record
GHSA-7fxj-fr3v-r9gj- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-134
- Updated
- 2026-11-02
NVD
9.8
Use of Externally-Controlled Format String in GitHub repository pingcap/tidb prior to 6.4.0, 6.1.3.
- Record
CVE-2022-3023- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 3.0
- 4.2 Medium
CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-134
- Updated
- 2026-11-02
OSV
4.2
Use of Externally-Controlled Format String in pingcap/tidb
Use of Externally-Controlled Format String in GitHub repository pingcap/tidb prior to 6.4.0, 6.1.3.
- Record
CVE-2022-3023- CVSS 3.0
- 4.2 Medium
CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-134
- Updated
- 2026-11-02
OSVGHSA-7fxj-fr3v-r9gj
9.8
TiDB vulnerable to Use of Externally-Controlled Format String
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."
- Record
GHSA-7fxj-fr3v-r9gj- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-134
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/pingcap/tidbGo |
through 6.1.2 | None known |
github.com/pingcap/tidbGo |
6.2.0 to 6.4.0-alpha1 | None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-3023 is a medium vulnerability (CVSS 4.2) in Pingcap Pingcap/tidb, published November 4, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.68%, the 52nd percentile. No source names a fixed version.
References
huntr.dev/bounties/120f1346-e958-49d0-b66c-0f889a469540
github.com/pingcap/tidb/commit/d0376379d615cc8f263a0b17c031ce403c8dcbfb
nvd.nist.gov/vuln/detail/CVE-2022-3023
advisory.dw1.io/45
github.com/advisories/GHSA-7fxj-fr3v-r9gj
github.com/CVEProject/cvelistV5/tree/main/cves/2022/3xxx/CVE-2022-3023.json
github.com/pingcap/tidb