Live threats

All CVEs / Ruby-lang

CVE-2014-4975Ruby-lang Ruby

Medium 5.0 No auth needed

Priority
45
CVSS 2.0
5.0
EPSS
3.5%
probability of exploitation in 30 days · percentile 90
Auth required
No
Published
Nov 15, 2014
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-119
Vector
AV:N/AC:L/Au:N/C:P/I:N/A:N

What happens

Off-by-one error in the encodes function in pack.c in Ruby 1.9.3 and earlier, and 2.x through 2.1.2, when using certain format string specifiers, allows context-dependent attackers to cause a denial of service (segmentation fault) via vectors that trigger a stack-based buffer overflow.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ruby.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
ruby-langruby≤ 1.9.3
ruby-langruby2.0
ruby-langruby2.0.0
ruby-langruby2.0.0
ruby-langruby2.0.0
ruby-langruby2.0.0
ruby-langruby2.0.0
ruby-langruby2.0.0
ruby-langruby2.0.0
ruby-langruby2.0.0
ruby-langruby2.1
ruby-langruby2.1
ruby-langruby2.1.1
ruby-langruby2.1.2
redhatenterprise_linux_desktop7.0
redhatenterprise_linux_hpc_node7.0
redhatenterprise_linux_server7.0
redhatenterprise_linux_workstation7.0
debiandebian_linux7.0
debiandebian_linux8.0
canonicalubuntu_linux12.04
canonicalubuntu_linux14.04
canonicalubuntu_linux14.10

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.