CVE-2019-8325
Published: 27 March 2019
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.)
From the Ubuntu Security Team
It was discovered that Gem::CommandMangert#run failed to escape certain characters. An attacker could use this vulnerability inject escape sequences into a victim's terminal.
Notes
Author | Note |
---|---|
tyhicks | ruby{1.9.1,2.0,2.3} and jruby ship an embedded rubygems. |
Priority
Status
Package | Release | Status |
---|---|---|
ruby2.1 Launchpad, Ubuntu, Debian |
disco |
Does not exist
|
eoan |
Does not exist
|
|
focal |
Does not exist
|
|
impish |
Does not exist
|
|
hirsute |
Does not exist
|
|
jammy |
Does not exist
|
|
bionic |
Does not exist
|
|
cosmic |
Does not exist
|
|
groovy |
Does not exist
|
|
kinetic |
Does not exist
|
|
lunar |
Does not exist
|
|
trusty |
Does not exist
|
|
upstream |
Needs triage
|
|
xenial |
Does not exist
|
|
mantic |
Does not exist
|
|
jruby Launchpad, Ubuntu, Debian |
impish |
Not vulnerable
(9.1.17.0-3)
|
trusty |
Released
(1.5.6-9+deb8u2build0.14.04.1~esm2)
Available with Ubuntu Pro or Ubuntu Pro (Infra-only) |
|
groovy |
Not vulnerable
(9.1.17.0-3)
|
|
hirsute |
Not vulnerable
(9.1.17.0-3)
|
|
bionic |
Needed
|
|
cosmic |
Ignored
(end of life)
|
|
disco |
Ignored
(end of life)
|
|
eoan |
Not vulnerable
(9.1.17.0-3)
|
|
focal |
Not vulnerable
(9.1.17.0-3)
|
|
lunar |
Not vulnerable
(9.1.17.0-3)
|
|
upstream |
Needs triage
|
|
xenial |
Not vulnerable
(code not present)
|
|
mantic |
Not vulnerable
(9.1.17.0-3)
|
|
ruby1.9.1 Launchpad, Ubuntu, Debian |
impish |
Does not exist
|
hirsute |
Does not exist
|
|
jammy |
Does not exist
|
|
lunar |
Does not exist
|
|
trusty |
Released
(1.9.3.484-2ubuntu1.14)
|
|
bionic |
Does not exist
|
|
cosmic |
Does not exist
|
|
disco |
Does not exist
|
|
eoan |
Does not exist
|
|
focal |
Does not exist
|
|
groovy |
Does not exist
|
|
kinetic |
Does not exist
|
|
upstream |
Needs triage
|
|
xenial |
Does not exist
|
|
mantic |
Does not exist
|
|
ruby2.0 Launchpad, Ubuntu, Debian |
impish |
Does not exist
|
hirsute |
Does not exist
|
|
jammy |
Does not exist
|
|
lunar |
Does not exist
|
|
trusty |
Released
(2.0.0.484-1ubuntu2.13)
|
|
bionic |
Does not exist
|
|
cosmic |
Does not exist
|
|
disco |
Does not exist
|
|
eoan |
Does not exist
|
|
focal |
Does not exist
|
|
groovy |
Does not exist
|
|
kinetic |
Does not exist
|
|
upstream |
Needs triage
|
|
xenial |
Does not exist
|
|
mantic |
Does not exist
|
|
ruby2.3 Launchpad, Ubuntu, Debian |
impish |
Does not exist
|
hirsute |
Does not exist
|
|
jammy |
Does not exist
|
|
lunar |
Does not exist
|
|
bionic |
Does not exist
|
|
cosmic |
Does not exist
|
|
disco |
Does not exist
|
|
eoan |
Does not exist
|
|
focal |
Does not exist
|
|
groovy |
Does not exist
|
|
kinetic |
Does not exist
|
|
trusty |
Does not exist
|
|
upstream |
Needs triage
|
|
xenial |
Released
(2.3.1-2~16.04.12)
|
|
mantic |
Does not exist
|
|
ruby2.5 Launchpad, Ubuntu, Debian |
impish |
Does not exist
|
hirsute |
Does not exist
|
|
jammy |
Does not exist
|
|
lunar |
Does not exist
|
|
bionic |
Released
(2.5.1-1ubuntu1.2)
|
|
cosmic |
Released
(2.5.1-5ubuntu4.3)
|
|
disco |
Released
(2.5.5-1)
|
|
eoan |
Released
(2.5.5-1)
|
|
focal |
Does not exist
|
|
groovy |
Does not exist
|
|
kinetic |
Does not exist
|
|
trusty |
Does not exist
|
|
upstream |
Needs triage
|
|
xenial |
Does not exist
|
|
mantic |
Does not exist
|
Severity score breakdown
Parameter | Value |
---|---|
Base score | 7.5 |
Attack vector | Network |
Attack complexity | Low |
Privileges required | None |
User interaction | None |
Scope | Unchanged |
Confidentiality | None |
Integrity impact | High |
Availability impact | None |
Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
References
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-8325
- https://bugs.ruby-lang.org/attachments/7669 (for 2.4.5)
- https://bugs.ruby-lang.org/attachments/7670 (for 2.5.3)
- 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
- https://ubuntu.com/security/notices/USN-3945-1
- NVD
- Launchpad
- Debian