Vulnerabilities · 2009 · Ruby-lang
CVE-2009-1904
Ruby-lang Ruby vulnerability
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.
Affected products
Ruby. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Ruby runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- secunia.com/advisories/35399 · Vendor Advisory
- www.ruby-lang.org/en/news/2009/06/09/dos-vulnerability-in-bigdecimal/ · Patch
- bugs.debian.org/cgi-bin/bugreport.cgi?bug=532689 · Patch
- github.com/NZKoz/bigdecimal-segfault-fix/tree/master · Patch
- redmine.ruby-lang.org/issues/show/794 · Exploit
- weblog.rubyonrails.org/2009/6/10/dos-vulnerability-in-ruby/ · Patch
- bugs.gentoo.org/show_bug.cgi?id=273213
- groups.google.com/group/rubyonrails-security/msg/fad60751e2b9b4f6?dmode=source
- nvd.nist.gov/vuln/detail/CVE-2009-1904
- cve.org/CVERecord?id=CVE-2009-1904
More vulnerabilities in Ruby-lang products
CVE-2026-46727CVE-2025-58767CVE-2025-43857CVE-2025-27788CVE-2025-27221CVE-2025-27220CVE-2025-27219CVE-2025-6442All 115
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.