CVE-2022-31011
CVE-2022-31011 is a high-severity vulnerability in Pingcap Tidb with a CVSS 3.x base score of 7.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-287.
Key facts
- Severity: High (CVSS 3.x base score 7.8)
- CVSS v2: 4.6
- EPSS exploit prediction: 0% (24th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-287
- Affected product: Pingcap Tidb
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2022-31011?
- 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.
- How severe is CVE-2022-31011?
- CVE-2022-31011 has a CVSS 3.x base score of 7.8, rated high severity. It is exploitable over local access with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2022-31011 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (24th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2022-31011?
- CVE-2022-31011 affects Pingcap Tidb. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2022-31011?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2022-31011 published?
- CVE-2022-31011 was published on 2022-05-31 and last updated on 2026-06-17.
References
- https://github.com/pingcap/tidb/releases/tag/v5.3.1
- https://github.com/pingcap/tidb/security/advisories/GHSA-4whx-7p29-mq22
Affected products (1)
- cpe:2.3:a:pingcap:tidb:5.3.0:*:*:*:*:*:*:*
More vulnerabilities in Pingcap Tidb
- CVE-2024-41433 — Critical (CVSS 9.8): PingCAP TiDB v8.1.0 was discovered to contain a buffer overflow via the component expression.ExplainExpressionList.…
- CVE-2022-3023 — Critical (CVSS 9.8): Use of Externally-Controlled Format String in GitHub repository pingcap/tidb prior to 6.4.0, 6.1.3.
- CVE-2024-35618 — High (CVSS 7.5): PingCAP TiDB v7.5.1 was discovered to contain a NULL pointer dereference via the component SortedRowContainer.
- CVE-2022-34969 — High (CVSS 7.5): PingCAP TiDB v6.1.0 was discovered to contain a NULL pointer dereference.
- CVE-2024-33809 — Medium (CVSS 6.5): PingCAP TiDB v7.5.1 was discovered to contain a buffer overflow vulnerability, which could lead to database crashes and…
- CVE-2024-41434 — Medium (CVSS 4.3): PingCAP TiDB v8.1.0 was discovered to contain a buffer overflow via the component (*Column).GetDecimal. This allows…
All CVEs affecting Pingcap Tidb →
Other CWE-287 (Improper Authentication) vulnerabilities
- CVE-2026-20317 — Critical (CVSS 10.0): As part of Cisco's ongoing commitment to proactive security and product quality, the Cisco Secure Workload engineering…
- CVE-2026-19977 — Critical (CVSS 10.0): A vulnerability was detected in EFM ipTIME A3004T 14.19.0. The affected element is the function…
- CVE-2026-59500 — Critical (CVSS 10.0): CWE-287: Improper Authentication
- CVE-2024-27253 — Critical (CVSS 10.0): IBM DOORS Next 7.0.3 through 7.0.3 Interim Fix 018 could allow an authenticated user to bypass security logic to…
- CVE-2026-56162 — Critical (CVSS 10.0): Improper authentication in Azure SQL Database allows an unauthorized attacker to elevate privileges over a network.
- CVE-2026-62825 — Critical (CVSS 10.0): Improper authentication in Azure Key Vault allows an unauthorized attacker to elevate privileges over a network.
Browse all CWE-287 (Improper Authentication) vulnerabilities →