Ubuntu CVE Tracker
UBUNTU-CVE-2019-8324
Details
An issue was discovered in RubyGems 2.6 and later through 3.0.2. A crafted gem with a multi-line name is not handled correctly. Therefore, an attacker could inject arbitrary code to the stub line of gemspec, which is eval-ed by code in ensure_loadable_spec during the preinstall check.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:14.04:LTS | ruby1.9.1 | All versions before 1.9.3.484-2ubuntu1.14 (fixed in 1.9.3.484-2ubuntu1.14) |
| Ubuntu:14.04:LTS | ruby2.0 | All versions before 2.0.0.484-1ubuntu2.13 (fixed in 2.0.0.484-1ubuntu2.13) |
| Ubuntu:Pro:14.04:LTS | jruby | All versions before 1.5.6-9+deb8u2build0.14.04.1~esm2 (fixed in 1.5.6-9+deb8u2build0.14.04.1~esm2) |
| Ubuntu:16.04:LTS | ruby2.3 | All versions before 2.3.1-2~16.04.12 (fixed in 2.3.1-2~16.04.12) |
| Ubuntu:18.04:LTS | ruby2.5 | All versions before 2.5.1-1ubuntu1.2 (fixed in 2.5.1-1ubuntu1.2) |
| Ubuntu:18.04:LTS | jruby | All versions, no fix listed |
References
- https://ubuntu.com/security/CVE-2019-8324
- https://bugs.ruby-lang.org/attachments/7669
- https://bugs.ruby-lang.org/attachments/7670
- 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
- https://www.cve.org/CVERecord?id=CVE-2019-8324