{"id":"GHSA-rrp4-2xx3-mv29","revision":"6e17878d64b04f1db49640cabea55e7f","records":[{"revision":"6e17878d64b04f1db49640cabea55e7f","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-rrp4-2xx3-mv29","aliases":["CVE-2022-21687","GO-2022-0298"],"title":"Command injection in gh-ost","description":"Gh-ost version <= 1.1.2 allows users to inject DSN strings via the `-database` parameter.\n\nThis is a low severity vulnerability as 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.\n\n### Impact\nThis issue may lead to arbitrary local file read.\n\n### Patches\nFixed in 1.1.3+.\n\n### Workarounds\nNone\n\n### References\n- https://advisory.dw1.io/51\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [github/gh-ost](http://github.com/github/gh-ost)","state":0,"publishedAt":"2022-02-01T00:47:33+00:00","modifiedAt":"2026-09-10T03:49:17.096353+00:00","affected":[{"ecosystem":"Go","name":"github.com/github/gh-ost","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.1.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/github/gh-ost/security/advisories/GHSA-rrp4-2xx3-mv29","https://nvd.nist.gov/vuln/detail/CVE-2022-21687","https://github.com/github/gh-ost/commit/a91ab042de013cfd8fbb633763438932d9080d8f","https://github.com/github/gh-ost"],"sourceUrl":"https://github.com/advisories/GHSA-rrp4-2xx3-mv29","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-rrp4-2xx3-mv29","identifiers":["GHSA-rrp4-2xx3-mv29","CVE-2022-21687","GO-2022-0298"]},"retained":false,"historicalAffected":[]}],"coverage":[]}