HAProxy Trash Buffer Overflow Vulnerability

medium Nessus Plugin ID 59798


The remote host is running a load balancer with a buffer overflow vulnerability.


Based on the self-reported version obtained from the HAProxy statistics reporting page, the remote host is running load balancing software that is potentially affected by a buffer overflow vulnerability when copying data into the trash buffer.

It may be possible for an attacker to exploit this vulnerability to execute arbitrary code on the remote host, but it requires that the global.tune.bufsize option is set to a value greater than default and that header rewriting is configured.


Upgrade to HAProxy version 1.4.21 or higher.

See Also


Plugin Details

Severity: Medium

ID: 59798

File Name: haproxy_trash_buffer_overflow.nasl

Version: 1.6

Type: remote

Family: Misc.

Published: 6/29/2012

Updated: 4/11/2022

Configuration: Enable paranoid mode, Enable thorough checks

Supported Sensors: Nessus

Risk Information


Risk Factor: Medium

Score: 5.9


Risk Factor: Medium

Base Score: 5.1

Temporal Score: 3.8

Vector: CVSS2#AV:N/AC:H/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: cpe:/a:haproxy:haproxy

Required KB Items: Settings/ParanoidReport, www/haproxy_stats_page

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No known exploits are available

Patch Publication Date: 5/21/2012

Vulnerability Publication Date: 5/16/2012

Reference Information

CVE: CVE-2012-2942

BID: 53647