Security mailing lists by PureSourceCode

CVE-2022-21687

MEDIUM 6.5CVSS 3.1

Command injection in gh-ost

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.

Published
1 Feb 2022
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-20CWE-74
Also known as
GHSA-rrp4-2xx3-mv29GO-2022-0298
Sources
NVDJSONOSV GHSA-rrp4-2xx3-mv29JSONOSV GO-2022-0298JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.8 CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.8 CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:P/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD github gh-ost
cpe:2.3:a:github:gh-ost:*:*:*:*:*:*:*:*
< 1.1.3 1.1.3
OSV Go github.com/github/gh-ost < 1.1.3 1.1.3

References

History

  • 25 Nov 2026 20:34 UTC · NVD: first stored (published 1 Feb 2022)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Feb 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.