CVE-2022-21687: github gh-ost Improper Input Validation
Vulnerability summary
CVE-2022-21687 is a medium (CVSS 6.8) Improper Input Validation vulnerability in github gh-ost. EPSS estimates a 1.00% chance of exploitation in the next 30 days, higher than 62.3% of scored vulnerabilities.
Timeline
- 01-02-2022PublishedVulnerability first disclosed.
- 05-05-2025Last modifiedVulnerability information updated.
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 metrics
4 scores · 3 sources · 2 versions- OSV · GoEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:NDiffers
EPSS trend
Probability
1.00%
Chance of exploitation in the next 30 days
Percentile
62%
Versus all other CVEs
30-day change
0.00 pp
From 1.00% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Github1 product
- gh-ost< 1.1.3
Github.com/github1 product
- gh-ost< 1.1.3
2 vendors · 2 products
References
4 links- github.com/github/gh-ost/security/advisories/GHSA-rrp4-2xx3-mv29X Refsource CONFIRMWEBAdvisoryThird Party Advisory
- github.com/github/gh-ost/commit/a91ab042de013cfd8fbb633763438932d9080d8fX Refsource MISCWEBFIXPatchThird Party Advisory
- github.com/github/gh-ostPACKAGE