CVE-2024-37820 PingCAP TiDB nil pointer dereference

Medium 5.4 Published Updated

Attackers can crash the TiDB database application by triggering a nil pointer dereference in the expression collation inference logic.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-37820?

CVE-2024-37820 is a medium-severity vulnerability in n/a, published on 25 Jun 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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

Weakness: CWE-476

Which versions are affected by CVE-2024-37820?

3 open source packages ship an affected version, including github.com/pingcap/tidb.

PackageAffectedFixed in
github.com/pingcap/tidb GoAll versionsNone
github.com/pingcap/tidb GoAll versions8.2.0
github.com/pingcap/tidb GoAll versions8.2.0

How do I fix CVE-2024-37820?

Upgrade github.com/pingcap/tidb to 8.2.0 or later.

Is CVE-2024-37820 being exploited?

There is no known exploitation of CVE-2024-37820 in the wild and no public exploit code.

Sources

Also known as GHSA-9g6g-xqv5-8g5w, GO-2024-3284, MINI-3934-rgpq-pw4c, MINI-f393-x5hh-4x92.

Is CVE-2024-37820 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free