HAProxy Trash Buffer Overflow Vulnerability

medium Nessus Plugin ID 59798
New! Plugin Severity Now Using CVSS v3

The calculated severity for Plugins has been updated to use CVSS v3 by default. Plugins that do not have a CVSS v3 score will fall back to CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

Synopsis

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

Description

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.

Solution

Upgrade to HAProxy version 1.4.21 or higher.

See Also

http://haproxy.1wt.eu/download/1.4/src/CHANGELOG

Plugin Details

Severity: Medium

ID: 59798

File Name: haproxy_trash_buffer_overflow.nasl

Version: 1.5

Type: remote

Family: Misc.

Published: 6/29/2012

Updated: 7/12/2018

Dependencies: haproxy_statspage_detect.nasl

Configuration: Enable paranoid mode

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Medium

Base Score: 5.1

Temporal Score: 3.8

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

Temporal Vector: E:U/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 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