# CVE-2022-31011: TiDB authentication bypass vulnerability

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Published: 2022-05-31T19:30:18.000Z
- Modified: 2026-06-17T04:44:36.047Z
- Also known as: GHSA-4whx-7p29-mq22
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- pingcap tidb: = 5.3.0; 5.3.0
- github.com/pingcap/tidb (Go): from 5.3.0 before 5.3.1; from 0.0.0-20210808221113-a7fdc2a05663 before 0.0.0-20220221072141-27ffd1126da1; from 1.1.0-beta.0.20210808221113-a7fdc2a05663 before 1.1.0-beta.0.20220221072141-27ffd1126da1

## Every score

- GitHub_M: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.6 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/pingcap/tidb/security/advisories/GHSA-4whx-7p29-mq22> (mitigation, third-party-advisory, web)
- <https://github.com/pingcap/tidb/releases/tag/v5.3.1> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31011> (advisory)
- <https://github.com/pingcap/tidb> (package)

## Sources

- CVE List: [CVE-2022-31011](https://www.cve.org/CVERecord?id=CVE-2022-31011), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-4whx-7p29-mq22](https://github.com/advisories/GHSA-4whx-7p29-mq22), CC-BY-4.0, modified 2025-07-09
- NVD: [CVE-2022-31011](https://nvd.nist.gov/vuln/detail/CVE-2022-31011), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31011 · Whole record: https://cve.day/CVE-2022-31011.json · Rebuilt by cve.day 2026-11-25T22:58:12.015Z
