CVE-2022-21687
Description
gh-ost is a triggerless online schema migration solution for MySQL. Versions prior to 1.1.3 are subject to an arbitrary file read vulnerability. The attacker must have access to the target host or trick an administrator into executing a malicious gh-ost command on a host running gh-ost, plus network access from host running gh-ost to the attack's malicious MySQL server. The `-database` parameter does not properly sanitize user input which can lead to arbitrary file reads.
How to fix
- github gh-ost1.1.3 or later
- github.com/github/gh-ost1.1.3 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| github gh-ost | v < 1.1.3 | 1.1.3 |
| github.com/github/gh-ostGo | v < 1.1.3 | 1.1.3 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.