CVE-2021-31799Debian Linux
High 7.0
Follow: this CVE · Debian · Debian Linux We alert you by email or Slack (account required).
- Priority
- 42
- CVSS 3.1
- 7.0
- EPSS
- 1.5% probability of exploitation in 30 days · percentile 74
- Auth required
- Yes
- Published
- Jul 30, 2021
- Updated
- Jun 17, 2026
- Category
- Operating system · Linux
- Weakness (CWE)
- CWE-78
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Debian Linux.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | rdoc |
≥ 3.11 < 6.1.2.1 |
6.1.2.1 |
gem "rdoc", ">= 6.1.2.1" |
| RubyGems | rdoc |
≥ 6.2.0 < 6.2.1.1 |
6.2.1.1 |
gem "rdoc", ">= 6.2.1.1" |
| RubyGems | rdoc |
≥ 6.3.0 < 6.3.1 |
6.3.1 |
gem "rdoc", ">= 6.3.1" |
Per OSV / GitHub Advisories (GHSA-ggxm-pgc9-g7fp). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| debian | debian_linux | 9.0 |
| debian | debian_linux | 10.0 |
| ruby-lang | rdoc | ≥ 3.11 < 6.3.1 |
| oracle | jd_edwards_enterpriseone_tools | < 9.2.6.1 |
Official advisories
- libruby4_0-4_0-4.0.0~preview2-1.1 on GA media · SUSE · openSUSE-SU-2025:15819-1 · Dec 12, 2025 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- lists.debian.org Third Party Advisory
- security-tracker.debian.org Third Party Advisory
- security.gentoo.org
- security.netapp.com Third Party Advisory
- www.oracle.com Patch Third Party Advisory
- www.ruby-lang.org Patch Vendor Advisory