Vulnerability · Published Dec 3, 2024 · Assigned by GitHub_M

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

Medium 4.9

In plain English

A medium-severity cross-site scripting in vitess from vitessio. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.9Medium
Exploit odds (30 days)0.4%top 61.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Govitess.io/vitess0.21.1GHSA-7mwh-q3xm-qh6p
Govitess.io/vitess0.20.4GHSA-7mwh-q3xm-qh6p
Govitess.io/vitess0.19.8GHSA-7mwh-q3xm-qh6p
Govitess.io/vitess0.19.8, 0.20.4, 0.21.1GO-2024-3306

Affected products (as reported)

VendorProductVersions
vitessio vitess >= 0.21.0-rc1, < 21.0.1>= 0.20.0-rc1, < 20.0.4< 19.0.8

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N

References