CONTENTUM.COMA specialist. A plan. A result.

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

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.