Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') Affecting github.com/pingcap/tidb/pkg/executor package, versions <8.0.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMPINGCAPTIDBPKGEXECUTOR-7116660
  • published26 May 2024
  • disclosed24 May 2024
  • creditJianwei Liu, Jiaju Bai, Zixuan Fu, Qinglin Song, Yu Sun

Introduced: 24 May 2024

CVE-2024-33809  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade github.com/pingcap/tidb/pkg/executor to version 8.0.0 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') in the buffer handling process. An attacker can cause a denial of service by exploiting the memory allocation behavior. The panic happens when get string from a column while the offset field in the column is not initialized, which leads to the index out of range.

CVSS Scores

version 3.1