---
title: "CVE-2011-1005\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-2011-1005?format=md
keywords: index, follow
---

# CVE-2011-1005

Publication date 2 March 2011

Last updated 24 July 2024

---

Ubuntu priority

**Low**

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

Toggle side navigation

## Description

The safe-level feature in Ruby 1.8.6 through 1.8.6-420, 1.8.7 through
1.8.7-330, and 1.8.8dev allows context-dependent attackers to modify
strings via the Exception#to\_s method, as demonstrated by changing an
intended pathname.

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

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| ruby1.8 | 12.04 LTS precise | Not affected |
| 11.10 oneiric | Not affected |
| 11.04 natty | Fixed 1.8.7.302-2ubuntu0.1 |
| 10.10 maverick | Fixed 1.8.7.299-2ubuntu0.1 |
| 10.04 LTS lucid | Fixed 1.8.7.249-2ubuntu0.1 |
| 9.10 karmic | Ignored end of life |
| 8.04 LTS hardy | Ignored end of life |
| 6.06 LTS dapper | Ignored end of life |
| ruby1.9 | 12.04 LTS precise | Not in release |
| 11.10 oneiric | Not in release |
| 11.04 natty | Not in release |
| 10.10 maverick | Not in release |
| 10.04 LTS lucid | Not affected |
| 9.10 karmic | Ignored end of life |
| 8.04 LTS hardy | Ignored end of life |
| 6.06 LTS dapper | Ignored end of life |
| ruby1.9.1 | 12.04 LTS precise | Fixed 1.9.3.0-1ubuntu2.2 |
| 11.10 oneiric | Not affected |
| 11.04 natty | Not affected |
| 10.10 maverick | Ignored end of life |
| 10.04 LTS lucid | Not affected |
| 9.10 karmic | Ignored end of life |
| 8.04 LTS hardy | Not in release |
| 6.06 LTS dapper | Not in release |

---

* [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-2011-1005?format=md#patch-details)

## Notes

---

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

potential test case in ruby-lang.org advisory
The fix was incomplete, see CVE-2012-4481

### 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://svn.ruby-lang.org/cgi-bin/viewvc.cgi?revision=30903&view=revision> |

## References

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

### Related Ubuntu Security Notices (USN)

+ [USN-1377-1](https://usn.ubuntu.com/USN-1377-1)
+ Ruby vulnerabilities
+ 28 February 2012

+ [USN-1583-1](https://usn.ubuntu.com/USN-1583-1)
+ Ruby vulnerabilities
+ 26 September 2012

### Other references

* <http://www.ruby-lang.org/en/news/2011/02/18/exception-methods-can-bypass-safe/>
* <https://www.cve.org/CVERecord?id=CVE-2011-1005>
