CVE-2014-4975: 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…
Noroxi assessment
Priority: Monitor (action score 21/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 3.4% (FIRST EPSS); higher than 89.2% of all records.
- No special conditions are required; it is repeatable.
- Fixed version: ruby1.9.1 (Debian:6.0) 1.9.2.0-2+deb6u3; ruby1.9.1 (Debian:7) 1.9.3.194-8.1+deb7u3; ruby (Red Hat:enterprise_linux:7::client) 0:2.0.0.353-22.el7_0.
Low priority for now. Upgrade to ruby1.9.1 (Debian:6.0) 1.9.2.0-2+deb6u3; ruby1.9.1 (Debian:7) 1.9.3.194-8.1+deb7u3; ruby (Red Hat:enterprise_linux:7::client) 0:2.0.0.353-22.el7_0 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Nov 15, 2014
- Updated
- Jun 16, 2026
- EPSS
- 3.4% · 89th percentile
- CWE
- CWE-119
Report tools
Action score
21
Low priority for now.
- CVSS
- 20 / 40 · 5.0 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 3.4%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| ruby-lang | ruby | cpe:2.3:a:ruby-lang:ruby |
| redhat | enterprise linux desktop | cpe:2.3:o:redhat:enterprise_linux_desktop |
| redhat | enterprise linux hpc node | cpe:2.3:o:redhat:enterprise_linux_hpc_node |
| redhat | enterprise linux server | cpe:2.3:o:redhat:enterprise_linux_server |
| redhat | enterprise linux workstation | cpe:2.3:o:redhat:enterprise_linux_workstation |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| canonical | ubuntu linux | cpe:2.3:o:canonical:ubuntu_linux |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- canonical ubuntu linux12.04
- canonical ubuntu linux14.04
- canonical ubuntu linux14.10
- debian debian linux7.0
- debian debian linux8.0
- redhat enterprise linux desktop7.0
- redhat enterprise linux hpc node7.0
- redhat enterprise linux server7.0
+7 more rows
- redhat enterprise linux workstation7.0
- ruby-lang rubyup to 1.9.3 inclusive
- ruby-lang ruby2.0
- ruby-lang ruby2.0.0
- ruby-lang ruby2.1
- ruby-lang ruby2.1.1
- ruby-lang ruby2.1.2
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:6.0 | ruby1.9.1 | before 1.9.2.0-2+deb6u3 | 1.9.2.0-2+deb6u3 |
| Debian:7 | ruby1.9.1 | before 1.9.3.194-8.1+deb7u3 | 1.9.3.194-8.1+deb7u3 |
| Red Hat:enterprise_linux:7::client | ruby | before 0:2.0.0.353-22.el7_0 | 0:2.0.0.353-22.el7_0 |
| Red Hat:enterprise_linux:7::client | ruby-debuginfo | before 0:2.0.0.353-22.el7_0 | 0:2.0.0.353-22.el7_0 |
| Red Hat:enterprise_linux:7::client | ruby-devel | before 0:2.0.0.353-22.el7_0 | 0:2.0.0.353-22.el7_0 |
| Red Hat:enterprise_linux:7::client | ruby-doc | before 0:2.0.0.353-22.el7_0 | 0:2.0.0.353-22.el7_0 |
| Red Hat:enterprise_linux:7::client | ruby-irb | before 0:2.0.0.353-22.el7_0 | 0:2.0.0.353-22.el7_0 |
| Red Hat:enterprise_linux:7::client | ruby-libs | before 0:2.0.0.353-22.el7_0 | 0:2.0.0.353-22.el7_0 |
| Red Hat:enterprise_linux:7::client | ruby-tcltk | before 0:2.0.0.353-22.el7_0 | 0:2.0.0.353-22.el7_0 |
| Red Hat:enterprise_linux:7::client | rubygem-bigdecimal | before 0:1.2.0-22.el7_0 | 0:1.2.0-22.el7_0 |
| Red Hat:enterprise_linux:7::client | rubygem-io-console | before 0:0.4.2-22.el7_0 | 0:0.4.2-22.el7_0 |
| Red Hat:enterprise_linux:7::client | rubygem-json | before 0:1.7.7-22.el7_0 | 0:1.7.7-22.el7_0 |
| Red Hat:enterprise_linux:7::client | rubygem-minitest | before 0:4.3.2-22.el7_0 | 0:4.3.2-22.el7_0 |
| Red Hat:enterprise_linux:7::client | rubygem-psych | before 0:2.0.0-22.el7_0 | 0:2.0.0-22.el7_0 |
| Red Hat:enterprise_linux:7::client | rubygem-rake | before 0:0.9.6-22.el7_0 | 0:0.9.6-22.el7_0 |
| Red Hat:enterprise_linux:7::client | rubygem-rdoc | before 0:4.0.0-22.el7_0 | 0:4.0.0-22.el7_0 |
| Red Hat:enterprise_linux:7::client | rubygems | before 0:2.0.14-22.el7_0 | 0:2.0.14-22.el7_0 |
| Red Hat:enterprise_linux:7::client | rubygems-devel | before 0:2.0.14-22.el7_0 | 0:2.0.14-22.el7_0 |
| Red Hat:hummingbird:1 | ruby3.3 | before 0:3.3.10-23.1.hum1 | 0:3.3.10-23.1.hum1 |
| Red Hat:hummingbird:1 | ruby3.3-bundled-gems | before 0:3.3.10-23.1.hum1 | 0:3.3.10-23.1.hum1 |
| Red Hat:hummingbird:1 | ruby3.3-default-gems | before 0:3.3.10-23.1.hum1 | 0:3.3.10-23.1.hum1 |
| Red Hat:hummingbird:1 | ruby3.3-devel | before 0:3.3.10-23.1.hum1 | 0:3.3.10-23.1.hum1 |
| Red Hat:hummingbird:1 | ruby3.3-doc | before 0:3.3.10-23.1.hum1 | 0:3.3.10-23.1.hum1 |
| Red Hat:hummingbird:1 | ruby3.3-libs | before 0:3.3.10-23.1.hum1 | 0:3.3.10-23.1.hum1 |
+75
Same product
ruby-lang: all recordsOther highest-scoring records for the same primary product.
- CVE-2017-17405Ruby before 2.4.3 allows Net::FTP command injection.57Plan
- CVE-2008-3656Algorithmic complexity vulnerability in the WEBrick::HTTPUtils.split_header_value function in WEBrick::HTTP::DefaultFileHandler in WEBrick…52Plan
- CVE-2021-28966In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web application handles a parameter with TmpDir.47Plan
Published before and after this one in the same product
- ← EarlierCVE-2013-4164Nov 23, 2013 · Heap-based buffer overflow in Ruby 1.8, 1.9 before 1.9.3-p484, 2.0 before 2.0.0-p353, 2.1 before 2.1.0 preview2, and trunk before revision…40Plan
- ← EarlierCVE-2014-2734Apr 24, 2014 · The openssl extension in Ruby 2.x does not properly maintain the state of process memory after a file is reopened, which allows remote…25Monitor
- Later →CVE-2014-8090Nov 21, 2014 · The REXML parser in Ruby 1.9.x before 1.9.3 patchlevel 551, 2.0.x before 2.0.0 patchlevel 598, and 2.1.x before 2.1.5 allows remote…22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:ruby1.9.1 | 1.9.2.0-2+deb6u3 · Debian:6.0 | Package registry (OSV) |
| red hat:ruby | 0:2.0.0.353-22.el7_0 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:ruby-debuginfo | 0:2.0.0.353-22.el7_0 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:ruby-devel | 0:2.0.0.353-22.el7_0 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:ruby-doc | 0:2.0.0.353-22.el7_0 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:ruby-irb | 0:2.0.0.353-22.el7_0 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:ruby-libs | 0:2.0.0.353-22.el7_0 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:rubygem-bigdecimal | 0:1.2.0-22.el7_0 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:rubygem-io-console | 0:0.4.2-22.el7_0 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:rubygem-json | 0:1.7.7-22.el7_0 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:rubygem-psych | 0:2.0.0-22.el7_0 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:rubygem-rdoc | 0:4.0.0-22.el7_0 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:rubygems | 0:2.0.14-22.el7_0 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| suse:ruby2.1 | 2.1.9-15.1 · SUSE:Linux Enterprise Desktop 12 SP1 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Bug bounty scope
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate.
Technical details
Attack conditions
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- P · data can be read
- Integrity
- none
- Availability
- none
- Attack complexity
- Low
- Confidentiality impact
- P
- Integrity impact
- None
- Availability impact
- None
Weakness class (CWE)
CWE-119 · Improper Restriction of Operations within the Bounds of a Memory BufferCVSS vector
AV:N/AC:L/Au:N/C:P/I:N/A:N
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Overflow BuffersCAPEC-100likelihood: High · Very High
- Buffer ManipulationCAPEC-123likelihood: High · Very High
- Client-side Injection-induced Buffer OverflowCAPEC-14likelihood: Medium · High
- Filter Failure through Buffer OverflowCAPEC-24likelihood: High · High
- MIME ConversionCAPEC-42likelihood: High · High
- Overflow Binary Resource FileCAPEC-44likelihood: High · Very High
- Buffer Overflow via Symbolic LinksCAPEC-45likelihood: High · High
ATT&CK techniques
—
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (13 more)Show less
- rhn.redhat.com/errata/RHSA-2014-1912.html
- rhn.redhat.com/errata/RHSA-2014-1913.html
- rhn.redhat.com/errata/RHSA-2014-1914.html
- svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46778
- www.debian.org/security/2015/dsa-3157
- www.mandriva.com/security/advisories?name=MDVSA-2015:129
- www.openwall.com/lists/oss-security/2014/07/09/13
- www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- www.securityfocus.com/bid/68474
- www.ubuntu.com/usn/USN-2397-1
- bugs.ruby-lang.org/issues/10019
- bugzilla.redhat.com/show_bug.cgi?id=1118158
- exchange.xforce.ibmcloud.com/vulnerabilities/94706
Vendor advisories and official records. Exploit/PoC links are deliberately left out.