{"id":"CVE-2022-31011","published":"2022-05-31T19:30:18Z","modified":"2025-04-23T18:20:55Z","title":"TiDB authentication bypass vulnerability","vendor":"pingcap","product":"tidb","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00377,"percentile":0.23581,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"references":[{"url":"https://github.com/pingcap/tidb/security/advisories/GHSA-4whx-7p29-mq22","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pingcap/tidb/releases/tag/v5.3.1","tags":["x_refsource_MISC"]}],"priority":{"score":10.2,"factors":[{"name":"EPSS percentile","points":4.72},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"pingcap","affectedVersions":[{"vendor":"pingcap","product":"tidb","versions":["= 5.3.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:52:41.646289Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/pingcap/tidb","vulnerableRanges":[">=5.3.0, <5.3.1",">=0.0.0-20210808221113-a7fdc2a05663, <0.0.0-20220221072141-27ffd1126da1",">=1.1.0-beta.0.20210808221113-a7fdc2a05663, <1.1.0-beta.0.20220221072141-27ffd1126da1"],"patched":["5.3.1","0.0.0-20220221072141-27ffd1126da1","1.1.0-beta.0.20220221072141-27ffd1126da1"],"from":["GHSA-4whx-7p29-mq22"],"provenance":"source"}],"summary":{"text":"TiDB, an open-source NewSQL database for hybrid transactional and analytical workloads, contains an improper authentication flaw in its authentication process. An attacker with local access and low-privilege credentials can send crafted authentication requests to bypass authentication, gaining privilege escalation or unauthorized access, and no user interaction is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:58:05Z"},"euvd":{"id":"EUVD-2022-5925","exploited":false,"provenance":"source"}}