Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/pingcap/tidb
  4. ›
  5. CVE-2022-31011

CVE-2022-31011: Improper Authentication

June 6, 2022

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.

References

  • github.com/advisories/GHSA-4whx-7p29-mq22
  • github.com/pingcap/tidb/releases/tag/v5.3.1
  • github.com/pingcap/tidb/security/advisories/GHSA-4whx-7p29-mq22
  • nvd.nist.gov/vuln/detail/CVE-2022-31011

Code Behaviors & Features

Detect and mitigate CVE-2022-31011 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

Version 5.3.0

Fixed versions

  • 5.3.1

Solution

Upgrade to version 5.3.1 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

go/github.com/pingcap/tidb/CVE-2022-31011.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:04 +0000.