CVE-2019-8325
published 2019-06-17CVE-2019-8325: An issue was discovered in RubyGems 2.6 and later through 3.0.2. Since Gem::CommandManager#run calls alert_error without escaping, escape sequence injection is…
PriorityP339high7.5CVSS 3.1
AVNACLPRNUINSUCNIHAN
EPSS
3.37%
87.5th percentile
An issue was discovered in RubyGems 2.6 and later through 3.0.2. Since Gem::CommandManager#run calls alert_error without escaping, escape sequence injection is possible. (There are many ways to cause an error.)
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.
OSV
RubyGems Escape sequence injection in errors
osv·2019-06-20
CVE-2019-8325 [HIGH] RubyGems Escape sequence injection in errors
RubyGems Escape sequence injection in errors
An issue was discovered in RubyGems 2.6 and later through 3.0.2. Since Gem::CommandManager#run calls alert_error without escaping, escape sequence injection is possible. (There are many ways to cause an error.)
GHSA
RubyGems Escape sequence injection in errors
ghsa·2019-06-20
CVE-2019-8325 [HIGH] CWE-74 RubyGems Escape sequence injection in errors
RubyGems Escape sequence injection in errors
An issue was discovered in RubyGems 2.6 and later through 3.0.2. Since Gem::CommandManager#run calls alert_error without escaping, escape sequence injection is possible. (There are many ways to cause an error.)
OSV
CVE-2019-8325: An issue was discovered in RubyGems 2
osv·2019-06-17·CVSS 7.5
CVE-2019-8325 [HIGH] CVE-2019-8325: An issue was discovered in RubyGems 2
An issue was discovered in RubyGems 2.6 and later through 3.0.2. Since Gem::CommandManager#run calls alert_error without escaping, escape sequence injection is possible. (There are many ways to cause an error.)
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)
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 errors
vendor_redhat·2019-03-05·CVSS 7.5
CVE-2019-8325 [HIGH] CWE-88 rubygems: Escape sequence injection vulnerability in errors
rubygems: Escape sequence injection vulnerability in errors
An issue was discovered in RubyGems 2.6 and later through 3.0.2. Since Gem::CommandManager#run calls alert_error without escaping, escape sequence injection is possible. (There are many ways to cause an error.)
Package: rubygems (Red Hat Enterprise Linux 6) - Will not fix
Package: rh-ruby23-ruby (Red Hat Software Collections) - Fix deferred
Package: rh-ruby26-ruby (Red Hat Software Collections) - Not affected
Debian
CVE-2019-8325: jruby - An issue was discovered in RubyGems 2.6 and later through 3.0.2. Since Gem::Comm...
vendor_debian·2019·CVSS 7.5
CVE-2019-8325 [HIGH] CVE-2019-8325: jruby - An issue was discovered in RubyGems 2.6 and later through 3.0.2. Since Gem::Comm...
An issue was discovered in RubyGems 2.6 and later through 3.0.2. Since Gem::CommandManager#run calls alert_error without escaping, escape sequence injection is possible. (There are many ways to cause an error.)
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)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2019-8325 rubygems: Escape sequence injection vulnerability in errors
bugzilla·2019-03-25·CVSS 7.5
CVE-2019-8325 [HIGH] CVE-2019-8325 rubygems: Escape sequence injection vulnerability in errors
CVE-2019-8325 rubygems: Escape sequence injection vulnerability in errors
An issue was discovered in RubyGems 2.6 and later through 3.0.2. Since Gem::CommandManager#run calls alert_error without escaping, escape sequence injection is possible. (There are many ways to cause an error.)
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]
---
Flaws are from lib/rubygems/command_manager.rb in the changeset.
As an example:
```
alert_error "While executing gem ... (#{ex.class})\n #{ex}"
```
to
```
alert_error clean_text("
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/317353https://lists.debian.org/debian-lts-announce/2020/08/msg00027.htmlhttp://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.htmlhttps://hackerone.com/reports/317353https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html
2019-06-17
Published