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

    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 ID SNYK-GOLANG-GITHUBCOMPINGCAPTIDBPKGEXECUTOR-7116660
  • published 26 May 2024
  • disclosed 24 May 2024
  • credit Jianwei Liu, Jiaju Bai, Zixuan Fu, Qinglin Song, Yu Sun

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
Expand this section

Snyk

Recommended
7.5 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    None
  • Availability (A)
    High