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: $Revision: 1.4 $

Type: remote

Family: Misc.

Published: 2012/06/29

Modified: 2016/05/11

Dependencies: 59797

Risk Information

Risk Factor: Medium


Base Score: 5.1

Temporal Score: 4.4

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

Temporal Vector: CVSS2#E:ND/RL:OF/RC:C

Vulnerability Information

CPE: cpe:/a:haproxy:haproxy

Required KB Items: www/haproxy_stats_page, Settings/ParanoidReport

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: false

Exploit Ease: No known exploits are available

Patch Publication Date: 2012/05/21

Vulnerability Publication Date: 2012/05/16

Reference Information

CVE: CVE-2012-2942

BID: 53647

OSVDB: 82092