Original description
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.
Affected software
- Ruby ≥ 2.5.0 ≤ 2.5.6≥ 2.4.0 ≤ 2.4.7≥ 2.6.0 ≤ 2.6.4 exact match
Details
- Published
- 2019-11-26
- Last modified
- 2024-08-05
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H- EPSS (30-day exploit probability)
- 4.19% (percentile 91)
References
- cve.org/CVE-2019-16255
- nvd.nist.gov/vuln/detail/CVE-2019-16255
- hackerone.com/reports/327512
- lists.debian.org/debian-lts-announce/2019/11/msg00025.html
- www.ruby-lang.org/ja/news/2019/10/01/ruby-2-6-5-released/
- www.ruby-lang.org/ja/news/2019/10/01/ruby-2-5-7-released/
- www.ruby-lang.org/ja/news/2019/10/01/ruby-2-4-8-released/
- www.ruby-lang.org/ja/news/2019/10/01/code-injection-shell-test-cve-2019-16255/
- lists.debian.org/debian-lts-announce/2019/12/msg00009.html
- seclists.org/bugtraq/2019/Dec/31
- seclists.org/bugtraq/2019/Dec/32
- www.debian.org/security/2019/dsa-4587
- www.oracle.com/security-alerts/cpujan2020.html
- security.gentoo.org/glsa/202003-06
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.