{"cve":"CVE-2022-21687","nvd":{"published":"2022-02-01T12:15:08.200","modified":"2026-06-17T04:26:45.853","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5},"cwes":["CWE-20"],"references":["https://github.com/github/gh-ost/commit/a91ab042de013cfd8fbb633763438932d9080d8f","https://github.com/github/gh-ost/security/advisories/GHSA-rrp4-2xx3-mv29","https://github.com/github/gh-ost/commit/a91ab042de013cfd8fbb633763438932d9080d8f","https://github.com/github/gh-ost/security/advisories/GHSA-rrp4-2xx3-mv29"],"products":["github:gh-ost"],"source":"nvd","synced_at":"2026-10-19T21:27:20.926095847+00:00"},"epss":{"cve":"CVE-2022-21687","score":0.01003,"percentile":0.62942,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-rrp4-2xx3-mv29","url":"https://osv.dev/vulnerability/GHSA-rrp4-2xx3-mv29","summary":"Command injection in gh-ost","modified":"2026-09-10T03:49:17.096352986Z","packages":[{"ecosystem":"Go","name":"github.com/github/gh-ost","purl":"pkg:golang/github.com/github/gh-ost","ranges":["<1.1.3"],"fixed":["1.1.3"]}]},{"id":"GO-2022-0298","url":"https://osv.dev/vulnerability/GO-2022-0298","summary":"Command injection in gh-ost in github.com/github/gh-ost","modified":"2026-03-03T04:49:38.894744Z","packages":[{"ecosystem":"Go","name":"github.com/github/gh-ost","purl":"pkg:golang/github.com/github/gh-ost","ranges":["<1.1.3"],"fixed":["1.1.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}