# CVE-2022-31011: TiDB authentication bypass vulnerability

Source: https://junglewise.ai/threats/cve-2022-31011-tidb-authentication-bypass-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-06-06  
License: CC BY 4.0 with a link back

CVE-2022-31011 · Severity: low · CVSS 3.1 · Published 2022-06-06

TiDB authentication bypass vulnerability

Technologies: [github.com/pingcap/tidb (Go)](https://junglewise.ai/threats/technologies/github-com-pingcap-tidb). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2022-31011 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-31011 being exploited in the wild.

**How severe is CVE-2022-31011?** Low severity, with a CVSS score of 3.1, published 6 June 2022.

**Which products and versions are affected?** github.com/pingcap/tidb (Go) SEMVER:introduced=5.3.0,fixed=5.3.1.

**Is there a fix for CVE-2022-31011?** Yes. github.com/pingcap/tidb (Go): upgrade to 5.3.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-31011?** Check whether you run github.com/pingcap/tidb (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/pingcap/tidb (Go): upgrade to 5.3.1 or later

  ```sh
  go get github.com/pingcap/tidb@v5.3.1
  ```


## Affected products

- github.com/pingcap/tidb (Go) SEMVER:introduced=5.3.0,fixed=5.3.1

## Identifiers

- CVE-2022-31011
- GHSA-4whx-7p29-mq22

## Related threats

- [GO-2024-3284 - PingCAP TiDB nil pointer dereference in github.com/pingcap/tidb](https://junglewise.ai/threats/cve-2024-37820-pingcap-tidb-nil-pointer-dereference)
- [TiDB vulnerable to Use of Externally-Controlled Format String](https://junglewise.ai/threats/cve-2022-3023-tidb-vulnerable-to-use-of-externally-controlled-format-string)
