Skip to content
OpenAdvisories
High USN-3945-1 6 CVEs

ruby1.9.1, ruby2.0, ruby2.3, ruby2.5 vulnerabilities

Published Apr 11, 2019 · Updated Apr 27, 2026

Summary

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)

Fixed packages 4

ReleasePackageFixed in
Ubuntu · 14.04 LTS 14.04:LTS ruby1.9.1 1.9.3.484-2ubuntu1.14
Ubuntu · 14.04 LTS 14.04:LTS ruby2.0 2.0.0.484-1ubuntu2.13
Ubuntu · 16.04 LTS 16.04:LTS ruby2.3 2.3.1-2~16.04.12
Ubuntu · 18.04 LTS 18.04:LTS ruby2.5 2.5.1-1ubuntu1.2

Vulnerabilities 6

  • High 8.8

    Code injection in RubyGems

    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 du…

  • High 7.5

    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.

  • High 7.5

    RubyGems Escape sequence injection vulnerability in gem owner

    An issue was discovered in RubyGems 2.6 and later through 3.0.2. The gem owner command outputs the contents of the API response directly to stdout. Therefore, if the response is crafted, escape sequence injection may occur.

  • High 7.5

    RubyGems Escape sequence injection vulnerability in api response handling

    An issue was discovered in RubyGems 2.6 and later through 3.0.2. Gem::GemcutterUtilities#with_response may output the API response to stdout as it is. Therefore, if the API side modifies the response, escape sequence injection may occur.

  • High 7.5

    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.)

  • High 7.4

    RubyGems Delete directory using symlink when decompressing tar

    A Directory Traversal issue was discovered in RubyGems 2.7.6 and later through 3.0.2. Before making new directories or touching files (which now include path-checking code for symlinks), it would delete the target destination. If that destination was hidden b…

References

  • report
    https://ubuntu.com/security/CVE-2019-8320
  • report
    https://ubuntu.com/security/CVE-2019-8321
  • report
    https://ubuntu.com/security/CVE-2019-8322
  • report
    https://ubuntu.com/security/CVE-2019-8323
  • report
    https://ubuntu.com/security/CVE-2019-8324
  • report
    https://ubuntu.com/security/CVE-2019-8325