Arbitrary Code Injection Affecting ruby2.5 package, versions <2.5.5-3+deb10u1
Snyk CVSS
Attack Complexity
High
Confidentiality
High
Integrity
High
Availability
High
Threat Intelligence
EPSS
0.86% (82nd
percentile)
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-534947
- published 13 Nov 2019
- disclosed 26 Nov 2019
Introduced: 13 Nov 2019
CVE-2019-16255 Open this link in a new tabHow to fix?
Upgrade Debian:10
ruby2.5
to version 2.5.5-3+deb10u1 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 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.
References
- https://security-tracker.debian.org/tracker/CVE-2019-16255
- https://seclists.org/bugtraq/2019/Dec/31
- https://seclists.org/bugtraq/2019/Dec/32
- https://www.ruby-lang.org/ja/news/2019/10/01/code-injection-shell-test-cve-2019-16255/
- https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-4-8-released/
- https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-5-7-released/
- https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-6-5-released/
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-16255
- https://www.debian.org/security/2019/dsa-4587
- https://lists.debian.org/debian-lts-announce/2019/11/msg00025.html
- https://lists.debian.org/debian-lts-announce/2019/12/msg00009.html
- https://security.gentoo.org/glsa/202003-06
- https://hackerone.com/reports/327512
- https://www.oracle.com/security-alerts/cpujan2020.html
- https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html
- http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00041.html
- http://people.ubuntu.com/~ubuntu-security/cve/CVE-2019-16255
- https://lists.debian.org/debian-lts-announce/2023/04/msg00033.html