CVE-2022-31011 json
TiDB authentication bypass vulnerability
published 2022-05-31 4 y ago modified 2026-06-17 4 mo ago also GHSA-4whx-7p29-mq22 , EUVD-2022-5925
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 25%
- public exploits
- 0
- none known
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.
Patch / fix
- go github.com/pingcap/tidb 0.0.0-20220221072141-27ffd1126da1, 1.1.0-beta.0.20220221072141-27ffd1126da1, 5.3.1
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
0.32% chance of exploitation in the next 30 days, higher than 25% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/pingcap/tidb | >=5.3.0, <5.3.1 >=0.0.0-20210808221113-a7fdc2a05663, <0.0.0-20220221072141-27ffd1126da1 >=1.1.0-beta.0.20210808221113-a7fdc2a05663, <1.1.0-beta.0.20220221072141-27ffd1126da1 |
5.3.1 0.0.0-20220221072141-27ffd1126da1 1.1.0-beta.0.20220221072141-27ffd1126da1 |
Affected products
- pingcap tidb
Classification
- Weakness
-
- CWE-287 Improper Authentication
References
-
github.com
/pingcap/tidb/security/advisories/GHSA-4whx-7p29-mq22
web, mitigation, third-party-advisory
-
github.com
/pingcap/tidb/releases/tag/v5.3.1
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31011
advisory
-
github.com
/pingcap/tidb
package
Sources
- CVE List CVE-2022-31011
- GitHub Advisory GHSA-4whx-7p29-mq22
- NVD CVE-2022-31011
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.