Vulnerabilities · 2022 · Github
CVE-2022-21687
Github Gh-ost vulnerability
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.
Affected products
Gh-ost. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Github Gh-ost runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
More vulnerabilities in Github products
CVE-2025-23369CVE-2025-14046CVE-2025-13744CVE-2025-11892CVE-2025-11578CVE-2025-8447CVE-2025-6981CVE-2025-6600All 125
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.