原始 OSV JSON{
"id": "GHSA-rrp4-2xx3-mv29",
"aliases": [
"CVE-2022-21687"
],
"details": "Gh-ost version <= 1.1.2 allows users to inject DSN strings via the `-database` parameter.\n\nThis is a low severity vulnerability as 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.\n\n### Impact\nThis issue may lead to arbitrary local file read.\n\n### Patches\nFixed in 1.1.3+.\n\n### Workarounds\nNone\n\n### References\n- https://advisory.dw1.io/51\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [github/gh-ost](http://github.com/github/gh-ost)",
"summary": "Command injection in gh-ost",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.1.3"
}
]
}
],
"package": {
"name": "github.com/github/gh-ost",
"ecosystem": "Go"
}
}
],
"modified": "2022-02-07T21:07:25Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N"
}
],
"published": "2022-02-01T00:47:33Z",
"references": [
{
"url": "https://github.com/github/gh-ost/security/advisories/GHSA-rrp4-2xx3-mv29",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-21687",
"type": "ADVISORY"
},
{
"url": "https://github.com/github/gh-ost/commit/a91ab042de013cfd8fbb633763438932d9080d8f",
"type": "WEB"
},
{
"url": "https://github.com/github/gh-ost",
"type": "PACKAGE"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-20",
"CWE-74"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2022-02-01T12:15:00Z",
"github_reviewed_at": "2022-01-31T20:45:59Z"
}
}