GHSA-7fxj-fr3v-r9gj

Suggest an improvement
Source
https://github.com/advisories/GHSA-7fxj-fr3v-r9gj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/11/GHSA-7fxj-fr3v-r9gj/GHSA-7fxj-fr3v-r9gj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7fxj-fr3v-r9gj
Aliases
Published
2022-11-04T19:01:17Z
Modified
2023-11-08T04:09:17.076487Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
TiDB vulnerable to Use of Externally-Controlled Format String
Details

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

Database specific
{
    "nvd_published_at": "2022-11-04T12:15:00Z",
    "github_reviewed_at": "2022-11-04T20:48:44Z",
    "severity": "CRITICAL",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-134"
    ]
}
References

Affected packages

Go / github.com/pingcap/tidb

Package

Name
github.com/pingcap/tidb
View open source insights on deps.dev
Purl
pkg:golang/github.com/pingcap/tidb

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
6.1.2

Go / github.com/pingcap/tidb

Package

Name
github.com/pingcap/tidb
View open source insights on deps.dev
Purl
pkg:golang/github.com/pingcap/tidb

Affected ranges

Type
SEMVER
Events
Introduced
6.2.0
Last affected
6.4.0-alpha1