---
title: "CVE-2009-1904\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2009-1904?format=md
keywords: index, follow
---

# CVE-2009-1904

Publication date 11 June 2009

Last updated 24 July 2024

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

## 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.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2009-1904?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| ruby1.8 | 11.10 oneiric | Not affected |
| 11.04 natty | Not affected |
| 10.10 maverick | Not affected |
| 10.04 LTS lucid | Not affected |
| 9.10 karmic | Not affected |
| 9.04 jaunty | Fixed 1.8.7.72-3ubuntu0.1 |
| 8.10 intrepid | Fixed 1.8.7.72-1ubuntu0.2 |
| 8.04 LTS hardy | Fixed 1.8.6.111-2ubuntu1.3 |
| 6.06 LTS dapper | Fixed 1.8.4-1ubuntu1.7 |
| ruby1.9 | 11.10 oneiric | Not in release |
| 11.04 natty | Not in release |
| 10.10 maverick | Not in release |
| 10.04 LTS lucid | Fixed 1.9.0.5-1ubuntu2 |
| 9.10 karmic | Fixed 1.9.0.5-1ubuntu1.2 |
| 9.04 jaunty | Fixed 1.9.0.2-9ubuntu1.1 |
| 8.10 intrepid | Fixed 1.9.0.2-7ubuntu1.2 |
| 8.04 LTS hardy | Ignored end of life |
| 6.06 LTS dapper | Ignored end of life |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2009-1904?format=md#patch-details)

## Notes

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

PoC here: http://github.com/NZKoz/bigdecimal-segfault-fix/tree/master
PoC here: http://www.ruby-lang.org/en/news/2009/06/09/dos-vulnerability-in-bigdecimal/
best PoC here: http://redmine.ruby-lang.org/issues/show/794
backporting patch may introduce regression, see RH bug

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| ruby1.8 | * Upstream:   <http://github.com/NZKoz/bigdecimal-segfault-fix/tree/master> * Upstream:   <http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23652> * Upstream:   <http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23645> * Upstream:   [95c0abb](http://github.com/rubyspec/rubyspec/commit/95c0abbe07bf350f83d2454eb080b0bd315d59d4) * Upstream:   [0fb6052](http://github.com/rubyspec/rubyspec/commit/0fb6052d48eeb72c6f2d2239bba999038cad3d69) |
| ruby1.9 | * Upstream:   <http://redmine.ruby-lang.org/repositories/revision/ruby-19?rev=20359> * Upstream:   <http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20359> |

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-1904)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2009-1904)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2009-1904)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2009-1904)

### Related Ubuntu Security Notices (USN)

+ [USN-900-1](https://usn.ubuntu.com/USN-900-1)
+ Ruby vulnerabilities
+ 16 February 2010

+ [USN-805-1](https://usn.ubuntu.com/USN-805-1)
+ Ruby vulnerabilities
+ 20 July 2009

### Other references

* <http://www.ruby-lang.org/en/news/2009/06/09/dos-vulnerability-in-bigdecimal/>
* <https://www.cve.org/CVERecord?id=CVE-2009-1904>
