CVE-2012-2942: HAProxy - Buffer Overflow
- Cve: CVE-2012-2942
- Name: HAProxy - Buffer Overflow
- 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.
- Impact: Attackers can cause denial of service or execute arbitrary code remotely, leading to system compromise.
- Remediation: Update to HAProxy version 1.4.21 or later.
- Vulnerability type: buffer_overflow
- Vulnerability impact: denial_of_service, remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.1
- Cvss vector: CVSS:2.0/AV:N/AC:H/Au:N/C:P/I:P/A:P
- Epss score: 0.05353
- Epss percentile: 0.92838
- Assignee: [email protected]
- Published at: 2012-05-27T20:55:05Z
- Age in days: 5294
- Modified at: 2026-06-16T23:42:23Z
- References total: 12
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2012-2942
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| haproxy:haproxy | <= 1.4.20 | no | nvd | /v1/products/haproxy/haproxy |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Exposed hosts: 289
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports