7.8high
TiDB authentication bypass vulnerability
- Severity
- 7.8high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.32% (higher than 27% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-4whx-7p29-mq22
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
| Product or package | Versions | Reported by |
|---|---|---|
| pingcap tidb | = 5.3.0, 5.3.0 | CVE List, NVD |
| 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 | GitHub Advisory Database |
All scores
| GitHub_M | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 4.6medium CVSS:2.0 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
Patches
Please upgrade to TiDB 5.3.1 or higher version
Workarounds
You can also mitigate risks by taking the following measures. Option 1: Turn off SEM (Security Enhanced Mode). Option 2: Disable local login for non-root accounts and ensure that the same IP cannot be logged in as root or normal user at the same time.
References
https://en.pingcap.com/download/
For more information
If you have any questions or comments about this advisory:
- Email us at security@tidb.io
NVD (es)
TiDB es una base de datos NewSQL de código abierto que soporta cargas de trabajo de Procesamiento Transaccional y Analítico Híbrido (HTAP). Bajo determinadas condiciones, un atacante puede construir peticiones de autenticación maliciosas para omitir el proceso de autenticación, resultando en una escalada de privilegios o un acceso no autorizado. Sólo los usuarios usando TiDB versión 5.3.0, están afectados por esta vulnerabilidad. TiDB versión 5.3.1, contiene un parche para este problema. Otras estrategias de mitigación incluyen la deshabilitación del modo mejorado de seguridad (SEM), la deshabilitación del inicio de sesión local para las cuentas que no son root y la garantía de que la misma IP no puede iniciar sesión como root y usuario normal al mismo tiempo
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-31011 changed 2025-04-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4whx-7p29-mq22 changed 2025-07-09 | CC-BY-4.0 |
| NVD | CVE-2022-31011 changed 2026-06-17 | Public domain |