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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | haproxy | 1.4.23-1 | — |
| Debian 13 | haproxy | 1.4.23-1 | — |
| Debian 12 | haproxy | 1.4.23-1 | — |
| Debian 6.0 | haproxy | 1.4.8-1+squeeze1 | DSA-2711-1 |
Advisories 1
- DSA-2711-1 haproxy - several Debian Security (DSA / DLA) · Mar 9, 2026
References
- [oss-security] 20120528 Duplicate CVE identifiers (CVE-2012-2391 and CVE-2012-2942) assigned to HAProxy issue mailing-list
- GLSA-201301-02 vendor-advisory
- [oss-security] 20120523 Re: CVE request: haproxy trash buffer overflow flaw mailing-list
- haproxy-trash-bo(75777) vdb-entry
- 53647 vdb-entry
- http://haproxy.1wt.eu/#news
- DSA-2711 vendor-advisory
- 49261 third-party-advisory
- USN-1800-1 vendor-advisory
- http://haproxy.1wt.eu/git?p=haproxy-1.4.git%3Ba=commit%3Bh=30297cb17147a8d339eb160226bcc08c91d9530b
- [oss-security] 20120523 CVE request: haproxy trash buffer overflow flaw mailing-list
- http://haproxy.1wt.eu/download/1.4/src/CHANGELOG