cve.bz

CVE-2022-21687

6.5 mediumEPSS 1.0%

Medium (6.5) in github gh-ost. EPSS 1.0% chance of exploitation in the next 30 days. Fixed in github.com/github/gh-ost 1.1.3.

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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
EPSS
1.0% chance of exploitation in the next 30 days; higher than 62% of CVEs (scores of 2026-10-31)
CWE
CWE-20
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rrp4-2xx3-mv29Gogithub.com/github/gh-ost<1.1.31.1.3
GO-2022-0298Gogithub.com/github/gh-ost<1.1.31.1.3

References

Check your stackJSON