ALPINE-CVE-2017-17405 PUBLISHED CVSS 8.800000190734863 HIGH

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.

Risk Scores

CVSS v3.0
8.800000190734863
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected Products

VendorProductVersions
Alpine:v3.10ruby0, 1.8.7_p160-r2, 1.8.7_p174-r2
Alpine:v3.5ruby2.3.5-r0, 2.3.3-r0, 2.3.2-r0
Alpine:v3.20ruby0, 0, 0
Alpine:v3.16ruby2.0.0_p481-r0, 0, 1.8.7_p160-r2
Alpine:v3.4ruby2.2.2-r1, 2.2.3-r0, 2.2.3-r1
Alpine:v3.12ruby2.2.4-r0, 2.2.3-r1, 2.2.2-r1
Alpine:v3.13ruby2.3.1-r1, 0, 1.8.7_p160-r2
Alpine:v3.14ruby2.4.2-r1, 2.4.2-r0, 2.4.1-r5
Alpine:v3.23ruby0, 0, 0
Alpine:v3.15ruby1.8.7_p174-r4, *, *
Alpine:v3.18ruby2.4.2-r0, 0, 1.8.7_p160-r2
Alpine:v3.11ruby2.3.1-r1, 2.3.1-r0, 2.2.4-r0
Alpine:v3.8ruby1.8.7_p160-r2, 2.4.2-r1, 2.4.2-r0
Alpine:v3.9ruby1.8.7_p72-r1, 1.8.7_p352-r0, 1.8.7_p299-r2
Alpine:v3.22ruby0, 0, 0
Alpine:v3.3ruby1.8.7_p72-r2, 1.8.7_p160-r3, 1.8.7_p174-r2
Alpine:v3.21ruby0, 0, 0
Alpine:v3.7ruby2.4.2-r1, 2.4.2-r0, 2.4.1-r5
Alpine:v3.17ruby0, 1.8.7_p160-r2, 1.8.7_p160-r3
Alpine:v3.6ruby1.8.7_p160-r2, 1.9.3_p194-r0, 1.8.7_p72-r2

…and 1 more

Timeline

References

Open in Interactive Console →