Command injection in gh-ost
cve-program · CVE-2022-21687
Publishedgh-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.
Read the publisher's advisoryeuvd · EUVD-2022-1182
Publishedgh-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.
Read the publisher's advisorynvd · CVE-2022-21687
Publishedgh-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.
Read the publisher's advisoryosv · GHSA-rrp4-2xx3-mv29
PublishedGh-ost version <= 1.1.2 allows users to inject DSN strings via the `-database` parameter. This 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. ### Impact This issue may lead to arbitrary local file read. ### Patches Fixed in 1.1.3+. ### Workarounds None ### References - https://advisory.dw1.io/51 ### For more information If you have any questions or comments about this advisory: * Open an issue in [github/gh-ost](http://github.com/github/gh-ost)
Read the publisher's advisoryosv · GO-2022-0298
PublishedCommand injection in gh-ost in github.com/github/gh-ost
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2022-21687 · CVE overview and exploitation status
cve-program · CVE-2022-21687
- https://github.com/github/gh-ost/security/advisories/GHSA-rrp4-2xx3-mv29
- https://github.com/github/gh-ost/commit/a91ab042de013cfd8fbb633763438932d9080d8f
euvd · EUVD-2022-1182
- https://github.com/github/gh-ost/security/advisories/GHSA-rrp4-2xx3-mv29
- https://github.com/github/gh-ost/commit/a91ab042de013cfd8fbb633763438932d9080d8f
nvd · CVE-2022-21687
- https://github.com/github/gh-ost/commit/a91ab042de013cfd8fbb633763438932d9080d8f
- https://github.com/github/gh-ost/security/advisories/GHSA-rrp4-2xx3-mv29
osv · GHSA-rrp4-2xx3-mv29
- 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
osv · GO-2022-0298
Related changes
Linked by CVE identifierNo related changes are available here.