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

CVE-2022-31011: TiDB authentication bypass vulnerability

June 6, 2022 (updated July 9, 2025)

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.

References

  • github.com/advisories/GHSA-4whx-7p29-mq22
  • github.com/pingcap/tidb
  • 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

All versions starting from 5.3.0 before 5.3.1, 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, 27 Aug 2025 12:19:43 +0000.