CVE-2022-31011
Description
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.
Weakness
- CWE-287: Improper Authentication
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2025-04-23 |
Timeline
- 2022-05-31Published by the CNA19:30 UTC
- 2022-06-06GitHub advisory published (GHSA-4whx-7p29-mq22)6 days after publication
- 2025-04-23CISA SSVC decision recorded1058 days after publication
Exploit and advisory records
GitHub advisory GHSA-4whx-7p29-mq22, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Go github.com/pingcap/tidb | from 0.0.0-20210808221113-a7fdc2a05663 before 0.0.0-20220221072141-27ffd1126da1 | 0.0.0-20220221072141-27ffd1126da1 |
| Go github.com/pingcap/tidb | from 1.1.0-beta.0.20210808221113-a7fdc2a05663 before 1.1.0-beta.0.20220221072141-27ffd1126da1 | 1.1.0-beta.0.20220221072141-27ffd1126da1 |
| Go github.com/pingcap/tidb | from 5.3.0 before 5.3.1 | 5.3.1 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| pingcap tidb | 5.3.0no fix listed | not listed |
References
- https://github.com/pingcap/tidb/releases/tag/v5.3.1
- https://github.com/pingcap/tidb/security/advisories/GHSA-4whx-7p29-mq22
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2022-31011'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2022-31011'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2022-31011'curl 'https://api.contrastcyber.com/cve_products/CVE-2022-31011'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).