USN-2397-1: Ruby vulnerabilities

Ubuntu Security Notice USN-2397-1

4th November, 2014

ruby1.8, ruby1.9.1, ruby2.0, ruby2.1 vulnerabilities

A security issue affects these releases of Ubuntu and its derivatives:

  • Ubuntu 14.10
  • Ubuntu 14.04 LTS
  • Ubuntu 12.04 LTS

Summary

Several security issues were fixed in Ruby.

Software description

  • ruby1.8 - Object-oriented scripting language
  • ruby1.9.1 - Object-oriented scripting language
  • ruby2.0 - Object-oriented scripting language
  • ruby2.1 - Object-oriented scripting language

Details

Will Wood discovered that Ruby incorrectly handled the encodes() function.
An attacker could possibly use this issue to cause Ruby to crash, resulting
in a denial of service, or possibly execute arbitrary code. The default
compiler options for affected releases should reduce the vulnerability to a
denial of service. (CVE-2014-4975)

Willis Vandevanter discovered that Ruby incorrectly handled XML entity
expansion. An attacker could use this flaw to cause Ruby to consume large
amounts of resources, resulting in a denial of service. (CVE-2014-8080)

Update instructions

The problem can be corrected by updating your system to the following package version:

Ubuntu 14.10:
libruby2.1 2.1.2-2ubuntu1.1
libruby2.0 2.0.0.484+really457-3ubuntu1.1
ruby2.1 2.1.2-2ubuntu1.1
ruby2.0 2.0.0.484+really457-3ubuntu1.1
Ubuntu 14.04 LTS:
libruby2.0 2.0.0.484-1ubuntu2.1
ruby1.9.1 1.9.3.484-2ubuntu1.1
libruby1.9.1 1.9.3.484-2ubuntu1.1
ruby2.0 2.0.0.484-1ubuntu2.1
Ubuntu 12.04 LTS:
ruby1.8 1.8.7.352-2ubuntu1.5
ruby1.9.1 1.9.3.0-1ubuntu2.9
libruby1.8 1.8.7.352-2ubuntu1.5
libruby1.9.1 1.9.3.0-1ubuntu2.9

To update your system, please follow these instructions: https://wiki.ubuntu.com/Security/Upgrades.

In general, a standard system update will make all the necessary changes.

References

CVE-2014-4975, CVE-2014-8080