CVE-2022-21687: Command injection in gh-ost

Published Feb 1, 2022
·
Updated

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 Software

1 affected component
GitHub Gh-ost<1.1.3

Event History

Feb 1, 2022
CVE Published
via MITRE·11:56 AM
Data Sourced
via MITRE·11:56 AM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-21687?

CVE-2022-21687 refers to an arbitrary file read vulnerability in gh-ost, a triggerless online schema migration solution for MySQL.

2

How does CVE-2022-21687 impact gh-ost?

CVE-2022-21687 allows an attacker with access to the target host or tricking an administrator into executing a malicious command to read arbitrary files on a host running gh-ost.

3

What are the affected versions of gh-ost for CVE-2022-21687?

Versions prior to 1.1.3 of gh-ost are affected by CVE-2022-21687.

4

What is the severity of CVE-2022-21687?

CVE-2022-21687 has a severity rating of medium with a CVSS score of 6.5.

5

How can I fix the vulnerability CVE-2022-21687?

To fix the vulnerability CVE-2022-21687, it is recommended to update gh-ost to version 1.1.3 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203