TiDB authentication bypass vulnerability
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| pingcap | tidb | = 5.3.0 | — | No fix listed | CNA |
| — | github.com/pingcap/tidb (Go) | 5.3.0 to before 5.3.1 | 5.3.1 | Patch available | GHSA-4whx-7p29-mq22 |
| — | github.com/pingcap/tidb (Go) | 0.0.0-20210808221113-a7fdc2a05663 to before 0.0.0-20220221072141-27ffd1126da1 | 0.0.0-20220221072141-27ffd1126da1 | Patch available | GHSA-4whx-7p29-mq22 |
| — | github.com/pingcap/tidb (Go) | 1.1.0-beta.0.20210808221113-a7fdc2a05663 to before 1.1.0-beta.0.20220221072141-27ffd1126da1 | 1.1.0-beta.0.20220221072141-27ffd1126da1 | Patch available | GHSA-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
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
- 2026-10-02 Threatist record created from CVE-2022-31011
- 2026-10-03 Alias added: GHSA-4whx-7p29-mq22
References
More pingcap Tidb vulnerabilities
- 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
- CVE-2022-31011 · CVE Program
- CVE-2022-31011 · NVD
- FIRST EPSS
- GHSA-4whx-7p29-mq22 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences