logo

CVE-2022-21687 github.com/github/gh-ost

Package

Manager: go
Name: github.com/github/gh-ost
Vulnerable Version: >=0 <1.1.3

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N

CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

EPSS: 0.00328 pctl0.55113

Details

Command injection in gh-ost Gh-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)

Metadata

Created: 2022-02-01T00:47:33Z
Modified: 2022-02-07T21:07:25Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-rrp4-2xx3-mv29/GHSA-rrp4-2xx3-mv29.json
CWE IDs: ["CWE-20", "CWE-74"]
Alternative ID: GHSA-rrp4-2xx3-mv29
Finding: F184
Auto approve: 1