High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-31799
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 05:28 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-31799
Complete source record
{
"id": "9ebc1f4575726b5fdd51f52fa7531d3d220695b5505a5279e643fdefd9ca7e90",
"url": "https://osv.dev/vulnerability/CVE-2021-31799",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-31799",
"summary": "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.",
"evidence": "osv:CVE-2021-31799",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-31799",
"aliases": [
"CVE-2021-31799",
"GHSA-ggxm-pgc9-g7fp"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/ruby/rdoc",
"type": "GIT",
"events": [
{
"introduced": "25786dd7791e3bc8c130066d3f0680a3e2d28c32"
},
{
"fixed": "9307f932b7f5f97a27706cc04e4c2de72d9baf72"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:ruby-lang:rdoc:*:*:*:*:*:ruby:*:*",
"range": [
{
"introduced": "3.11"
},
{
"fixed": "6.3.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v6.3.0",
"v6.2.1",
"v6.1.1",
"v6.0.1",
"v5.0.0",
"v6.2.0",
"v6.1.0",
"v6.1.0.beta3",
"v6.1.0.beta2",
"v6.1.0.beta1",
"v6.0.4",
"v6.0.3",
"v6.0.2",
"v6.0.0",
"v6.0.0.beta4",
"v6.0.0.beta3",
"v6.0.0.beta2",
"v6.0.0.beta1",
"v5.1.0",
"v4.2.2",
"v5.0.0.beta2",
"v5.0.0.beta1",
"v4.2.1",
"v4.2.0",
"v4.1.1",
"v4.1.0",
"v4.1.0.preview.3",
"v4.1.0.preview.1",
"v4.0.1",
"v4.0.0",
"v4.0.0.rc.2.1",
"v4.0.0.rc.2",
"v3.12",
"v4.0.0.preview2.1",
"v4.0.0.preview2",
"v3.11"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-31799.json"
}
}
],
"modified": "2026-10-24T10:30:29.277126119Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2021/10/msg00009.html",
"https://security-tracker.debian.org/tracker/CVE-2021-31799",
"https://security.gentoo.org/glsa/202401-05",
"https://security.netapp.com/advisory/ntap-20210902-0004/",
"https://www.oracle.com/security-alerts/cpuapr2022.html",
"https://www.ruby-lang.org/en/news/2021/05/02/os-command-injection-in-rdoc/"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:oracle:jd_edwards_enterpriseone_tools:*:*:*:*:*:*:*:*"
],
"vendor_product": "oracle:jd_edwards_enterpriseone_tools",
"extracted_events": [
{
"range": [
{
"fixed": "9.2.6.1"
}
],
"source": "CPE_RANGE"
}
]
},
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
},
{
"introduced": "10.0"
},
{
"last_affected": "10.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-31799",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 432284,
"published_at": "2021-07-30T14:15:16.62+00:00"
}