# CVE-2024-37820: GO-2024-3284 - PingCAP TiDB nil pointer dereference in github.com/pingcap/tidb

Source: https://junglewise.ai/threats/cve-2024-37820-pingcap-tidb-nil-pointer-dereference  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-11-27  
License: CC BY 4.0 with a link back

CVE-2024-37820 · Severity: low · CVSS 3.1 · Published 2024-11-27

PingCAP TiDB nil pointer dereference in github.com/pingcap/tidb

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-2024-37820 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-37820 being exploited in the wild.

**How severe is CVE-2024-37820?** Low severity, with a CVSS score of 3.1, published 27 November 2024.

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

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

**Am I affected by CVE-2024-37820?** 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 8.2.0 or later

  ```sh
  go get github.com/pingcap/tidb@v8.2.0
  ```


## Affected products

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

## Identifiers

- CVE-2024-37820
- GHSA-9g6g-xqv5-8g5w
- GO-2024-3284

## Related threats

- [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)
- [TiDB authentication bypass vulnerability](https://junglewise.ai/threats/cve-2022-31011-tidb-authentication-bypass-vulnerability)
