Read the docs
TI-2022-13056 Aliases CVE-2022-31011GHSA-4whx-7p29-mq22

TiDB authentication bypass vulnerability

Priority LOW 36CWE-287Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Security bypass
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-287.

Summary

TiDB is an open-source NewSQL database that supports Hybrid Transactional and Analytical Processing (HTAP) workloads. Under certain conditions, an attacker can construct malicious authentication requests to bypass the authentication process, resulting in privilege escalation or unauthorized access. Only users using TiDB 5.3.0 are affected by this vulnerability. TiDB version 5.3.1 contains a patch for this issue. Other mitigation strategies include turning off Security Enhanced Mode (SEM), disabling local login for non-root accounts, and ensuring that the same IP cannot be logged in as root and normal user at the same time.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00323 25th percentileScored 2026-11-07
Fix Fixed github.com/pingcap/tidb (Go): 5.3.1, 0.0.0-20220221072141-27ffd1126da1, 1.1.0-beta.0.20220221072141-27ffd1126da1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
pingcaptidb= 5.3.0—No fix listedCNA
—github.com/pingcap/tidb (Go)5.3.0 to before 5.3.15.3.1Patch availableGHSA-4whx-7p29-mq22
—github.com/pingcap/tidb (Go)0.0.0-20210808221113-a7fdc2a05663 to before 0.0.0-20220221072141-27ffd1126da10.0.0-20220221072141-27ffd1126da1Patch availableGHSA-4whx-7p29-mq22
—github.com/pingcap/tidb (Go)1.1.0-beta.0.20210808221113-a7fdc2a05663 to before 1.1.0-beta.0.20220221072141-27ffd1126da11.1.0-beta.0.20220221072141-27ffd1126da1Patch availableGHSA-4whx-7p29-mq22
  • tidb Vendorpingcap Affected = 5.3.0 Fixed in — No fix listed CNA
  • github.com/pingcap/tidb (Go) Vendor— Affected 5.3.0 to before 5.3.1 Fixed in 5.3.1 Patch available GHSA-4whx-7p29-mq22
  • github.com/pingcap/tidb (Go) Vendor— Affected 0.0.0-20210808221113-a7fdc2a05663 to before 0.0.0-20220221072141-27ffd1126da1 Fixed in 0.0.0-20220221072141-27ffd1126da1 Patch available GHSA-4whx-7p29-mq22
  • github.com/pingcap/tidb (Go) Vendor— Affected 1.1.0-beta.0.20210808221113-a7fdc2a05663 to before 1.1.0-beta.0.20220221072141-27ffd1126da1 Fixed in 1.1.0-beta.0.20220221072141-27ffd1126da1 Patch available GHSA-4whx-7p29-mq22

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:pingcap:tidb:5.3.0:*:*:*:*:*:*:*5.3.0Vulnerablepingcap
  • cpe:2.3:a:pingcap:tidb:5.3.0:*:*:*:*:*:*:* Versions 5.3.0 Vulnerable ·pingcap

Remediation

  • Fix · GHSA-4whx-7p29-mq22 github.com/pingcap/tidb (Go) Fixed in 5.3.1 Advisory →
  • Fix · GHSA-4whx-7p29-mq22 github.com/pingcap/tidb (Go) Fixed in 0.0.0-20220221072141-27ffd1126da1 Advisory →
  • Fix · GHSA-4whx-7p29-mq22 github.com/pingcap/tidb (Go) Fixed in 1.1.0-beta.0.20220221072141-27ffd1126da1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-31011
  2. 2026-10-03 Alias added: GHSA-4whx-7p29-mq22

References

  • TI-2022-02786 Use of Externally-Controlled Format String in pingcap/tidb CVSS 3.1CRITICAL 9.8
  • TI-2024-23494 PingCAP TiDB v7.5.1 was discovered to contain a NULL pointer dereference via the component SortedRowContainer. CVSS 3.1HIGH 7.5
  • TI-2024-27622 PingCAP TiDB v8.1.0 was discovered to contain a buffer overflow via the component… CVSS 3.1MEDIUM 4.3
  • TI-2024-27621 PingCAP TiDB v8.1.0 was discovered to contain a buffer overflow via the component… CVSS 3.1CRITICAL 9.8
  • TI-2022-15734 PingCAP TiDB v6.1.0 was discovered to contain a NULL pointer dereference. CVSS 3.1HIGH 7.5
  • TI-2024-22319 PingCAP TiDB v7.5.1 was discovered to contain a buffer overflow vulnerability, which… CVSS 3.1MEDIUM 6.5

Sources