Algorithmic complexity vulnerability in Gem::Version::VERSION_PATTERN in lib/rubygems/version.rb in RubyGems before 1.8.23.1, 1.8.24 through
Noroxi assessment
Priority: Monitor (action score 18/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.3% (FIRST EPSS); higher than 88.4% of all records.
- Fixed version: rubygems (Debian:12) 3.2.0~rc.1-1; rubygems (Red Hat:enterprise_linux:6::client) 0:1.3.7-4.el6_4; rubygems (Red Hat:enterprise_mrg:2:computenode:el6) 0:1.8.23.2-1.el6.
Low priority for now. Upgrade to rubygems (Debian:12) 3.2.0~rc.1-1; rubygems (Red Hat:enterprise_linux:6::client) 0:1.3.7-4.el6_4; rubygems (Red Hat:enterprise_mrg:2:computenode:el6) 0:1.8.23.2-1.el6 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
Algorithmic complexity vulnerability in Gem::Version::VERSION_PATTERN in lib/rubygems/version.rb in RubyGems before 1.8.23.1, 1.8.24 through 1.8.25, 2.0.x before 2.0.8, and 2.1.x before 2.1.0, as used in Ruby 1.9.0 through 2.0.0p247, allows remote attackers to cause a denial of service (CPU consumption) via a crafted gem version that triggers a large amount of backtracking in a regular expression.
- Published
- Oct 17, 2013
- Updated
- Jun 16, 2026
- EPSS
- 3.3% · 88th percentile
- CWE
- CWE-310
Report tools
Action score
18
Monitor
Low priority for now.
- CVSS
- 17 / 40 · 4.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 3.3%
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.
Running WordPress? Scan your site free with WP Lens
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 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 |
|---|---|---|
| rubygems | rubygems | cpe:2.3:a:rubygems:rubygems |
| redhat | enterprise linux | cpe:2.3:o:redhat:enterprise_linux |
| ruby-lang | ruby | cpe:2.3:a:ruby-lang:ruby |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- redhat enterprise linux6.0
- ruby-lang ruby1.9
- ruby-lang ruby1.9.1
- ruby-lang ruby1.9.2
- ruby-lang ruby1.9.3
- ruby-lang ruby2.0
- ruby-lang ruby2.0.0
- rubygems rubygemsup to 1.8.23 inclusive
- rubygems rubygems1.8.0
- rubygems rubygems1.8.1
- rubygems rubygems1.8.10
- rubygems rubygems1.8.11
- rubygems rubygems1.8.12
- rubygems rubygems1.8.13
- rubygems rubygems1.8.14
- rubygems rubygems1.8.15
- rubygems rubygems1.8.16
- rubygems rubygems1.8.17
- rubygems rubygems1.8.18
- rubygems rubygems1.8.19
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | rubygems | before 3.2.0~rc.1-1 | 3.2.0~rc.1-1 |
| Red Hat:enterprise_linux:6::client | rubygems | before 0:1.3.7-4.el6_4 | 0:1.3.7-4.el6_4 |
| Red Hat:enterprise_mrg:2:computenode:el6 | rubygems | before 0:1.8.23.2-1.el6 | 0:1.8.23.2-1.el6 |
| Red Hat:enterprise_mrg:2:server:el6 | cumin | before 0:0.1.5787-4.el6 | 0:0.1.5787-4.el6 |
| Red Hat:openshift:2.0::el6 | rubygems | before 0:1.8.24-5.el6op | 0:1.8.24-5.el6op |
| Red Hat:openshift:2.0::el6 | rubygems-devel | before 0:1.8.24-5.el6op | 0:1.8.24-5.el6op |
| Red Hat:openstack:3::el6 | ruby193-rubygems | before 0:1.8.24-9.el6ost | 0:1.8.24-9.el6ost |
| Red Hat:openstack:3::el6 | ruby193-rubygems-devel | before 0:1.8.24-9.el6ost | 0:1.8.24-9.el6ost |
| Red Hat:rhel_software_collections:1::el6 | ruby193-ruby | before 0:1.9.3.448-40.el6 | 0:1.9.3.448-40.el6 |
| Red Hat:rhel_software_collections:1::el6 | ruby193-ruby-debuginfo | before 0:1.9.3.448-40.el6 | 0:1.9.3.448-40.el6 |
| Red Hat:rhel_software_collections:1::el6 | ruby193-ruby-devel | before 0:1.9.3.448-40.el6 | 0:1.9.3.448-40.el6 |
| Red Hat:rhel_software_collections:1::el6 | ruby193-ruby-doc | before 0:1.9.3.448-40.el6 | 0:1.9.3.448-40.el6 |
| Red Hat:rhel_software_collections:1::el6 | ruby193-ruby-irb | before 0:1.9.3.448-40.el6 | 0:1.9.3.448-40.el6 |
| Red Hat:rhel_software_collections:1::el6 | ruby193-ruby-libs | before 0:1.9.3.448-40.el6 | 0:1.9.3.448-40.el6 |
| Red Hat:rhel_software_collections:1::el6 | ruby193-ruby-tcltk | before 0:1.9.3.448-40.el6 | 0:1.9.3.448-40.el6 |
| Red Hat:rhel_software_collections:1::el6 | ruby193-rubygem-bigdecimal | before 0:1.1.0-40.el6 | 0:1.1.0-40.el6 |
| Red Hat:rhel_software_collections:1::el6 | ruby193-rubygem-io-console | before 0:0.3-40.el6 | 0:0.3-40.el6 |
| Red Hat:rhel_software_collections:1::el6 | ruby193-rubygem-json | before 0:1.5.5-40.el6 | 0:1.5.5-40.el6 |
| Red Hat:rhel_software_collections:1::el6 | ruby193-rubygem-minitest | before 0:2.5.1-40.el6 | 0:2.5.1-40.el6 |
| Red Hat:rhel_software_collections:1::el6 | ruby193-rubygem-rake | before 0:0.9.2.2-40.el6 | 0:0.9.2.2-40.el6 |
| Red Hat:rhel_software_collections:1::el6 | ruby193-rubygem-rdoc | before 0:3.9.5-40.el6 | 0:3.9.5-40.el6 |
| Red Hat:rhel_software_collections:1::el6 | ruby193-rubygems | before 0:1.8.23-40.el6 | 0:1.8.23-40.el6 |
| Red Hat:rhel_software_collections:1::el6 | ruby193-rubygems-devel | before 0:1.8.23-40.el6 | 0:1.8.23-40.el6 |
| RubyGems | rubygems-update | from 1.8.24 · before 1.8.26 | 1.8.26 |
+3
Same product
rubygems: all recordsOther highest-scoring records for the same primary product.
- CVE-2017-0903RubyGems versions between 2.0.0 and 2.6.13 are vulnerable to a possible remote code execution vulnerability.44Plan
- CVE-2017-0899RubyGems version 2.6.12 and earlier is vulnerable to maliciously crafted gem specifications that include terminal escape characters.42Plan
- CVE-2018-1000076RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series: 2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5 series40Plan
Published before and after this one in the same product
- ← EarlierCVE-2012-2125Oct 1, 2013 · RubyGems before 1.8.23 can redirect HTTPS connections to HTTP, which makes it easier for remote attackers to observe or modify a gem during 24Monitor
- ← EarlierCVE-2012-2126Oct 1, 2013 · RubyGems before 1.8.23 does not verify an SSL certificate, which allows remote attackers to modify a gem during installation via a man-in-th17Monitor
- Later →CVE-2013-4363Oct 17, 2013 · Algorithmic complexity vulnerability in Gem::Version::ANCHORED_VERSION_PATTERN in lib/rubygems/version.rb in RubyGems before 1.8.23.2, 1.8.218Monitor
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:rubygems | 3.2.0~rc.1-1 · Debian:12 | Package registry (OSV) |
| red hat:ruby193-ruby | 0:1.9.3.448-40.el6 · Red Hat:rhel_software_collections:1::el6 | Package registry (OSV) |
| red hat:ruby193-ruby-debuginfo | 0:1.9.3.448-40.el6 · Red Hat:rhel_software_collections:1::el6 | Package registry (OSV) |
| red hat:ruby193-ruby-devel | 0:1.9.3.448-40.el6 · Red Hat:rhel_software_collections:1::el6 | Package registry (OSV) |
| red hat:ruby193-ruby-doc | 0:1.9.3.448-40.el6 · Red Hat:rhel_software_collections:1::el6 | Package registry (OSV) |
| red hat:ruby193-ruby-irb | 0:1.9.3.448-40.el6 · Red Hat:rhel_software_collections:1::el6 | Package registry (OSV) |
| red hat:ruby193-ruby-libs | 0:1.9.3.448-40.el6 · Red Hat:rhel_software_collections:1::el6 | Package registry (OSV) |
| red hat:ruby193-ruby-tcltk | 0:1.9.3.448-40.el6 · Red Hat:rhel_software_collections:1::el6 | Package registry (OSV) |
| red hat:ruby193-rubygem-bigdecimal | 0:1.1.0-40.el6 · Red Hat:rhel_software_collections:1::el6 | Package registry (OSV) |
| red hat:ruby193-rubygem-io-console | 0:0.3-40.el6 · Red Hat:rhel_software_collections:1::el6 | Package registry (OSV) |
| red hat:ruby193-rubygem-json | 0:1.5.5-40.el6 · Red Hat:rhel_software_collections:1::el6 | Package registry (OSV) |
| red hat:ruby193-rubygem-minitest | 0:2.5.1-40.el6 · Red Hat:rhel_software_collections:1::el6 | Package registry (OSV) |
| red hat:ruby193-rubygem-rake | 0:0.9.2.2-40.el6 · Red Hat:rhel_software_collections:1::el6 | Package registry (OSV) |
| RubyGems:rubygems-update | 1.8.23.1 | Package registry (OSV) |
| RubyGems:rubygems-update | 1.8.26 | Package registry (OSV) |
| RubyGems:rubygems-update | 2.0.8 | Package registry (OSV) |
| RubyGems:rubygems-update | 2.1.0 | 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.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
- RubyHackerOne · paid
- RubyGemsHackerOne · disclosure only (VDP) · rubygems/rubygems
- RubyGemsHackerOne · disclosure only (VDP)
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
Technical details
Attack conditions
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- P · the service can be disrupted
- Attack complexity
- M
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- P
Weakness class (CWE)
CWE-310 · Cryptographic IssuesCVSS vector
AV:N/AC:M/Au:N/C:N/I:N/A:P
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.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (8 more)Show less
- rhn.redhat.com/errata/RHSA-2013-1427.html
- rhn.redhat.com/errata/RHSA-2013-1441.html
- rhn.redhat.com/errata/RHSA-2013-1523.html
- rhn.redhat.com/errata/RHSA-2013-1852.html
- rhn.redhat.com/errata/RHSA-2014-0207.html
- secunia.com/advisories/55381
- www.openwall.com/lists/oss-security/2013/09/10/1
- puppet.com/security/cve/cve-2013-4287
Vendor advisories and official records. Exploit/PoC links are deliberately left out.