Vulnerability in Ruby-Lang Ruby
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 (application crash) via a string argument that represents a large number, as demonstrated by an attempted conversion to the Float data type.
Published · last modified .
CVSS v2 metric
CVSS v2 base score 5.0 (Medium). Vector: AV:N/AC:L/Au:N/C:N/I:N/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.128, 96.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Ruby-Lang Ruby — versions 1.8.6, 1.8.7
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- NZKoz/bigdecimal-segfault-fix (14 stars, last pushed 2009-06-08): Provides a quick workaround for the segfault bug in Ruby (CVE-2009-1904)
Also mentioned in 3 other repositories (ARPSyndicate/cvemon, CVEDB/awesome-cve-repo, CVEDB/PoC-List). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- ADV-2009-1563 (vdb-entry)
- secunia.com/advisories/35937 (third-party-advisory)
- secunia.com/advisories/35593 (third-party-advisory)
- www.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.launchpad.net/bugs/cve/2009-1904
- bugs.debian.org/cgi-bin/bugreport.cgi (Patch)
- RHSA-2009:1140 (vendor-advisory)
- [pkgsrc-changes] 20090610 CVS commit: pkgsrc/lang/ruby18-base (mailing-list)
- [rubyonrails-security] 20090610 DoS Vulnerability in Ruby (CVE-2009-1904) (mailing-list)
This CVE has public exploit evidence. See the latest CVEs with public exploits.