Gentoo Logo

HAProxy: Arbitrary code execution


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 201301-02 / haproxy
Release Date January 08, 2013
Latest Revision January 08, 2013: 1
Impact high
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
net-proxy/haproxy < 1.4.21 >= 1.4.21 All supported architectures

Related bugreports: #417079


A buffer overflow in HAProxy may allow execution of arbitrary code.

2.  Impact Information


HAProxy is a TCP/HTTP reverse proxy for high availability environments.


A boundary error in HAProxy could cause a buffer overflow when header rewriting is enabled and the configuration sets global.tune.bufsize to a value greater than the default (16384 bytes).


A remote attacker could possibly execute arbitrary code with the privileges of the process or cause a Denial of Service condition.

3.  Resolution Information


There is no known workaround at this time.


All HAProxy users should upgrade to the latest version:

Code Listing 3.1: Resolution

  # emerge --sync
  # emerge --ask --oneshot --verbose ">=net-proxy/haproxy-1.4.21"

4.  References


Page updated January 08, 2013

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.