Vulnerability · Published May 31, 2022 · Assigned by GitHub_M

CVE-2022-31011TiDB authentication bypass vulnerability

High 7.8

In plain English

A high-severity improper authentication in tidb from pingcap. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.3%top 74.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/pingcap/tidb5.3.1GHSA-4whx-7p29-mq22
Gogithub.com/pingcap/tidb0.0.0-20220221072141-27ffd1126da1GHSA-4whx-7p29-mq22
Gogithub.com/pingcap/tidb1.1.0-beta.0.20220221072141-27ffd1126da1GHSA-4whx-7p29-mq22

Affected products (as reported)

VendorProductVersions
pingcap tidb = 5.3.0

Weakness: CWE-287 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References