CVE-2009-1904
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…
Check your servers for CVE-2009-1904
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2009-1904 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 12.7%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 96.9% of all scored CVEs. Scores of 30 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2009-1904 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2009-1904RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2009-1904Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2009-1904
trivy image --scanners vuln IMAGE | grep CVE-2009-1904
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- 35937 secunia.com · third party advisory
- 35593 secunia.com · third party advisory
- http://www.ruby-lang.org/en/news/2009/06/09/dos-vulnerability-in-bigdecimal/ ruby-lang.org
- http://redmine.ruby-lang.org/issues/show/794 redmine.ruby-lang.org
- https://bugs.launchpad.net/bugs/cve/2009-1904 bugs.launchpad.net
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=532689 bugs.debian.org
- RHSA-2009:1140 redhat.com · vendor advisory
- APPLE-SA-2010-03-29-1 lists.apple.com · vendor advisory
- 35399 secunia.com · third party advisory
- http://github.com/NZKoz/bigdecimal-segfault-fix/tree/master github.com
- http://weblog.rubyonrails.org/2009/6/10/dos-vulnerability-in-ruby/ weblog.rubyonrails.org
- USN-805-1 ubuntu.com · vendor advisory
11 more
- FEDORA-2009-13066 redhat.com · vendor advisory
- http://bugs.gentoo.org/show_bug.cgi?id=273213 bugs.gentoo.org
- 37705 secunia.com · third party advisory
- http://support.apple.com/kb/HT4077 support.apple.com
- 35699 secunia.com · third party advisory
- https://bugs.launchpad.net/bugs/385436 bugs.launchpad.net
- GLSA-200906-02 security.gentoo.org · vendor advisory
- MDVSA-2009:160 mandriva.com · vendor advisory
- http://www.ruby-forum.com/topic/189071 ruby-forum.com
- 35527 secunia.com · third party advisory
- SSA:2009-170-02 slackware.com · vendor advisory
Other references
- ADV-2009-1563 vupen.com · vdb entry
- [pkgsrc-changes] 20090610 CVS commit: pkgsrc/lang/ruby18-base mail-index.netbsd.org · mailing list
- [rubyonrails-security] 20090610 DoS Vulnerability in Ruby (CVE-2009-1904) groups.google.com · mailing list
- 1022371 securitytracker.com · vdb entry
- oval:org.mitre.oval:def:9780 oval.cisecurity.org · vdb entry, signature
- 55031 osvdb.org · vdb entry
- 35278 securityfocus.com · vdb entry
- ruby-bigdecimal-dos(51032) exchange.xforce.ibmcloud.com · vdb entry
Source: the record CVE-2009-1904 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse