Description
Ruby through 2.4.7, 2.5.x through 2.5.6, and 2.6.x through 2.6.4 allows code injection if the first argument (aka the "command" argument) to Shell#[] or Shell#test in lib/shell.rb is untrusted data. An attacker can exploit this to call an arbitrary Ruby method.
Remediation
References
Related Vulnerabilities
Apache Tomcat Permissions, Privileges, and Access Controls Vulnerability (CVE-2014-0050)
XWiki Improper Control of Generation of Code ('Code Injection') Vulnerability (CVE-2023-46731)
Envoy Proxy CVE-2020-25018 Vulnerability (CVE-2020-25018)
Moodle Improper Access Control Vulnerability (CVE-2016-3733)