Live threats

All CVEs / Pingcap

CVE-2022-31011Pingcap Tidb

High 7.8

Priority
47
CVSS 3.1
7.8
EPSS
0.4%
probability of exploitation in 30 days · percentile 24
Auth required
Yes
Published
May 31, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-287
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Tidb.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/pingcap/tidb ≥ 5.3.0 < 5.3.1 5.3.1 go get github.com/pingcap/tidb@v5.3.1
Go github.com/pingcap/tidb ≥ 0.0.0-20210808221113-a7fdc2a05663 < 0.0.0-20220221072141-27ffd1126da1 0.0.0-20220221072141-27ffd1126da1 go get github.com/pingcap/tidb@v0.0.0-20220221072141-27ffd1126da1
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 go get github.com/pingcap/tidb@v1.1.0-beta.0.20220221072141-27ffd1126da1

Per OSV / GitHub Advisories (GHSA-4whx-7p29-mq22). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pingcaptidb5.3.0

Official sources

References

Links published by the sources. Open them with care.