Infinite loop Affecting github.com/vitessio/vitess/go/mysql/collations/charset/unicode package, versions <17.0.7 >=18.0.0 <18.0.5 >=19.0.0 <19.0.4


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.04% (12th percentile)

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-GITHUBCOMVITESSIOVITESSGOMYSQLCOLLATIONSCHARSETUNICODE-6815324
  • published 9 May 2024
  • disclosed 8 May 2024
  • credit Unknown

How to fix?

Upgrade github.com/vitessio/vitess/go/mysql/collations/charset/unicode to version 17.0.7, 18.0.5, 19.0.4 or higher.

Overview

github.com/vitessio/vitess/go/mysql/collations/charset/unicode is a database clustering system for horizontal scaling of MySQL

Affected versions of this package are vulnerable to Infinite loop in the collation logic in the DecodeRune() function. A user can trigger a crash by occupying all memory in the evalengine.

PoC

select _utf16 0xFF

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