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

# CVE-2011-4944

Publication date 27 August 2012

Last updated 24 July 2024

---

Ubuntu priority

**Low**

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

Toggle side navigation

## Description

Python 2.6 through 3.2 creates ~/.pypirc with world-readable permissions
before changing them after data has been written, which introduces a race
condition that allows local users to obtain a username and password by
reading this file.

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

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| python2.4 | 13.04 raring | Not in release |
| 12.10 quantal | Not in release |
| 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 in release |
| 8.04 LTS hardy | Fixed 2.4.5-1ubuntu4.4 |
| python2.5 | 13.04 raring | Not in release |
| 12.10 quantal | Not in release |
| 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 in release |
| 8.04 LTS hardy | Fixed 2.5.2-2ubuntu6.2 |
| python2.6 | 13.04 raring | Not in release |
| 12.10 quantal | Not in release |
| 12.04 LTS precise | Not in release |
| 11.10 oneiric | Fixed 2.6.7-4ubuntu1.1 |
| 11.04 natty | Fixed 2.6.6-6ubuntu7.1 |
| 10.10 maverick | Ignored end of life |
| 10.04 LTS lucid | Fixed 2.6.5-1ubuntu6.1 |
| 8.04 LTS hardy | Not in release |
| python2.7 | 13.04 raring | Not affected |
| 12.10 quantal | Not affected |
| 12.04 LTS precise | Not affected |
| 11.10 oneiric | Fixed 2.7.2-5ubuntu1.1 |
| 11.04 natty | Fixed 2.7.1-5ubuntu2.2 |
| 10.10 maverick | Ignored end of life |
| 10.04 LTS lucid | Not in release |
| 8.04 LTS hardy | Not in release |
| 6.06 LTS dapper | Not in release |
| python3.1 | 13.04 raring | Not in release |
| 12.10 quantal | Not in release |
| 12.04 LTS precise | Not in release |
| 11.10 oneiric | Not in release |
| 11.04 natty | Fixed 3.1.3-1ubuntu1.2 |
| 10.10 maverick | Ignored end of life |
| 10.04 LTS lucid | Fixed 3.1.2-0ubuntu3.2 |
| 8.04 LTS hardy | Not in release |
| python3.2 | 13.04 raring | Not in release |
| 12.10 quantal | Fixed 3.2.3-6ubuntu3.1 |
| 12.04 LTS precise | Fixed 3.2.3-0ubuntu3.2 |
| 11.10 oneiric | Fixed 3.2.2-0ubuntu1.1 |
| 11.04 natty | Fixed 3.2-1ubuntu1.2 |
| 10.10 maverick | Not in release |
| 10.04 LTS lucid | Not in release |
| 8.04 LTS hardy | Not in release |
| python3.3 | 13.04 raring | Not affected |
| 12.10 quantal | Not affected |
| 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 in release |
| 8.04 LTS hardy | 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-4944?format=md#patch-details)

## Notes

---

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

Code in Lib/distutils/command/register.py in 2.4 and 2.5

### 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 |
| --- | --- |
| python2.6 | * Upstream:   <http://bugs.python.org/file23824/pypirc-secure.diff> |
| python2.7 | * Upstream:   <http://hg.python.org/cpython/rev/f833e7ec4de1/> |
| python3.1 | * Upstream:   <http://bugs.python.org/file23824/pypirc-secure.diff> |
| python3.2 | * Upstream:   <http://bugs.python.org/file23824/pypirc-secure.diff> |
| python3.3 | * Upstream:   <http://bugs.python.org/file23.34/pypirc-secure.diff> |

## References

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

### Related Ubuntu Security Notices (USN)

+ [USN-1613-1](https://usn.ubuntu.com/USN-1613-1)
+ Python 2.5 vulnerabilities
+ 17 October 2012

+ [USN-1592-1](https://usn.ubuntu.com/USN-1592-1)
+ Python 2.7 vulnerabilities
+ 2 October 2012

+ [USN-1613-2](https://usn.ubuntu.com/USN-1613-2)
+ Python 2.4 vulnerabilities
+ 17 October 2012

+ [USN-1616-1](https://usn.ubuntu.com/USN-1616-1)
+ Python 3.1 vulnerabilities
+ 24 October 2012

+ [USN-1615-1](https://usn.ubuntu.com/USN-1615-1)
+ Python 3.2 vulnerabilities
+ 23 October 2012

+ [USN-1596-1](https://usn.ubuntu.com/USN-1596-1)
+ Python 2.6 vulnerabilities
+ 4 October 2012

### Other references

* <http://www.openwall.com/lists/oss-security/2012/03/27>
* <https://www.cve.org/CVERecord?id=CVE-2011-4944>
