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

# CVE-2012-2942

Publication date 27 May 2012

Last updated 24 July 2024

---

Ubuntu priority

**Low**

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

Toggle side navigation

## Description

Buffer overflow in the trash buffer in the header capture functionality in
HAProxy before 1.4.21, when global.tune.bufsize is set to a value greater
than the default and header rewriting is enabled, allows remote attackers
to cause a denial of service and possibly execute arbitrary code via
unspecified vectors.

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

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| haproxy | 13.04 raring | Fixed 1.4.18-0ubuntu3 |
| 12.10 quantal | Fixed 1.4.18-0ubuntu2.1 |
| 12.04 LTS precise | Fixed 1.4.18-0ubuntu1.1 |
| 11.10 oneiric | Fixed 1.4.15-1ubuntu0.1 |
| 11.04 natty | 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)
* [Patch details](https://ubuntu.com/security/CVE-2012-2942?format=md#patch-details)

## Notes

---

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

CVE-2012-2391 was a duplicate of this CVE and got rejected.

### 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 |
| --- | --- |
| haproxy | * Upstream:   <http://haproxy.1wt.eu/git?p=haproxy-1.4.git;a=commit;h=30297cb17147a8d339eb160226bcc08c91d9530b> |

## References

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

### Related Ubuntu Security Notices (USN)

+ [USN-1800-1](https://usn.ubuntu.com/USN-1800-1)
+ HAProxy vulnerabilities
+ 15 April 2013

### Other references

* <http://xforce.iss.net/xforce/xfdb/75777>
* <http://secunia.com/advisories/49261>
* <http://haproxy.1wt.eu/download/1.4/src/CHANGELOG>
* <http://seclists.org/oss-sec/2012/q2/417>
* <https://www.cve.org/CVERecord?id=CVE-2012-2942>
