Advisory record · GHSA-rrp4-2xx3-mv29

Command injection in gh-ost

CVSS 6.8 MediumEPSS 0.010 · 63rd percentile

Published by the GitHub Advisory Database at 1 Feb 2022, 00:47 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
github.com/github/gh-ostGo<1.1.31.1.3
Identifiers
GHSA-rrp4-2xx3-mv29 · CVE-2022-21687 · GO-2022-0298
Weakness (CWE)
CWE-20 · CWE-74
Published
1 Feb 2022
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Gh-ost versions before 1.1.3 (github.com/github/gh-ost) allow DSN strings to be injected through the -database parameter. An attacker would need access to the target host, or must trick an administrator into running a malicious gh-ost command, and must also have network access from that host to a malicious MySQL server; the impact may include arbitrary local file read. Upgrade to gh-ost 1.1.3 or later. No workaround is listed.

Written 6 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.8 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.010, the 63rd percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:44 UTC First seen by agentprime
  2. 31 Oct 2026, 14:44 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.