Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2022-21687

6.8 · MEDIUM
Published Feb 1, 2022 github CWE-20 EPSS 1.00% (60th pctl)

Overview

CVE-2022-21687 is a medium-severity vulnerability affecting github gh-ost. It was published on February 1, 2022 and has a CVSS 3.1 base score of 6.8 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 6.8, rated MEDIUM. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

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

Remediation

Check the references section for vendor advisories and patches from github. Update gh-ost to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
github gh-ost >= 0, < 1.1.3 Affected

Frequently Asked Questions

What is CVE-2022-21687?

CVE-2022-21687 is a medium-severity vulnerability affecting github gh-ost. It was published on February 1, 2022 and has a CVSS 3.1 base score of 6.8 (MEDIUM).

How severe is CVE-2022-21687?

This vulnerability has a CVSS 3.1 base score of 6.8, rated MEDIUM. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-21687?

Check the references section for vendor advisories and patches from github. Update gh-ost to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-21687?

CyberStrike's AI-powered security agents can automatically detect CVE-2022-21687 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.