CVE-2014-4975Ruby-lang Ruby
Medium 5.0 No auth needed
Follow: this CVE · Ruby-lang · Ruby-lang Ruby We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Ruby.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | ruby | ≤ 1.9.3 |
| ruby-lang | ruby | 2.0 |
| ruby-lang | ruby | 2.0.0 |
| ruby-lang | ruby | 2.0.0 |
| ruby-lang | ruby | 2.0.0 |
| ruby-lang | ruby | 2.0.0 |
| ruby-lang | ruby | 2.0.0 |
| ruby-lang | ruby | 2.0.0 |
| ruby-lang | ruby | 2.0.0 |
| ruby-lang | ruby | 2.0.0 |
| ruby-lang | ruby | 2.1 |
| ruby-lang | ruby | 2.1 |
| ruby-lang | ruby | 2.1.1 |
| ruby-lang | ruby | 2.1.2 |
| redhat | enterprise_linux_desktop | 7.0 |
| redhat | enterprise_linux_hpc_node | 7.0 |
| redhat | enterprise_linux_server | 7.0 |
| redhat | enterprise_linux_workstation | 7.0 |
| debian | debian_linux | 7.0 |
| debian | debian_linux | 8.0 |
| canonical | ubuntu_linux | 12.04 |
| canonical | ubuntu_linux | 14.04 |
| canonical | ubuntu_linux | 14.10 |
Official advisories
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:8838 · Apr 21, 2026 Critical
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:7305 · Apr 21, 2026 Critical
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:7307 · Apr 21, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- advisories.mageia.org Third Party Advisory
- rhn.redhat.com Third Party Advisory
- rhn.redhat.com Third Party Advisory
- rhn.redhat.com Third Party Advisory
- svn.ruby-lang.org Vendor Advisory
- www.debian.org Third Party Advisory
- www.mandriva.com Broken Link
- www.openwall.com Mailing List
- www.oracle.com Third Party Advisory
- www.securityfocus.com Third Party Advisory VDB Entry
- www.ubuntu.com Third Party Advisory
- bugs.ruby-lang.org Vendor Advisory
- bugzilla.redhat.com Issue Tracking
- exchange.xforce.ibmcloud.com