CVE-2022-31011Pingcap Tidb
High 7.8
Follow: this CVE · Pingcap · Pingcap Tidb We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Tidb.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| pingcap | tidb | 5.3.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes Third Party Advisory
- github.com Mitigation Third Party Advisory