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.

Severity
HIGH
CVSS v3
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H · source cna
Exploit chance (EPSS)
0.323%
chance of exploitation in the next 30 days
higher than 25.8% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationnone
Automatableno
Technical impacttotal
Scored2025-04-23

Timeline

  1. 2022-05-31Published by the CNA19:30 UTC
  2. 2022-06-06GitHub advisory published (GHSA-4whx-7p29-mq22)6 days after publication
  3. 2025-04-23CISA SSVC decision recorded1058 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-4whx-7p29-mq22, affected packages:

PackageVulnerable versionsFixed in
Go github.com/pingcap/tidbfrom 0.0.0-20210808221113-a7fdc2a05663 before 0.0.0-20220221072141-27ffd1126da10.0.0-20220221072141-27ffd1126da1
Go github.com/pingcap/tidbfrom 1.1.0-beta.0.20210808221113-a7fdc2a05663 before 1.1.0-beta.0.20220221072141-27ffd1126da11.1.0-beta.0.20220221072141-27ffd1126da1
Go github.com/pingcap/tidbfrom 5.3.0 before 5.3.15.3.1

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
pingcap tidb5.3.0no fix listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources