{"cve":"CVE-2022-31011","nvd":{"published":"2022-05-31T20:15:08.100","modified":"2026-06-17T04:44:36.047","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-287"],"references":["https://github.com/pingcap/tidb/releases/tag/v5.3.1","https://github.com/pingcap/tidb/security/advisories/GHSA-4whx-7p29-mq22","https://github.com/pingcap/tidb/releases/tag/v5.3.1","https://github.com/pingcap/tidb/security/advisories/GHSA-4whx-7p29-mq22"],"products":["pingcap:tidb"],"source":"nvd","synced_at":"2026-10-19T21:31:59.322382750+00:00"},"epss":{"cve":"CVE-2022-31011","score":0.00323,"percentile":0.25416,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-4whx-7p29-mq22","url":"https://osv.dev/vulnerability/GHSA-4whx-7p29-mq22","summary":"TiDB authentication bypass vulnerability","modified":"2025-07-09T15:49:23Z","packages":[{"ecosystem":"Go","name":"github.com/pingcap/tidb","purl":"pkg:golang/github.com/pingcap/tidb","ranges":[">=5.3.0 <5.3.1"],"fixed":["5.3.1"]},{"ecosystem":"Go","name":"github.com/pingcap/tidb","purl":"pkg:golang/github.com/pingcap/tidb","ranges":[">=0.0.0-20210808221113-a7fdc2a05663 <0.0.0-20220221072141-27ffd1126da1"],"fixed":["0.0.0-20220221072141-27ffd1126da1"]},{"ecosystem":"Go","name":"github.com/pingcap/tidb","purl":"pkg:golang/github.com/pingcap/tidb","ranges":[">=1.1.0-beta.0.20210808221113-a7fdc2a05663 <1.1.0-beta.0.20220221072141-27ffd1126da1"],"fixed":["1.1.0-beta.0.20220221072141-27ffd1126da1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}