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

# CVE-2012-5643

Publication date 20 December 2012

Last updated 24 July 2024

---

Ubuntu priority

**Medium**

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

Toggle side navigation

## Description

Multiple memory leaks in tools/cachemgr.cc in cachemgr.cgi in Squid 2.x and
3.x before 3.1.22, 3.2.x before 3.2.4, and 3.3.x before 3.3.0.2 allow
remote attackers to cause a denial of service (memory consumption) via (1)
invalid Content-Length headers, (2) long POST requests, or (3) crafted
authentication credentials.

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

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| squid | 13.04 raring | Not in release |
| 12.10 quantal | Not in release |
| 12.04 LTS precise | Not in release |
| 11.10 oneiric | Not affected |
| 10.04 LTS lucid | Fixed 2.7.STABLE7-1ubuntu12.6 |
| 8.04 LTS hardy | Ignored end of life |
| squid3 | 13.04 raring | Fixed 3.1.20-1ubuntu2 |
| 12.10 quantal | Fixed 3.1.20-1ubuntu1.1 |
| 12.04 LTS precise | Fixed 3.1.19-1ubuntu3.12.04.2 |
| 11.10 oneiric | Fixed 3.1.14-1ubuntu0.3 |
| 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)
* [Patch details](https://ubuntu.com/security/CVE-2012-5643?format=md#patch-details)

## Notes

---

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

please see also see CVE-2013-0189 which is a new CVE for the
incomplete fix

---

### [seth-arnold](https://launchpad.net/~seth-arnold)

The webserver should be configured to restrict access to
cachemgr.cgi; this script shouldn't be exposed to untrusted users

### 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 |
| --- | --- |
| squid | * Upstream:   <http://www.squid-cache.org/Versions/v3/3.1/changesets/squid-3.1-10479.patch> * Upstream:   <http://www.squid-cache.org/Versions/v3/3.2/changesets/squid-3.2-11714.patch> |
| squid3 | * Upstream:   <http://www.squid-cache.org/Versions/v3/3.1/changesets/squid-3.1-10479.patch> * Upstream:   <http://www.squid-cache.org/Versions/v3/3.2/changesets/squid-3.2-11714.patch> |

## References

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

### Related Ubuntu Security Notices (USN)

+ [USN-1713-1](https://usn.ubuntu.com/USN-1713-1)
+ Squid vulnerabilities
+ 31 January 2013

### Other references

* <http://www.openwall.com/lists/oss-security/2012/12/17/3>
* <http://www.squid-cache.org/Advisories/SQUID-2012_1.txt>
* <https://www.cve.org/CVERecord?id=CVE-2012-5643>
