原始 OSV JSON
{
"id": "GHSA-ggxm-pgc9-g7fp",
"aliases": [
"CVE-2021-31799"
],
"details": "In RDoc 3.11 through 6.x before 6.3.1, as distributed with Ruby through 3.0.1, it is possible to execute arbitrary code via | and tags in a filename.",
"summary": "Arbitrary Code Execution in Rdoc",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.11"
},
{
"fixed": "6.1.2.1"
}
]
}
],
"package": {
"name": "rdoc",
"ecosystem": "RubyGems"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.2.1.1"
}
]
}
],
"package": {
"name": "rdoc",
"ecosystem": "RubyGems"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.3.0"
},
{
"fixed": "6.3.1"
}
]
}
],
"package": {
"name": "rdoc",
"ecosystem": "RubyGems"
}
}
],
"modified": "2024-11-14T01:01:40Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"published": "2021-09-01T18:53:15Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-31799",
"type": "ADVISORY"
},
{
"url": "https://github.com/ruby/rdoc/commit/a7f5d6ab88632b3b482fe10611382ff73d14eed7",
"type": "WEB"
},
{
"url": "https://github.com/ruby/rdoc",
"type": "PACKAGE"
},
{
"url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rdoc/CVE-2021-31799.yml",
"type": "WEB"
},
{
"url": "https://lists.debian.org/debian-lts-announce/2021/10/msg00009.html",
"type": "WEB"
},
{
"url": "https://security-tracker.debian.org/tracker/CVE-2021-31799",
"type": "WEB"
},
{
"url": "https://security.gentoo.org/glsa/202401-05",
"type": "WEB"
},
{
"url": "https://security.netapp.com/advisory/ntap-20210902-0004",
"type": "WEB"
},
{
"url": "https://www.oracle.com/security-alerts/cpuapr2022.html",
"type": "WEB"
},
{
"url": "https://www.ruby-lang.org/en/news/2021/05/02/os-command-injection-in-rdoc",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-74",
"CWE-77",
"CWE-78"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2021-07-30T14:15:00Z",
"github_reviewed_at": "2021-08-02T18:08:41Z"
}
}