Description
Ruby before 2.4.3 allows Net::FTP command injection. Net::FTP#get, getbinaryfile, gettextfile, put, putbinaryfile, and puttextfile use Kernel#open to open a local file. If the localfile argument starts with the "|" pipe character, the command following the pipe character is executed. The default value of localfile is File.basename(remotefile), so malicious FTP servers could cause arbitrary command execution.
Remediation
References
Related Vulnerabilities
WordPress Plugin Change Password and E-mail Cross-Site Scripting (1.0)
ColdFusion CFC Deserialization RCE (CVE-2023-26359/CVE-2023-26360)
Jenkins Insufficient Verification of Data Authenticity Vulnerability (CVE-2015-7539)
WordPress Plugin Foliopress WYSIWYG Cross-Site Scripting (2.6.8.4)
Apache HTTP Server Use of Incorrectly-Resolved Name or Reference Vulnerability (CVE-2019-0220)