CVE-2024-32886
published 2024-05-08CVE-2024-32886: Vitess is a database clustering system for horizontal scaling of MySQL. When executing the following simple query, the `vtgate` will go into an endless loop…
PriorityP422medium4.9CVSS 3.1
AVNACLPRHUINSUCNINAH
EPSS
0.75%
50.3th percentile
Vitess is a database clustering system for horizontal scaling of MySQL. When executing the following simple query, the `vtgate` will go into an endless loop that also keeps consuming memory and eventually will run out of memory. This vulnerability is fixed in 19.0.4, 18.0.5, and 17.0.7.
Affected
13 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| github.com | vitessio_vitess | >= 0 < 17.0.7 | 17.0.7 |
| github.com | vitessio_vitess | >= 18.0.0 < 18.0.5 | 18.0.5 |
| github.com | vitessio_vitess | >= 19.0.0 < 19.0.4 | 19.0.4 |
| msrc | azl3_vitess_19.0.4-1_on_azure_linux_3.0 | — | — |
| msrc | azl3_vitess_19.0.4-7_on_azure_linux_3.0 | — | — |
| msrc | cbl2_vitess_17.0.7-1_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_vitess_17.0.7-7_on_cbl_mariner_2.0 | — | — |
| vitess.io | vitess | >= 0 < 0.17.7 | 0.17.7 |
| vitess.io | vitess | >= 0.18.0 < 0.18.5 | 0.18.5 |
| vitess.io | vitess | >= 0.19.0 < 0.19.4 | 0.19.4 |
| vitessio | vitess | < 17.0.7 | 17.0.7 |
| vitessio | vitess | — | — |
| vitessio | vitess | — | — |
CVSS provenance
nvdv3.14.9MEDIUMCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
vendor_msrc4.9MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Denial of service attack by triggering unbounded memory usage in vitess.io/vitess
osv·2024-05-10
CVE-2024-32886 Denial of service attack by triggering unbounded memory usage in vitess.io/vitess
Denial of service attack by triggering unbounded memory usage in vitess.io/vitess
When executing a query, the vtgate will go into an endless loop that also keeps consuming memory and eventually will OOM. This causes a denial of service.
OSV
Vitess vulnerable to infinite memory consumption and vtgate crash
osv·2024-05-08
CVE-2024-32886 [MEDIUM] Vitess vulnerable to infinite memory consumption and vtgate crash
Vitess vulnerable to infinite memory consumption and vtgate crash
### Summary
When executing the following simple query, the `vtgate` will go into an endless loop that also keeps consuming memory and eventually will OOM.
### Details
When running the following query, the `evalengine` will try evaluate it and runs forever.
```
select _utf16 0xFF
```
The source of the bug lies in the collation logic that we have. The bug applies to all `utf16`, `utf32` and `ucs2` encodings. In general, the bug is there for any encoding where the minimal byte length for a single character is more than 1 byte.
The decoding functions for these collations all implement logic like the following to enforce the minimal character length:
https://github.com/vitessio/vitess/blob/8f6cfaaa643a08dc111395a75a2d250e
GHSA
Vitess vulnerable to infinite memory consumption and vtgate crash
ghsa·2024-05-08
CVE-2024-32886 [MEDIUM] CWE-835 Vitess vulnerable to infinite memory consumption and vtgate crash
Vitess vulnerable to infinite memory consumption and vtgate crash
### Summary
When executing the following simple query, the `vtgate` will go into an endless loop that also keeps consuming memory and eventually will OOM.
### Details
When running the following query, the `evalengine` will try evaluate it and runs forever.
```
select _utf16 0xFF
```
The source of the bug lies in the collation logic that we have. The bug applies to all `utf16`, `utf32` and `ucs2` encodings. In general, the bug is there for any encoding where the minimal byte length for a single character is more than 1 byte.
The decoding functions for these collations all implement logic like the following to enforce the minimal character length:
https://github.com/vitessio/vitess/blob/8f6cfaaa643a08dc111395a75a2d250e
Microsoft
Vitess vulnerable to infinite memory consumption and vtgate crash
vendor_msrc·2024-05-14·CVSS 4.9
CVE-2024-32886 [MEDIUM] CWE-835 Vitess vulnerable to infinite memory consumption and vtgate crash
Vitess vulnerable to infinite memory consumption and vtgate crash
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
GitHub_M: GitHub_M
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Referenc
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/vitessio/vitess/blob/8f6cfaaa643a08dc111395a75a2d250ee746cfa8/go/mysql/collations/charset/convert.go#L73-L79https://github.com/vitessio/vitess/blob/8f6cfaaa643a08dc111395a75a2d250ee746cfa8/go/mysql/collations/charset/unicode/utf16.go#L69-L71https://github.com/vitessio/vitess/commit/2fd5ba1dbf6e9b32fdfdaf869d130066b1b5c0dfhttps://github.com/vitessio/vitess/commit/9df4b66550e46b5d7079e21ed0e1b0f49f92b055https://github.com/vitessio/vitess/commit/c46dc5b6a4329a10589ca928392218d96031ac8dhttps://github.com/vitessio/vitess/commit/d438adf7e34a6cf00fe441db80842ec669a99202https://github.com/vitessio/vitess/security/advisories/GHSA-649x-hxfx-57j2https://github.com/vitessio/vitess/blob/8f6cfaaa643a08dc111395a75a2d250ee746cfa8/go/mysql/collations/charset/convert.go#L73-L79https://github.com/vitessio/vitess/blob/8f6cfaaa643a08dc111395a75a2d250ee746cfa8/go/mysql/collations/charset/unicode/utf16.go#L69-L71https://github.com/vitessio/vitess/commit/2fd5ba1dbf6e9b32fdfdaf869d130066b1b5c0dfhttps://github.com/vitessio/vitess/commit/9df4b66550e46b5d7079e21ed0e1b0f49f92b055https://github.com/vitessio/vitess/commit/c46dc5b6a4329a10589ca928392218d96031ac8dhttps://github.com/vitessio/vitess/commit/d438adf7e34a6cf00fe441db80842ec669a99202https://github.com/vitessio/vitess/security/advisories/GHSA-649x-hxfx-57j2
2024-05-08
Published