CVE-2014-4975
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network without logging in. Limited direct impact.
- Exploit odds
- 3.5% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 3.5% in the next 30 days (EPSS).
- Severity: 5.0 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 3.5% · EPSS, next 30 days
- Weakness
- CWE-119 · Buffer errors
- Record status
- Modified
Affected
- ruby-lang Ruby ≤ 1.9.3
- ruby-lang Ruby 2.0
- ruby-lang Ruby 2.0.0
- 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
Attack profile CVSS 2.0 · 5.0
- Attack vector
- Network
- Complexity
- Low
- Authentication
- None
- Confidentiality
- Partial
- Integrity
- None
- Availability
- None
Raw vector
AV:N/AC:L/Au:N/C:P/I:N/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2014-4975.md and follow it. Check whether this project is affected by CVE-2014-4975. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46778
- https://bugs.ruby-lang.org/issues/10019
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46778
- https://bugs.ruby-lang.org/issues/10019
References
- http://advisories.mageia.org/MGASA-2014-0472.html
- http://rhn.redhat.com/errata/RHSA-2014-1912.html
- http://rhn.redhat.com/errata/RHSA-2014-1913.html
- http://rhn.redhat.com/errata/RHSA-2014-1914.html
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46778
- http://www.debian.org/security/2015/dsa-3157
- http://www.mandriva.com/security/advisories?name=MDVSA-2015:129
- http://www.openwall.com/lists/oss-security/2014/07/09/13
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- http://www.securityfocus.com/bid/68474
- http://www.ubuntu.com/usn/USN-2397-1
- https://bugs.ruby-lang.org/issues/10019
- https://bugzilla.redhat.com/show_bug.cgi?id=1118158
- https://exchange.xforce.ibmcloud.com/vulnerabilities/94706
- http://advisories.mageia.org/MGASA-2014-0472.html
- http://rhn.redhat.com/errata/RHSA-2014-1912.html
- http://rhn.redhat.com/errata/RHSA-2014-1913.html
- http://rhn.redhat.com/errata/RHSA-2014-1914.html
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46778
- http://www.debian.org/security/2015/dsa-3157
- http://www.mandriva.com/security/advisories?name=MDVSA-2015:129
- http://www.openwall.com/lists/oss-security/2014/07/09/13
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- http://www.securityfocus.com/bid/68474
- http://www.ubuntu.com/usn/USN-2397-1