{"ecosystem":"go","package":"github.com/pingcap/tidb","version":null,"bugs":[{"id":5221,"ecosystem":"go","package_name":"github.com/pingcap/tidb","affected_version":"5.3.0","fixed_version":"5.3.1","bug_id":"osv:GHSA-4whx-7p29-mq22","title":"TiDB authentication bypass vulnerability","description":"### Impact\nUnder certain conditions, an attacker can construct malicious authentication requests to bypass the authentication process, resulting in privilege escalation or unauthorized access.\nOnly users using TiDB 5.3.0 are affected by this vulnerability.\n\n### Patches\nPlease upgrade to TiDB 5.3.1 or higher version\n\n### Workarounds\nYou can also mitigate risks by taking the following measures.\nOption 1: Turn off SEM (Security Enhanced Mode).\nOption 2: Disable local login for non-root accounts and ensure that the same IP cannot be logged in as root or normal user at the same time.\n\n### References\nhttps://en.pingcap.com/download/\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at security@tidb.io","severity":"high","status":"fixed","source":"osv","source_url":"https://github.com/pingcap/tidb/security/advisories/GHSA-4whx-7p29-mq22","labels":["CVE-2022-31011"],"created_at":"2026-04-26 03:01:57.403176+00:00","updated_at":"2026-04-26 03:01:57.403176+00:00"},{"id":5224,"ecosystem":"go","package_name":"github.com/pingcap/tidb","affected_version":null,"fixed_version":null,"bug_id":"osv:GO-2024-3284","title":"PingCAP TiDB nil pointer dereference in github.com/pingcap/tidb","description":"PingCAP TiDB nil pointer dereference in github.com/pingcap/tidb.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/pingcap/tidb before v8.2.0.","severity":"medium","status":"open","source":"osv","source_url":"https://github.com/advisories/GHSA-9g6g-xqv5-8g5w","labels":["CVE-2024-37820","GHSA-9g6g-xqv5-8g5w"],"created_at":"2026-04-26 03:01:57.411308+00:00","updated_at":"2026-04-26 03:01:57.411308+00:00"},{"id":5223,"ecosystem":"go","package_name":"github.com/pingcap/tidb","affected_version":null,"fixed_version":"8.2.0","bug_id":"osv:GHSA-9g6g-xqv5-8g5w","title":"PingCAP TiDB nil pointer dereference","description":"A nil pointer dereference in PingCAP TiDB v8.2.0-alpha-216-gfe5858b allows attackers to crash the application via expression.inferCollation.","severity":"medium","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2024-37820","labels":["CVE-2024-37820","GO-2024-3284"],"created_at":"2026-04-26 03:01:57.408665+00:00","updated_at":"2026-04-26 03:01:57.408665+00:00"},{"id":5222,"ecosystem":"go","package_name":"github.com/pingcap/tidb","affected_version":"6.2.0","fixed_version":null,"bug_id":"osv:GHSA-7fxj-fr3v-r9gj","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.\"","severity":"critical","status":"open","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2022-3023","labels":["CVE-2022-3023"],"created_at":"2026-04-26 03:01:57.405967+00:00","updated_at":"2026-04-26 03:01:57.405967+00:00"}],"total":4,"_cache":"hit"}