CVE-2022-31011
HIGH 7.8CVSS 3.1TiDB authentication bypass vulnerability
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.
- Published
- 31 May 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-287
- Also known as
- GHSA-4whx-7p29-mq22
- Sources
- NVDJSONOSV GHSA-4whx-7p29-mq22JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pingcap | tidbcpe:2.3:a:pingcap:tidb:5.3.0:*:*:*:*:*:*:* |
= 5.3.0 | |
| OSV | Go | github.com/pingcap/tidb | >= 5.3.0, < 5.3.1 | 5.3.1 |
| OSV | Go | github.com/pingcap/tidb | >= 0.0.0-20210808221113-a7fdc2a05663, < 0.0.0-20220221072141-27ffd1126da1 | 0.0.0-20220221072141-27ffd1126da1 |
| OSV | Go | github.com/pingcap/tidb | >= 1.1.0-beta.0.20210808221113-a7fdc2a05663, < 1.1.0-beta.0.20220221072141-27ffd1126da1 | 1.1.0-beta.0.20220221072141-27ffd1126da1 |
References
- https://github.com/pingcap/tidb/releases/tag/v5.3.1 · Release Notes, Third Party Advisory, WEB
- https://github.com/pingcap/tidb/security/advisories/GHSA-4whx-7p29-mq22 · Mitigation, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-31011 · ADVISORY
- https://github.com/pingcap/tidb · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 31 May 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 6 Jun 2022)