CVEBrief

Home / Debian / Debian Linux / CVE-2021-31799

CVE-2021-31799: is it exploited, and which versions of Debian Linux are affected and fixed?

CVE-2021-31799 is an OS command injection vulnerability in Debian Linux. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: rdoc from 3.11 before 6.1.2.1, rdoc from 6.2.0 before 6.2.1.1 and rdoc from 6.3.0 before 6.3.1 (GitHub advisory GHSA-ggxm-pgc9-g7fp). Fixed in 6.1.2.1, 6.2.1.1 and 6.3.1 (GitHub advisory GHSA-ggxm-pgc9-g7fp). Severity: High (7.0, CVSS 3.1, from CISA-ADP).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:56 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 16:39 UTC
Affected
rdoc from 3.11 before 6.1.2.1, rdoc from 6.2.0 before 6.2.1.1 and rdoc from 6.3.0 before 6.3.1
GitHub advisory GHSA-ggxm-pgc9-g7fp
Fixed in
6.1.2.1, 6.2.1.1 and 6.3.1
GitHub advisory GHSA-ggxm-pgc9-g7fp
Severity
High 7.0
CVSS 3.1 from CISA-ADP
Exploit odds (EPSS)
1.48% in 30 days
higher than 75% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is CVE-2021-31799?

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.

From the CVE record by mitre, last updated October 15, 2024, 20:28 UTC.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
RubyGemsrdoc>= 3.11, < 6.1.2.16.1.2.1GHSA-ggxm-pgc9-g7fp
RubyGemsrdoc>= 6.2.0, < 6.2.1.16.2.1.1GHSA-ggxm-pgc9-g7fp
RubyGemsrdoc>= 6.3.0, < 6.3.16.3.1GHSA-ggxm-pgc9-g7fp

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated November 14, 2024. Summary: Arbitrary Code Execution in Rdoc.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
debiandebian linux9.0operating system
debiandebian linux10.0operating system
ruby-langrdocfrom 3.11 before 6.3.1application
oraclejd edwards enterpriseone toolsbefore 9.2.6.1application

NVD analysis (status Modified), last modified June 17, 2026, 03:52 UTC.

How severe is CVE-2021-31799?

ScoreVersionVectorSource
High 7.0CVSS 3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HCISA-ADP
High 7.0CVSS 3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HNVD
Medium 4.4CVSS 2.0AV:L/AC:M/Au:N/C:P/I:P/A:PNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2021-31799 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: no; technical impact: total (CISA ADP, October 15, 2024)
EPSS
1.48% probability of exploitation activity in the next 30 days, percentile 74.8 (FIRST EPSS, scores of December 3, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
April 25, 2021
Published
July 29, 2021, 00:00 UTC
CVE record updated
October 15, 2024, 20:28 UTC by mitre
NVD
Modified, last modified June 17, 2026, 03:52 UTC
Last checked
CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:56 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
Official record
cve.org · NVD

What other CVEs affect Debian Linux?

Every CVE in Debian Linux

Questions about CVE-2021-31799

Is CVE-2021-31799 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 1.48% chance of exploitation activity in the next 30 days (scores of December 3, 2026).

Which versions of Debian Linux are affected by CVE-2021-31799?

rdoc from 3.11 before 6.1.2.1, rdoc from 6.2.0 before 6.2.1.1 and rdoc from 6.3.0 before 6.3.1, per the GitHub advisory GHSA-ggxm-pgc9-g7fp. The tables above give every range the sources list.

Which version fixes CVE-2021-31799?

6.1.2.1, 6.2.1.1 and 6.3.1, per the GitHub advisory GHSA-ggxm-pgc9-g7fp. Check the vendor's advisory before you rely on it.

How severe is CVE-2021-31799?

High (7.0, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.

Where is the official record of CVE-2021-31799?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.