Skip to content
Noroxi
NVD / CVE Program· CNA mitre

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…

MediumCVSS 5.0 · v2.0—No exploit Fix available

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

Report tools

JSON

Action score

21

Monitor

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.

Follow CVE-2014-4975

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi 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 help

Affected 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.

VendorProduct
ruby-langruby
redhatenterprise linux desktop
redhatenterprise linux hpc node
redhatenterprise linux server
redhatenterprise linux workstation
debiandebian linux
canonicalubuntu 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

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:6.0ruby1.9.1before 1.9.2.0-2+deb6u31.9.2.0-2+deb6u3
Debian:7ruby1.9.1before 1.9.3.194-8.1+deb7u31.9.3.194-8.1+deb7u3
Red Hat:enterprise_linux:7::clientrubybefore 0:2.0.0.353-22.el7_00:2.0.0.353-22.el7_0
Red Hat:enterprise_linux:7::clientruby-debuginfobefore 0:2.0.0.353-22.el7_00:2.0.0.353-22.el7_0
Red Hat:enterprise_linux:7::clientruby-develbefore 0:2.0.0.353-22.el7_00:2.0.0.353-22.el7_0
Red Hat:enterprise_linux:7::clientruby-docbefore 0:2.0.0.353-22.el7_00:2.0.0.353-22.el7_0
Red Hat:enterprise_linux:7::clientruby-irbbefore 0:2.0.0.353-22.el7_00:2.0.0.353-22.el7_0
Red Hat:enterprise_linux:7::clientruby-libsbefore 0:2.0.0.353-22.el7_00:2.0.0.353-22.el7_0
Red Hat:enterprise_linux:7::clientruby-tcltkbefore 0:2.0.0.353-22.el7_00:2.0.0.353-22.el7_0
Red Hat:enterprise_linux:7::clientrubygem-bigdecimalbefore 0:1.2.0-22.el7_00:1.2.0-22.el7_0
Red Hat:enterprise_linux:7::clientrubygem-io-consolebefore 0:0.4.2-22.el7_00:0.4.2-22.el7_0
Red Hat:enterprise_linux:7::clientrubygem-jsonbefore 0:1.7.7-22.el7_00:1.7.7-22.el7_0
Red Hat:enterprise_linux:7::clientrubygem-minitestbefore 0:4.3.2-22.el7_00:4.3.2-22.el7_0
Red Hat:enterprise_linux:7::clientrubygem-psychbefore 0:2.0.0-22.el7_00:2.0.0-22.el7_0
Red Hat:enterprise_linux:7::clientrubygem-rakebefore 0:0.9.6-22.el7_00:0.9.6-22.el7_0
Red Hat:enterprise_linux:7::clientrubygem-rdocbefore 0:4.0.0-22.el7_00:4.0.0-22.el7_0
Red Hat:enterprise_linux:7::clientrubygemsbefore 0:2.0.14-22.el7_00:2.0.14-22.el7_0
Red Hat:enterprise_linux:7::clientrubygems-develbefore 0:2.0.14-22.el7_00:2.0.14-22.el7_0
Red Hat:hummingbird:1ruby3.3before 0:3.3.10-23.1.hum10:3.3.10-23.1.hum1
Red Hat:hummingbird:1ruby3.3-bundled-gemsbefore 0:3.3.10-23.1.hum10:3.3.10-23.1.hum1
Red Hat:hummingbird:1ruby3.3-default-gemsbefore 0:3.3.10-23.1.hum10:3.3.10-23.1.hum1
Red Hat:hummingbird:1ruby3.3-develbefore 0:3.3.10-23.1.hum10:3.3.10-23.1.hum1
Red Hat:hummingbird:1ruby3.3-docbefore 0:3.3.10-23.1.hum10:3.3.10-23.1.hum1
Red Hat:hummingbird:1ruby3.3-libsbefore 0:3.3.10-23.1.hum10:3.3.10-23.1.hum1

+75

Other 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 / packageFixed versionSource
debian:ruby1.9.11.9.2.0-2+deb6u3 · Debian:6.0Package registry (OSV)
red hat:ruby0:2.0.0.353-22.el7_0 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:ruby-debuginfo0:2.0.0.353-22.el7_0 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:ruby-devel0:2.0.0.353-22.el7_0 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:ruby-doc0:2.0.0.353-22.el7_0 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:ruby-irb0:2.0.0.353-22.el7_0 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:ruby-libs0:2.0.0.353-22.el7_0 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:rubygem-bigdecimal0:1.2.0-22.el7_0 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:rubygem-io-console0:0.4.2-22.el7_0 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:rubygem-json0:1.7.7-22.el7_0 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:rubygem-psych0:2.0.0-22.el7_0 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:rubygem-rdoc0:4.0.0-22.el7_0 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:rubygems0:2.0.14-22.el7_0 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
suse:ruby2.12.1.9-15.1 · SUSE:Linux Enterprise Desktop 12 SP1Package 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

CVSS vector

AV:N/AC:L/Au:N/C:P/I:N/A:N

nvd-primary

References

All records