CVE-2021-31799

Description

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.

Severity
HIGH
CVSS v3
7.0
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
1.480%
chance of exploitation in the next 30 days
higher than 74.4% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationnone
Automatableno
Technical impacttotal
Scored2024-10-15

Timeline

  1. 2021-07-29Published by the CNA00:00 UTC
  2. 2021-09-01GitHub advisory published (GHSA-ggxm-pgc9-g7fp)34 days after publication
  3. 2024-10-15CISA SSVC decision recorded1174 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-ggxm-pgc9-g7fp, affected packages:

PackageVulnerable versionsFixed in
RubyGems rdocfrom 3.11 before 6.1.2.16.1.2.1
RubyGems rdocfrom 6.2.0 before 6.2.1.16.2.1.1
RubyGems rdocfrom 6.3.0 before 6.3.16.3.1

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
ruby-lang rdocfrom 3.11 before 6.3.1fixed in 6.3.16.3.1
debian debian_linux10.0no fix listed9.0no fix listednot listednot listed
oracle jd_edwards_enterpriseone_toolsbefore 9.2.6.1fixed in 9.2.6.19.2.6.1

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources