# CVE-2024-37820: PingCAP TiDB nil pointer dereference

- Severity: Medium 5.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Published: 2024-06-25T00:00:00.000Z
- Modified: 2026-09-10T03:50:15.192Z
- Also known as: GHSA-9g6g-xqv5-8g5w, GO-2024-3284
- Related: CGA-r9jj-4c4x-944g
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

A nil pointer dereference in PingCAP TiDB v8.2.0-alpha-216-gfe5858b allows attackers to crash the application via expression.inferCollation.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/pingcap/tidb (Go): before 8.2.0; all versions

## Every score

- CISA-ADP: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N`

## References

- <https://github.com/pingcap/tidb/issues/53580> (report, web)
- <https://gist.github.com/ycybfhb/a9c1e14ce281f2f553adca84d384b761> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-37820> (advisory)
- <https://github.com/pingcap/tidb/commit/3d68bd21240c610c6307713e2bd54a5e71c32608> (fix, web)
- <https://github.com/advisories/GHSA-9g6g-xqv5-8g5w> (advisory)
- <https://github.com/pingcap/tidb> (package)

## Sources

- CVE List: [CVE-2024-37820](https://www.cve.org/CVERecord?id=CVE-2024-37820), CVE Terms of Use, modified 2024-11-21
- GitHub Advisory Database: [GHSA-9g6g-xqv5-8g5w](https://github.com/advisories/GHSA-9g6g-xqv5-8g5w), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-3284](https://pkg.go.dev/vuln/GO-2024-3284), CC-BY-4.0, modified 2026-07-15
- NVD: [CVE-2024-37820](https://nvd.nist.gov/vuln/detail/CVE-2024-37820), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-37820 · Whole record: https://cve.day/CVE-2024-37820.json · Rebuilt by cve.day 2026-11-25T22:58:42.233Z
