Skip to content

CVE-2024-53257 Vitess allows HTML injection in /debug/querylogz & /debug/env

MediumCVSS 4.9 EPSS 0.44%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
MySQL

Description

Vitess is a database clustering system for horizontal scaling of MySQL. The /debug/querylogz and /debug/env pages for vtgate and vttablet do not properly escape user input. The result is that queries executed by Vitess can write HTML into the monitoring page at will. These pages are rendered using text/template instead of rendering with a proper HTML templating engine. This vulnerability is fixed in 21.0.1, 20.0.4, and 19.0.8.

Upgrade path

4 packages: 4 fixed.

PackageAffectedFixed inStatus
azure linux vitess(Azure Linux 3.0) < 19.0.4-7 19.0.4-7 Fixed
cbl-mariner vitess(CBL-Mariner 2.0) < 17.0.7-6 17.0.7-6 Fixed
vitess.io/vitess(Go) < 0.19.8; >= 0.20.0, < 0.20.4; >= 0.20.0-rc1, < 0.20.4; >= 0.21.0, < 0.21.1 +1 more 0.19.8, 0.20.4, 0.21.1 Fixed
vitessio vitess < 19.0.8; = < 19.0.8; = >= 0.20.0-rc1, < 20.0.4; = >= 0.21.0-rc1, < 21.0.1 +2 more 19.0.8, 20.0.4, 21.0.1 Fixed

Affected products

ProductAffected versionsFixed in
vitess.io/vitess(Go) >= 0.21.0-rc1, < 0.21.1 0.21.1
vitess.io/vitess(Go) >= 0.20.0-rc1, < 0.20.4 0.20.4
vitess.io/vitess(Go) < 0.19.8 0.19.8
vitess.io/vitess(Go) >= 0.20.0, < 0.20.4 0.20.4
vitess.io/vitess(Go) >= 0.21.0, < 0.21.1 0.21.1
cbl-mariner vitess(CBL-Mariner:2.0) < 17.0.7-6 17.0.7-6
azure linux vitess(Azure Linux:3.0) < 19.0.4-7 19.0.4-7
vitessio vitess = >= 0.21.0-rc1, < 21.0.1 No fix listed
vitessio vitess = >= 0.20.0-rc1, < 20.0.4 No fix listed
vitessio vitess = < 19.0.8 No fix listed
vitessio vitess < 19.0.8 19.0.8
vitessio vitess >= 19.0.9, < 20.0.4 20.0.4
vitessio vitess >= 20.0.5, < 21.0.1 21.0.1

References