Skip to content

CVE-2022-31011 TiDB authentication bypass vulnerability

HighCVSS 7.8 EPSS 0.32%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
pingcap github.com/pingcap/tidb(Go) = 5.3.0; >= 0.0.0-20210808221113-a7fdc2a05663, < 0.0.0-20220221072141-27ffd1126da1; >= 1.1.0-beta.0.20210808221113-a7fdc2a05663, < 1.1.0-beta.0.20220221072141-27ffd1126da1; >= 5.3.0, < 5.3.1 0.0.0-20220221072141-27ffd1126da1, 1.1.0-beta.0.20220221072141-27ffd1126da1, 5.3.1 Fixed
pingcap github.com/pingcap/tidb = 5.3.0; = = 5.3.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pingcap github.com/pingcap/tidb(Go) >= 5.3.0, < 5.3.1 5.3.1
pingcap github.com/pingcap/tidb(Go) = 5.3.0 No fix listed
pingcap github.com/pingcap/tidb(Go) >= 0.0.0-20210808221113-a7fdc2a05663, < 0.0.0-20220221072141-27ffd1126da1 0.0.0-20220221072141-27ffd1126da1
pingcap github.com/pingcap/tidb(Go) >= 1.1.0-beta.0.20210808221113-a7fdc2a05663, < 1.1.0-beta.0.20220221072141-27ffd1126da1 1.1.0-beta.0.20220221072141-27ffd1126da1
pingcap github.com/pingcap/tidb = = 5.3.0 No fix listed
pingcap github.com/pingcap/tidb = 5.3.0 No fix listed

References