CVE-2014-4975
MEDIUM 5.0CVSS 2.0Off-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.
- Published
- 15 Nov 2014
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-119
- Sources
- NVDJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* |
<= 1.9.3 | |
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:2.0:*:*:*:*:*:*:* |
= 2.0 | |
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:2.0.0:*:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:2.0.0:p0:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:2.0.0:p195:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:2.0.0:p247:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:2.0.0:preview1:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:2.0.0:preview2:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:2.0.0:rc1:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:2.0.0:rc2:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:2.1:-:*:*:*:*:*:* |
= 2.1 | |
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:2.1:preview1:*:*:*:*:*:* |
= 2.1 | |
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:2.1.1:*:*:*:*:*:*:* |
= 2.1.1 | |
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:2.1.2:*:*:*:*:*:*:* |
= 2.1.2 | |
| NVD | redhat | enterprise_linux_desktopcpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linux_hpc_nodecpe:2.3:o:redhat:enterprise_linux_hpc_node:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linux_servercpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linux_workstationcpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:lts:*:*:* |
= 12.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* |
= 14.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:14.10:*:*:*:*:*:*:* |
= 14.10 |
References
- http://advisories.mageia.org/MGASA-2014-0472.html · Third Party Advisory
- http://rhn.redhat.com/errata/RHSA-2014-1912.html · Third Party Advisory
- http://rhn.redhat.com/errata/RHSA-2014-1913.html · Third Party Advisory
- http://rhn.redhat.com/errata/RHSA-2014-1914.html · Third Party Advisory
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46778 · Vendor Advisory
- http://www.debian.org/security/2015/dsa-3157 · Third Party Advisory
- http://www.mandriva.com/security/advisories?name=MDVSA-2015:129 · Broken Link
- http://www.openwall.com/lists/oss-security/2014/07/09/13 · Mailing List
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html · Third Party Advisory
- http://www.securityfocus.com/bid/68474 · Third Party Advisory, VDB Entry
- http://www.ubuntu.com/usn/USN-2397-1 · Third Party Advisory
- https://bugs.ruby-lang.org/issues/10019 · Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1118158 · Issue Tracking
- https://exchange.xforce.ibmcloud.com/vulnerabilities/94706
History
- 25 Nov 2026 20:18 UTC · NVD: first stored (published 15 Nov 2014)