CWE
20
Advisory Published
Updated

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

First published: Tue Feb 01 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.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Github Gh-ost<1.1.3

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

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

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

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

  • What is the severity of CVE-2022-21687?

    CVE-2022-21687 has a severity rating of medium with a CVSS score of 6.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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203