CVE-2022-21687

Medium

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.

SeverityMedium
CVSS6.8
Exploit probability—
ProductGithub Gh-ost
PublishedFeb 1, 2022
First seenFeb 1, 2022

How to fix

Update
  • github gh-ost1.1.3 or later
  • github.com/github/gh-ost1.1.3 or later

Affected products

ProductAffected versionsFixed in
github gh-ostv < 1.1.31.1.3
github.com/github/gh-ostGov < 1.1.31.1.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.