OS Command Injection Affecting ruby2.5-devel-extra package, versions <2.5.9-4.20.1
Threat Intelligence
EPSS
0.07% (30th
percentile)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-SLES150-RUBY25DEVELEXTRA-2653243
- published 14 Apr 2022
- disclosed 1 Dec 2021
Introduced: 1 Dec 2021
CVE-2021-31799 Open this link in a new tabHow to fix?
Upgrade SLES:15.0 ruby2.5-devel-extra to version 2.5.9-4.20.1 or higher.
NVD Description
Note: Versions mentioned in the description apply only to the upstream ruby2.5-devel-extra package and not the ruby2.5-devel-extra package as distributed by SLES.
See How to fix? for SLES:15.0 relevant fixed versions and status.
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.
References
- https://www.suse.com/security/cve/CVE-2021-31799.html
- https://bugzilla.suse.com/1190375
- https://bugzilla.suse.com/1196771
- https://www.ruby-lang.org/en/news/2021/05/02/os-command-injection-in-rdoc/
- https://security-tracker.debian.org/tracker/CVE-2021-31799
- https://security.netapp.com/advisory/ntap-20210902-0004/
- https://lists.debian.org/debian-lts-announce/2021/10/msg00009.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://security.gentoo.org/glsa/202401-05
CVSS Scores
version 3.1