OS Command Injection Affecting ruby2.5 package, versions <2.5.0~rc1-1


0.0
high

Snyk CVSS

    Attack Complexity Low
    User Interaction Required
    Confidentiality High
    Integrity High
    Availability High

    Threat Intelligence

    Exploit Maturity Mature
    EPSS 89.5% (99th percentile)
Expand this section
NVD
8.8 high
Expand this section
Red Hat
6.3 medium

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-DEBIAN10-RUBY25-384389
  • published 15 Dec 2017
  • disclosed 15 Dec 2017

How to fix?

Upgrade Debian:10 ruby2.5 to version 2.5.0~rc1-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby2.5 package and not the ruby2.5 package as distributed by Debian. See How to fix? for Debian:10 relevant fixed versions and status.

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.