CVE-2009-1904
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network without logging in. Limited direct impact.
- Exploit odds
- 12.8% chance of exploitation in the next 30 days (EPSS). Higher than most.
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 12.8% in the next 30 days (EPSS).
- Severity: 5.0 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 12.8% · EPSS, next 30 days
- Weakness
- CWE-189
- Record status
- Modified
Affected
- ruby-lang Ruby 1.8.6
- ruby-lang Ruby 1.8.7
Attack profile CVSS 2.0 · 5.0
- Attack vector
- Network
- Complexity
- Low
- Authentication
- None
- Confidentiality
- None
- Integrity
- None
- Availability
- Partial
Raw vector
AV:N/AC:L/Au:N/C:N/I:N/A:P
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2009-1904.md and follow it. Check whether this project is affected by CVE-2009-1904. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=532689
- http://github.com/NZKoz/bigdecimal-segfault-fix/tree/master
- http://redmine.ruby-lang.org/issues/show/794
- http://secunia.com/advisories/35399
- http://weblog.rubyonrails.org/2009/6/10/dos-vulnerability-in-ruby/
- http://www.ruby-lang.org/en/news/2009/06/09/dos-vulnerability-in-bigdecimal/
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=532689
- http://github.com/NZKoz/bigdecimal-segfault-fix/tree/master
- http://redmine.ruby-lang.org/issues/show/794
- http://secunia.com/advisories/35399
References
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=532689
- http://bugs.gentoo.org/show_bug.cgi?id=273213
- http://github.com/NZKoz/bigdecimal-segfault-fix/tree/master
- http://groups.google.com/group/rubyonrails-security/msg/fad60751e2b9b4f6?dmode=source
- http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html
- http://mail-index.netbsd.org/pkgsrc-changes/2009/06/10/msg024708.html
- http://osvdb.org/55031
- http://redmine.ruby-lang.org/issues/show/794
- http://secunia.com/advisories/35399
- http://secunia.com/advisories/35527
- http://secunia.com/advisories/35593
- http://secunia.com/advisories/35699
- http://secunia.com/advisories/35937
- http://secunia.com/advisories/37705
- http://security.gentoo.org/glsa/glsa-200906-02.xml
- http://slackware.com/security/viewer.php?l=slackware-security&y=2009&m=slackware-security.430805
- http://support.apple.com/kb/HT4077
- http://weblog.rubyonrails.org/2009/6/10/dos-vulnerability-in-ruby/
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:160
- http://www.redhat.com/support/errata/RHSA-2009-1140.html
- http://www.ruby-forum.com/topic/189071
- http://www.ruby-lang.org/en/news/2009/06/09/dos-vulnerability-in-bigdecimal/
- http://www.securityfocus.com/bid/35278
- http://www.securitytracker.com/id?1022371
- http://www.ubuntu.com/usn/USN-805-1