CVE & CISA-KEV Catalog

CVE-2021-31799

HIGHEPSS 71th pctl
7.0
CVSS v3
NVD

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.

How to fix

Remediation Available
ruby2.7Debian
Fixed in:2.7.4-1CVE-2021-31799
libruby2.3Ubuntu
Fixed in:2.3.1-2~ubuntu16.04.16+esm1USN-5020-1
libruby2.5Ubuntu
Fixed in:2.5.1-1ubuntu1.10USN-5020-1
libruby2.7Ubuntu
Fixed in:2.7.0-5ubuntu1.5USN-5020-1
ruby2.3Ubuntu
Fixed in:2.3.1-2~ubuntu16.04.16+esm1USN-5020-1
ruby2.5Ubuntu
Fixed in:2.5.1-1ubuntu1.10USN-5020-1
ruby2.7Ubuntu
Fixed in:2.7.0-5ubuntu1.5USN-5020-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

1.48%probability of exploitation in 30 days
71stpercentile

Elevated risk: more likely to be exploited than 71% of all known CVEs.

References

Related Vulnerabilities

Other CWE-78 (OS Command Injection) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2021-1498Critical9.8100%KEVFix
CVE-2014-6271Critical9.8100%KEVFix
CVE-2019-16920Critical9.8100%KEV-
CVE-2022-44877Critical9.8100%KEVFix
CVE-2020-8515Critical9.8100%KEV-
CVE-2020-9054Critical9.8100%KEVFix
Embed a live status badge for CVE-2021-31799
CVE-2021-31799 severity badge

Markdown

[![CVE-2021-31799](https://tridentstack.com/cve/badge/CVE-2021-31799.svg)](https://tridentstack.com/cve/CVE-2021-31799)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-31799"><img src="https://tridentstack.com/cve/badge/CVE-2021-31799.svg" alt="CVE-2021-31799"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.