Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions rubies/jruby/CVE-2019-16255.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
engine: jruby
cve: 2019-16255
ghsa: ph7w-p94x-9vvw
url: https://nvd.nist.gov/vuln/detail/CVE-2019-16255
title: A code injection vulnerability of Shell#[] and Shell#test
date: 2019-10-01
description: |
Shell#[] and its alias Shell#test defined in lib/shell.rb allow code
injection if the first argument (aka the “command” argument) is untrusted
data. An attacker can exploit this to call an arbitrary Ruby method.

Note that passing untrusted data to methods of Shell is dangerous in general.
Users must never do it. However, we treat this particular case as a
vulnerability because the purpose of Shell#[] and Shell#[] is considered file
testing.
cvss_v2: 6.8
cvss_v3: 8.1
patched_versions:
- ">= 9.3.0.0"
related:
url:
- https://nvd.nist.gov/vuln/detail/CVE-2019-16255
- https://github.com/jruby/jruby/releases/tag/9.3.0.0
- https://github.com/jruby/jruby/issues/5126
- https://lists.debian.org/debian-lts-announce/2019/12/msg00009.html
- https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html
- https://lists.debian.org/debian-lts-announce/2023/04/msg00033.html
- https://www.ruby-lang.org/en/news/2019/10/01/code-injection-shell-test-cve-2019-16255
- https://hackerone.com/reports/327512
- https://github.com/advisories/GHSA-ph7w-p94x-9vvw
5 changes: 0 additions & 5 deletions rubies/ruby/CVE-2019-16255.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,4 @@ related:
- https://security.gentoo.org/glsa/202003-06
- https://www.oracle.com/security-alerts/cpujan2020.html
- https://hackerone.com/reports/327512
- https://github.com/jruby/jruby/releases/tag/9.3.0.0
- https://github.com/jruby/jruby/issues/5126
- https://lists.debian.org/debian-lts-announce/2019/12/msg00009.html
- https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html
- https://lists.debian.org/debian-lts-announce/2023/04/msg00033.html
- https://github.com/advisories/GHSA-ph7w-p94x-9vvw