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

# CVE-2012-1581

Publication date 9 September 2012

Last updated 24 July 2024

---

Ubuntu priority

**Low**

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

Toggle side navigation

## Description

MediaWiki 1.17.x before 1.17.3 and 1.18.x before 1.18.2 uses weak random
numbers for password reset tokens, which makes it easier for remote
attackers to change the passwords of arbitrary users.
Any extension developers using mt\_rand() to generate random numbers in
contexts where security is required are encouraged to instead make use of the
MWCryptRand class introduced with this release.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| mediawiki | 17.04 zesty | Not affected |
| 16.10 yakkety | Not affected |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not affected |
| 15.04 vivid | Not affected |
| 14.10 utopic | Not affected |
| 14.04 LTS trusty | Not in release |
| 13.10 saucy | Not affected |
| 13.04 raring | Not affected |
| 12.10 quantal | Not affected |
| 12.04 LTS precise | Ignored end of life |
| 11.10 oneiric | Ignored end of life |
| 11.04 natty | Ignored end of life |
| 10.10 maverick | Ignored end of life |
| 10.04 LTS lucid | Ignored end of life |
| 8.04 LTS hardy | 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)

## References

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

### Other references

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