CVE-2014-4975
ruby: off-by-one stack-based buffer overflow in the encodes() function
Severity
LowRed Hat Product Security
CVSS 2.0
Review impact separately from score.
Published · July 9, 2014
Updated · June 28, 2026
Description
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.
Statement
This issue did not affect the versions of ruby as shipped with Red Hat Enterprise Linux 5 and 6.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 2.0 · 2.6AV:N/AC:H/Au:N/C:N/I:N/A:P
CWE-193 · Off-by-one Error