CVE-2022-21687

MEDIUMCVSS 6.5/10EPSS 1.00%

Last modified

CVE-2022-21687 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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. EPSS estimates a 1.00% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
6.5/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

EPSS Probability
1.00%

58.5th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
GithubGh-Ost< 1.1.3

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2022-21687?
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.
How severe is CVE-2022-21687?
CVE-2022-21687 has a CVSS score of 6.5/10 (MEDIUM severity). The EPSS model estimates a 1.00% probability of exploitation in the next 30 days.
How do I fix CVE-2022-21687?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2022-21687?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST