CVE-2021-31799
CVE-2021-31799 is an OS command injection in Debian Linux (CVSS 7.0, High).
Public exploit available. Not confirmed exploited in the wild yet. Fixed versions are out.
Public exploit: 1 sourceFix5 products3 fixed builds listed below
e.g. OID 1.3.6.1.4.1.25623.1.0.705066
What to do
Find your product and version, then upgrade to the build on the right.
- RubyGems rdocAffected: ≥ 3.11, < 6.1.2.1Upgrade to: 6.1.2.1Stated by: GitHub advisory
- Ruby-lang RdocAffected: ≥ 3.11, < 6.3.1Upgrade to: 6.3.1Stated by: NVD
- Oracle Jd Edwards Enterpriseone ToolsAffected: < 9.2.6.1Upgrade to: 9.2.6.1Stated by: NVD
- Red Hat Inc. Red Hat Enterprise LinuxAffected: 7Upgrade to: not statedStated by: BDU
- Open-source community Debian GNU/LinuxAffected: 9Upgrade to: not statedStated by: BDU
Versions as the sources state them. 6 more products have version data. Full version matrix after sign-in
What it is
From the CVE record
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.
In plain language
No plain-language summary for this CVE yet.
Exploitation
Where each signal puts this CVE on the scale from published to confirmed exploited.
- CISA KEV
Not in the catalog. CISA has not confirmed exploitation.
- Public exploits
1 source with a proof of concept or module.
Exploit links, PoCs and Metasploit modules after sign-in- EPSS
1.5% chance of exploitation activity in the next 30 days, which ranks it in the 75th percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
Lifecycle
The patch came 471 days before any public exploit.
- OpenVAS check added
- Public exploit / PoCsource: github-poc
- Patch availablerecord updated
- Publishedweakness classified, att&ck mapped
Affected products
And 7 more affected products. See all after sign-in
Technical detail
CVSS 3.1 vector
Open in the CVSS calculatorCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Scored 7.0 by NVD.
How it is reached
- Attack Vector LocalRequires local access to the vulnerable system (e.g. local login, malicious file)
- Attack Complexity HighRequires specific conditions like a race condition or non-default configuration
- Privileges Required LowRequires basic user-level privileges
- User Interaction NoneNo user interaction needed — fully automated exploitation
Scope
- Scope UnchangedImpact is limited to the vulnerable component itself
Impact if exploited
- Confidentiality HighTotal information disclosure — all data in the component is compromised
- Integrity HighTotal loss of integrity — attacker can modify any data in the component
- Availability HighTotal denial of service — the component is completely unavailable
Weaknesses
ATT&CK techniques
Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.
Sources
References in the record
- lists.debian.org/debian-lts-announce/2021/10/msg00009.html
- security-tracker.debian.org/tracker/CVE-2021-31799
- security.gentoo.org/glsa/202401-05
And 23 more references. See all after sign-in
Questions about CVE-2021-31799
- Is CVE-2021-31799 being exploited?
- Not confirmed. Public exploit code exists (1 source), but CVE-2021-31799 is not in CISA KEV. EPSS puts the chance of exploitation in the next 30 days at 1.5%.
- Which versions are affected by CVE-2021-31799?
- Rdoc: ≥ 3.11, < 6.1.2.1. Rdoc: ≥ 3.11, < 6.3.1. Jd Edwards Enterpriseone Tools: < 9.2.6.1. 8 more products are listed in the record.
- How do I fix or mitigate CVE-2021-31799?
- Upgrade to a fixed build for your product branch: 6.1.2.1, 6.3.1, 9.2.6.1. The advisory is on oracle.com.
Last updated
Watch the software you run.
My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for Debian Linux, not every advisory. This one: public exploit.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI