CVE-2019-8321
published 2019-06-17CVE-2019-8321: An issue was discovered in RubyGems 2.6 and later through 3.0.2. Since Gem::UserInteraction#verbose calls say without escaping, escape sequence injection is…
PriorityP339high7.5CVSS 3.1
AVNACLPRNUINSUCNIHAN
EPSS
3.37%
87.4th percentile
An issue was discovered in RubyGems 2.6 and later through 3.0.2. Since Gem::UserInteraction#verbose calls say without escaping, escape sequence injection is possible.
Affected
13 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | jruby | < jruby 9.1.17.0-3 (bookworm) | jruby 9.1.17.0-3 (bookworm) |
| debian | rubygems | < jruby 9.1.17.0-3 (bookworm) | jruby 9.1.17.0-3 (bookworm) |
| jruby | jruby | >= 0 < 9.1.17.0-3 | 9.1.17.0-3 |
| jruby | jruby | >= 0 < 9.1.17.0-3 | 9.1.17.0-3 |
| jruby | jruby | >= 0 < 9.1.17.0-3 | 9.1.17.0-3 |
| opensuse | leap | — | — |
| opensuse | leap | — | — |
| rubygems | rubygems | >= 0 < 3.2.0~rc.1-1 | 3.2.0~rc.1-1 |
| rubygems | rubygems | >= 0 < 3.2.0~rc.1-1 | 3.2.0~rc.1-1 |
| rubygems | rubygems | >= 0 < 3.2.0~rc.1-1 | 3.2.0~rc.1-1 |
| rubygems | rubygems | >= 0 < 3.2.0~rc.1-1 | 3.2.0~rc.1-1 |
| rubygems | rubygems | 2.6.0 – 3.0.2 | — |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:P/A:N
osv7.5HIGH
vendor_debian7.5HIGH
vendor_redhat7.5HIGH
vendor_ubuntu7.4HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Ruby vulnerabilities
vendor_ubuntu·2019-04-11·CVSS 7.4
CVE-2019-8320 [HIGH] Ruby vulnerabilities
Title: Ruby vulnerabilities
Summary: Several security issues were fixed in Ruby.
It was discovered that Ruby incorrectly handled certain RubyGems.
An attacker could possibly use this issue to execute arbitrary commands.
(CVE-2019-8320)
It was discovered that Ruby incorrectly handled certain inputs.
An attacker could possibly use this issue to execute arbitrary code.
(CVE-2019-8321, CVE-2019-8322, CVE-2019-8323, CVE-2019-8324, CVE-2019-8325)
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
rubygems: Escape sequence injection vulnerability in verbose
vendor_redhat·2019-03-05·CVSS 7.5
CVE-2019-8321 [HIGH] CWE-88 rubygems: Escape sequence injection vulnerability in verbose
rubygems: Escape sequence injection vulnerability in verbose
An issue was discovered in RubyGems 2.6 and later through 3.0.2. Since Gem::UserInteraction#verbose calls say without escaping, escape sequence injection is possible.
Package: rubygems (Red Hat Enterprise Linux 6) - Not affected
Package: rh-ruby23-ruby (Red Hat Software Collections) - Fix deferred
Package: rh-ruby26-ruby (Red Hat Software Collections) - Not affected
Debian
CVE-2019-8321: jruby - An issue was discovered in RubyGems 2.6 and later through 3.0.2. Since Gem::User...
vendor_debian·2019·CVSS 7.5
CVE-2019-8321 [HIGH] CVE-2019-8321: jruby - An issue was discovered in RubyGems 2.6 and later through 3.0.2. Since Gem::User...
An issue was discovered in RubyGems 2.6 and later through 3.0.2. Since Gem::UserInteraction#verbose calls say without escaping, escape sequence injection is possible.
Scope: local
bookworm: resolved (fixed in 9.1.17.0-3)
forky: resolved (fixed in 9.1.17.0-3)
sid: resolved (fixed in 9.1.17.0-3)
trixie: resolved (fixed in 9.1.17.0-3)
GHSA
RubyGems Escape sequence injection vulnerability in verbose
ghsa·2019-06-20
CVE-2019-8321 [HIGH] CWE-88 RubyGems Escape sequence injection vulnerability in verbose
RubyGems Escape sequence injection vulnerability in verbose
An issue was discovered in RubyGems 2.6 and later through 3.0.2. Since Gem::UserInteraction#verbose calls say without escaping, escape sequence injection is possible.
OSV
RubyGems Escape sequence injection vulnerability in verbose
osv·2019-06-20
CVE-2019-8321 [HIGH] RubyGems Escape sequence injection vulnerability in verbose
RubyGems Escape sequence injection vulnerability in verbose
An issue was discovered in RubyGems 2.6 and later through 3.0.2. Since Gem::UserInteraction#verbose calls say without escaping, escape sequence injection is possible.
OSV
CVE-2019-8321: An issue was discovered in RubyGems 2
osv·2019-06-17·CVSS 7.5
CVE-2019-8321 [HIGH] CVE-2019-8321: An issue was discovered in RubyGems 2
An issue was discovered in RubyGems 2.6 and later through 3.0.2. Since Gem::UserInteraction#verbose calls say without escaping, escape sequence injection is possible.
OSV
ruby1.9.1, ruby2.0, ruby2.3, ruby2.5 vulnerabilities
osv·2019-04-11·CVSS 7.4
CVE-2019-8320 [HIGH] ruby1.9.1, ruby2.0, ruby2.3, ruby2.5 vulnerabilities
ruby1.9.1, ruby2.0, ruby2.3, ruby2.5 vulnerabilities
It was discovered that Ruby incorrectly handled certain RubyGems.
An attacker could possibly use this issue to execute arbitrary commands.
(CVE-2019-8320)
It was discovered that Ruby incorrectly handled certain inputs.
An attacker could possibly use this issue to execute arbitrary code.
(CVE-2019-8321, CVE-2019-8322, CVE-2019-8323, CVE-2019-8324, CVE-2019-8325)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2019-8321 rubygems: Escape sequence injection vulnerability in verbose
bugzilla·2019-03-25·CVSS 7.5
CVE-2019-8321 [HIGH] CVE-2019-8321 rubygems: Escape sequence injection vulnerability in verbose
CVE-2019-8321 rubygems: Escape sequence injection vulnerability in verbose
An issue was discovered in RubyGems 2.6 and later through 3.0.2. Since Gem::UserInteraction#verbose calls say without escaping, escape sequence injection is possible.
Upstream patch:
https://bugs.ruby-lang.org/attachments/7669
References:
https://www.ruby-lang.org/en/news/2019/03/05/multiple-vulnerabilities-in-rubygems/
https://blog.rubygems.org/2019/03/05/security-advisories-2019-03.html
Discussion:
Created rubygems tracking bugs for this issue:
Affects: fedora-all [bug 1692530]
---
Looks like the change in user_interaction.rb
```ruby
def verbose(msg = nil)
say(clean_text(msg || yield)) if Gem.configuration.really_verbose
end
end
```
---
I did not see the vulnerable pattern in Red Hat Enterprise 6 or 7
Bugzilla
CVE-2019-8320 CVE-2019-8321 CVE-2019-8322 CVE-2019-8323 CVE-2019-8324 CVE-2019-8325 rubygems: various flaws [fedora-all]
bugzilla·2019-03-25·CVSS 7.4
CVE-2019-8320 [HIGH] CVE-2019-8320 CVE-2019-8321 CVE-2019-8322 CVE-2019-8323 CVE-2019-8324 CVE-2019-8325 rubygems: various flaws [fedora-all]
CVE-2019-8320 CVE-2019-8321 CVE-2019-8322 CVE-2019-8323 CVE-2019-8324 CVE-2019-8325 rubygems: various flaws [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: thi
http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.htmlhttps://hackerone.com/reports/317330https://lists.debian.org/debian-lts-announce/2020/08/msg00027.htmlhttp://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.htmlhttps://hackerone.com/reports/317330https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html
2019-06-17
Published