6.8

CVE-2022-21687: github gh-ost Improper Input Validation

CVSS: 6.8v3.1MediumModified
AliasesGHSA-rrp4-2xx3-mv29GO-2022-0298
Published 01-02-2022Last modified 05-05-2025

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.

Overall risk
27/100
0100
Medium · default modelHow is this calculated?
CVSS score
6.8/10
010
Medium · v3.1 (CVE.org)
EPSS score
1.00%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 01-02-2022
    PublishedVulnerability first disclosed.
  2. 05-05-2025
    Last 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

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

20-09-202620-10-2026
EPSS score
1.00%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Github1 product
Github.com/github1 product
  • gh-ost< 1.1.3

2 vendors · 2 products

References

4 links