Skip to main content
← All vulnerabilities
CVE-2022-21687GHSA-RRP4-2XX3-MV29GO-2022-0298

Command injection in gh-ost

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.1.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • github.com/github/gh-ostGo

    fixed in 1.1.3

References 2

GitHub · github/gh-ost