OS Command Injection In ruby
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.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Component | Affected version | Patched versions |
|---|---|---|---|
alpine v3.11 | 2.4.3-r0 | ||
alpine v3.3 | 2.2.9-r0 | ||
alpine v3.10 | 2.4.3-r0 | ||
alpine v3.4 | 2.3.6-r0 | ||
alpine v3.14 | 2.4.3-r0 | ||
alpine v3.15 | 2.4.3-r0 | ||
alpine v3.18 | 2.4.3-r0 | ||
alpine v3.5 | 2.3.6-r0 | ||
alpine v3.6 | 2.4.3-r0 | ||
alpine v3.13 | 2.4.3-r0 |
1-10 of 26
10
Aliases
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18.
References
1.