CVE-2022-3023CWE-134

Use of Externally-Controlled Format String in pingcap/tidb

Medium · published November 4, 2022

CVSS v3.0
4.2
EPSS
1%
Percentile
48.8
In the wild
Unconfirmed
What it is

⚠️ A simple formatting error is the risk here! This vulnerability in the TiDB GitHub repository allows for potentially malicious external input to alter data interpretations — it’s like letting a guest reorder the recipe at a potluck! Imagine you're hosting a potluck dinner and someone changes the recipe for your famous casserole without telling you. Just as that can lead to a surprise (and not in a good way), this vulnerability lets attackers manipulate format strings in ways you didn't intend. If exploited, an attacker could craft input that disrupts normal operations, leading to unexpected behavior or even crashes. While it may not be catastrophic, it can still cause a headache for users, leading to data integrity issues or service disruptions.

Put simply

Imagine you're hosting a potluck dinner and someone changes the recipe for your famous casserole without telling you. Just as that can lead to a surprise (and not in a good way), this vulnerability lets attackers manipulate format strings in ways you didn't intend. This vulnerability arises from the use of externally-controlled format strings in TiDB, which could allow an attacker to manipulate how the system processes data, potentially causing erratic behavior or crashes.

What to do

If exploited, an attacker could craft input that disrupts normal operations, leading to unexpected behavior or even crashes. While it may not be catastrophic, it can still cause a headache for users, leading to data integrity issues or service disruptions. To safeguard against this, upgrade to TiDB version 6.4.0 or 6.1.3 as soon as possible. Also, review your input validation practices to ensure that no untrusted data can influence format strings. Regular audits can help catch these types of issues early. You've got this! With these steps, you'll strengthen your defenses and keep everything running smoothly. 🛡️

The record
Technical detail
CVSS v3.0
4.2 · MEDIUM
Vector
CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00615 · 48.8th percentile
Weakness
CWE-134 · Use of Externally-Controlled Format String
Published
2022-11-04T00:00Z
EPSS history
Timeline
  • 04 NOV 00:00Z
    Use of Externally-Controlled Format String in pingcap/tidb
    cvelistv5