CVE-2009-1904 json
The BigDecimal library in Ruby 1.8.6 before p369 and 1.8.7 before p173 allows context-dependent attackers to cause a denial of service (app…
published 2009-06-11 17 y ago modified 2026-06-16 4 mo ago also EUVD-2009-1899
- cvss
- 5.0
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 12.8%
- EPSS 12.8% chance of exploitation in 30 days, percentile 96%
- public exploits
- 0
- none known
Summary
The BigDecimal library in Ruby 1.8.6 before p369 and 1.8.7 before p173 allows context-dependent attackers to cause a denial of service (application crash) via a string argument that represents a large number, as demonstrated by an attempted conversion to the Float data type.
Patch / fix
- ruby RHEL 4 1.8.1-7.el4_8.3
- ruby RHEL 5 1.8.5-5.el5_3.7
- irb RHEL 4 1.8.1-7.el4_8.3
- ruby-ri RHEL 5 1.8.5-5.el5_3.7
- ruby-irb RHEL 5 1.8.5-5.el5_3.7
- ruby-libs RHEL 4 1.8.1-7.el4_8.3
- ruby-libs RHEL 5 1.8.5-5.el5_3.7
- ruby-mode RHEL 4 1.8.1-7.el4_8.3
red hat advisories RHSA-2009:1140
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2009-1904 updated cvss 5.0
ruby: DoS vulnerability in BigDecimal
-
Red Hat Enterprise Linux (v. 5 server) ruby 1.8.5-5.el5_3.7, ruby-ri 1.8.5-5.el5_3.7, ruby-irb 1.8.5-5.el5_3.7, ruby-libs 1.8.5-5.el5_3.7, ruby-mode 1.8.5-5.el5_3.7, ruby-rdoc 1.8.5-5.el5_3.7, +1 more Red Hat Enterprise Linux AS version 4 irb 1.8.1-7.el4_8.3, ruby 1.8.1-7.el4_8.3, ruby-libs 1.8.1-7.el4_8.3, ruby-mode 1.8.1-7.el4_8.3, ruby-tcltk 1.8.1-7.el4_8.3 Red Hat Enterprise Linux Desktop (v. 5 client) ruby 1.8.5-5.el5_3.7, ruby-ri 1.8.5-5.el5_3.7, ruby-irb 1.8.5-5.el5_3.7, ruby-libs 1.8.5-5.el5_3.7, ruby-mode 1.8.5-5.el5_3.7, ruby-rdoc 1.8.5-5.el5_3.7, +1 more Red Hat Enterprise Linux Desktop version 4 irb 1.8.1-7.el4_8.3, ruby 1.8.1-7.el4_8.3, ruby-libs 1.8.1-7.el4_8.3, ruby-mode 1.8.1-7.el4_8.3, ruby-tcltk 1.8.1-7.el4_8.3 Red Hat Enterprise Linux Desktop Workstation (v. 5 client) ruby 1.8.5-5.el5_3.7, ruby-ri 1.8.5-5.el5_3.7, ruby-irb 1.8.5-5.el5_3.7, ruby-libs 1.8.5-5.el5_3.7, ruby-mode 1.8.5-5.el5_3.7, ruby-rdoc 1.8.5-5.el5_3.7, +1 more Red Hat Enterprise Linux ES version 4 irb 1.8.1-7.el4_8.3, ruby 1.8.1-7.el4_8.3, ruby-libs 1.8.1-7.el4_8.3, ruby-mode 1.8.1-7.el4_8.3, ruby-tcltk 1.8.1-7.el4_8.3fixed: vendor fix RHSA-2009:1140
+1 more productsfewer
Red Hat Enterprise Linux WS version 4 irb 1.8.1-7.el4_8.3, ruby 1.8.1-7.el4_8.3, ruby-libs 1.8.1-7.el4_8.3, ruby-mode 1.8.1-7.el4_8.3, ruby-tcltk 1.8.1-7.el4_8.3
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
12.78% chance of exploitation in the next 30 days, higher than 96% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- redmine.ruby-lang.org http://redmine.ruby-lang.org/issues/show/794 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
- Weakness
-
- CWE-189 Numeric Errors
References
-
ruby-lang.org
/en/news/2009/06/09/dos-vulnerability-in-bigdecimal/
patch, vendor-advisory
-
redmine.ruby-lang.org
/issues/show/794
exploit, patch
-
bugs.debian.org
/cgi-bin/bugreport.cgi?bug=532689
patch
-
github.com
/NZKoz/bigdecimal-segfault-fix/tree/master
patch
-
weblog.rubyonrails.org
/2009/6/10/dos-vulnerability-in-ruby/
patch
-
redhat.com
/support/errata/RHSA-2009-1140.html
vendor-advisory
-
lists.apple.com
/archives/security-announce/2010//Mar/msg00001.html
vendor-advisory
-
ubuntu.com
/usn/USN-805-1
vendor-advisory
-
redhat.com
/archives/fedora-package-announce/2009-December/msg00731.html
vendor-advisory
-
security.gentoo.org
/glsa/glsa-200906-02.xml
vendor-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2009:160
vendor-advisory
-
slackware.com
/security/viewer.php?l=slackware-security&y=2009&m=slackware-security.430805
vendor-advisory
-
secunia.com
/advisories/35399
third-party-advisory, vendor-advisory
-
vupen.com
/english/advisories/2009/1563
vdb-entry
-
secunia.com
/advisories/35937
third-party-advisory
-
secunia.com
/advisories/35593
third-party-advisory
- bugs.launchpad.net /bugs/cve/2009-1904
-
mail-index.netbsd.org
/pkgsrc-changes/2009/06/10/msg024708.html
mailing-list
-
groups.google.com
/group/rubyonrails-security/msg/fad60751e2b9b4f6?dmode=source
mailing-list
-
securitytracker.com
/id?1022371
vdb-entry
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9780
vdb-entry, signature
-
osvdb.org
/55031
vdb-entry
-
securityfocus.com
/bid/35278
vdb-entry
- bugs.gentoo.org /show_bug.cgi?id=273213
-
secunia.com
/advisories/37705
third-party-advisory
- support.apple.com /kb/HT4077
-
secunia.com
/advisories/35699
third-party-advisory
- bugs.launchpad.net /bugs/385436
- ruby-forum.com /topic/189071
-
exchange.xforce.ibmcloud.com
/vulnerabilities/51032
vdb-entry
-
secunia.com
/advisories/35527
third-party-advisory
Sources
- CVE List CVE-2009-1904
- NVD CVE-2009-1904
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.