MidnightBSD

Advisories for haproxy

CVE-2012-2942 MEDIUM

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.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-119,

Products Affected

Vendor Product Version
haproxy haproxy *
CVE-2013-1912 MEDIUM

Buffer overflow in HAProxy 1.4 through 1.4.22 and 1.5-dev through 1.5-dev17, when HTTP keep-alive is enabled, using HTTP keywords in TCP inspection rules, and running with rewrite rules that appends to requests, allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via crafted pipelined HTTP requests that prevent request realignment from occurring.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-119,

Products Affected

Vendor Product Version
haproxy haproxy 1.4.22
haproxy haproxy 1.5
haproxy haproxy 1.4.20
haproxy haproxy 1.4
CVE-2013-2175 MEDIUM

HAProxy 1.4 before 1.4.24 and 1.5 before 1.5-dev19, when configured to use hdr_ip or other "hdr_*" functions with a negative occurrence count, allows remote attackers to cause a denial of service (negative array index usage and crash) via an HTTP header with a certain number of values, related to the MAX_HDR_HISTORY variable.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-20,CWE-284,

Products Affected

Vendor Product Version
haproxy haproxy 1.4.0
haproxy haproxy 1.4.13
haproxy haproxy 1.4.22
haproxy haproxy 1.4.1
haproxy haproxy 1.4.3
haproxy haproxy 1.4.11
haproxy haproxy 1.4.2
haproxy haproxy 1.4.16
haproxy haproxy 1.5
haproxy haproxy 1.4.9
haproxy haproxy 1.4.20
haproxy haproxy 1.4.14
haproxy haproxy 1.4.7
canonical ubuntu_linux 12.04
haproxy haproxy 1.4.17
haproxy haproxy 1.4.18
redhat enterprise_linux_load_balancer 6.0
haproxy haproxy 1.4.5
haproxy haproxy 1.4.15
debian debian_linux 6.0
redhat enterprise_linux_load_balancer 6.4
haproxy haproxy 1.4.6
haproxy haproxy 1.4.8
canonical ubuntu_linux 13.04
haproxy haproxy 1.4
canonical ubuntu_linux 12.10
haproxy haproxy 1.4.10
haproxy haproxy 1.4.12
haproxy haproxy 1.4.19
haproxy haproxy 1.4.21
haproxy haproxy 1.4.23
haproxy haproxy 1.4.4
CVE-2014-6269 MEDIUM

Multiple integer overflows in the http_request_forward_body function in proto_http.c in HAProxy 1.5-dev23 before 1.5.4 allow remote attackers to cause a denial of service (crash) via a large stream of data, which triggers a buffer overflow and an out-of-bounds read.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-189,

Products Affected

Vendor Product Version
haproxy haproxy 1.5.1
haproxy haproxy 1.5
haproxy haproxy 1.5.0
haproxy haproxy 1.5.3
haproxy haproxy 1.5.2
CVE-2015-3281 MEDIUM

The buffer_slow_realign function in HAProxy 1.5.x before 1.5.14 and 1.6-dev does not properly realign a buffer that is used for pending outgoing data, which allows remote attackers to obtain sensitive information (uninitialized memory contents of previous requests) via a crafted request.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-119,

Products Affected

Vendor Product Version
redhat enterprise_linux_server_aus 7.3
redhat enterprise_linux_desktop 7.0
redhat enterprise_linux_server_aus 7.4
haproxy haproxy 1.5.12
redhat enterprise_linux_server_eus 7.5
haproxy haproxy 1.6
canonical ubuntu_linux 15.04
redhat enterprise_linux_server_eus 7.4
haproxy haproxy 1.5.4
haproxy haproxy 1.5.6
opensuse linux_enterprise_high_availability_extension 12
haproxy haproxy 1.5.7
redhat enterprise_linux_server_eus 7.2
haproxy haproxy 1.5
haproxy haproxy 1.5.0
haproxy haproxy 1.5.11
haproxy haproxy 1.5.3
haproxy haproxy 1.5.9
haproxy haproxy 1.5.10
canonical ubuntu_linux 14.10
haproxy haproxy 1.5.5
opensuse opensuse 13.2
redhat enterprise_linux_server_eus 7.6
redhat enterprise_linux_server 7.0
redhat enterprise_linux_server_aus 7.6
redhat enterprise_linux_server_eus 7.3
haproxy haproxy 1.5.2
redhat enterprise_linux_server_tus 7.3
redhat enterprise_linux_server_eus 7.1
haproxy haproxy 1.5.1
haproxy haproxy 1.5.8
debian debian_linux 8.0
redhat enterprise_linux_workstation 7.0
haproxy haproxy 1.5.13
redhat enterprise_linux_server_tus 7.6
opensuse openstack_cloud 5
CVE-2016-2102 MEDIUM

HAProxy statistics in openstack-tripleo-image-elements are non-authenticated over the network.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-287,

Products Affected

Vendor Product Version
haproxy haproxy -
CVE-2016-5360 MEDIUM

HAproxy 1.6.x before 1.6.6, when a deny comes from a reqdeny rule, allows remote attackers to cause a denial of service (uninitialized memory access and crash) or possibly have unspecified other impact via unknown vectors.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-119,

Products Affected

Vendor Product Version
haproxy haproxy 1.6.2
haproxy haproxy 1.6.1
haproxy haproxy 1.6.4
haproxy haproxy 1.6.5
haproxy haproxy 1.6.3
canonical ubuntu_linux 16.04
haproxy haproxy 1.6.0
CVE-2018-10184 MEDIUM

An issue was discovered in HAProxy before 1.8.8. The incoming H2 frame length was checked against the max_frame_size setting instead of being checked against the bufsize. The max_frame_size only applies to outgoing traffic and not to incoming, so if a large enough frame size is advertised in the SETTINGS frame, a wrapped frame will be defragmented into a temporary allocated buffer where the second fragment may overflow the heap by up to 16 kB. It is very unlikely that this can be exploited for code execution given that buffers are very short lived and their addresses not realistically predictable in production, but the likelihood of an immediate crash is absolutely certain.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-119,

Products Affected

Vendor Product Version
redhat enterprise_linux 7.3
haproxy haproxy *
redhat enterprise_linux 7.0
redhat enterprise_linux 7.4
redhat enterprise_linux 7.5
CVE-2018-11469 MEDIUM

Incorrect caching of responses to requests including an Authorization header in HAProxy 1.8.0 through 1.8.9 (if cache enabled) allows attackers to achieve information disclosure via an unauthenticated remote request, related to the proto_http.c check_request_for_cacheability function.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-200,

Products Affected

Vendor Product Version
haproxy haproxy *
canonical ubuntu_linux 18.04
CVE-2018-14645 MEDIUM

A flaw was discovered in the HPACK decoder of HAProxy, before 1.8.14, that is used for HTTP/2. An out-of-bounds read access in hpack_valid_idx() resulted in a remote crash and denial of service.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-125,CWE-125,

Products Affected

Vendor Product Version
redhat openshift_container_platform 3.9
redhat enterprise_linux 7.3
haproxy haproxy *
redhat enterprise_linux 7.0
redhat enterprise_linux 7.4
redhat enterprise_linux 7.5
redhat openshift 3.10
canonical ubuntu_linux 18.04
redhat enterprise_linux 7.6
CVE-2018-20102 MEDIUM

An out-of-bounds read in dns_validate_dns_response in dns.c was discovered in HAProxy through 1.8.14. Due to a missing check when validating DNS responses, remote attackers might be able read the 16 bytes corresponding to an AAAA record from the non-initialized part of the buffer, possibly accessing anything that was left on the stack, or even past the end of the 8193-byte buffer, depending on the value of accepted_payload_size.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-125,

Products Affected

Vendor Product Version
canonical ubuntu_linux 18.10
haproxy haproxy *
canonical ubuntu_linux 16.04
canonical ubuntu_linux 18.04
redhat openshift_container_platform 3.11
CVE-2018-20103 MEDIUM

An issue was discovered in dns.c in HAProxy through 1.8.14. In the case of a compressed pointer, a crafted packet can trigger infinite recursion by making the pointer point to itself, or create a long chain of valid pointers resulting in stack exhaustion.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-835,

Products Affected

Vendor Product Version
canonical ubuntu_linux 18.10
haproxy haproxy *
canonical ubuntu_linux 16.04
canonical ubuntu_linux 18.04
redhat openshift_container_platform 3.11
CVE-2018-20615 MEDIUM

An out-of-bounds read issue was discovered in the HTTP/2 protocol decoder in HAProxy 1.8.x and 1.9.x through 1.9.0 which can result in a crash. The processing of the PRIORITY flag in a HEADERS frame requires 5 extra bytes, and while these bytes are skipped, the total frame length was not re-checked to make sure they were present in the frame.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-125,

Products Affected

Vendor Product Version
canonical ubuntu_linux 18.10
haproxy haproxy *
redhat enterprise_linux 7.0
redhat enterprise_linux 7.4
redhat enterprise_linux 7.5
haproxy haproxy 1.9.0
canonical ubuntu_linux 16.04
canonical ubuntu_linux 18.04
redhat enterprise_linux 7.6
redhat openshift_container_platform 3.11
opensuse leap 15.0
CVE-2019-11323 MEDIUM

HAProxy before 1.9.7 mishandles a reload with rotated keys, which triggers use of uninitialized, and very predictable, HMAC keys. This is related to an include/types/ssl_sock.h error.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 5.9 MEDIUM CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N 2.2 3.6

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-327,CWE-908,

Products Affected

Vendor Product Version
haproxy haproxy *
CVE-2019-14241 MEDIUM

HAProxy through 2.0.2 allows attackers to cause a denial of service (ha_panic) via vectors related to htx_manage_client_side_cookies in proto_htx.c.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-835,

Products Affected

Vendor Product Version
haproxy haproxy *
CVE-2019-14243 MEDIUM

headerv2.go in mastercactapus proxyprotocol before 0.0.2, as used in the mastercactapus caddy-proxyprotocol plugin through 0.0.2 for Caddy, allows remote attackers to cause a denial of service (webserver panic and daemon crash) via a crafted HAProxy PROXY v2 request with truncated source/destination address data.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 7.5 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 3.9 3.6

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-20,

Products Affected

Vendor Product Version
haproxy proxyprotocol *
CVE-2019-18277 MEDIUM

A flaw was found in HAProxy before 2.0.6. In legacy mode, messages featuring a transfer-encoding header missing the "chunked" value were not being correctly rejected. The impact was limited but if combined with the "http-reuse always" setting, it could be used to help construct an HTTP request smuggling attack against a vulnerable component employing a lenient parser that would ignore the content-length header as soon as it saw a transfer-encoding one (even if not entirely valid according to the specification).

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 7.5 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N 3.9 3.6

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-444,

Products Affected

Vendor Product Version
haproxy haproxy *
CVE-2019-19330 HIGH

The HTTP/2 implementation in HAProxy before 2.0.10 mishandles headers, as demonstrated by carriage return (CR, ASCII 0xd), line feed (LF, ASCII 0xa), and the zero character (NUL, ASCII 0x0), aka Intermediary Encapsulation Attacks.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 9.8 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 3.9 5.9

CVSS 2.0

Severity: HIGH

Problem Type: CWE-74,

Products Affected

Vendor Product Version
haproxy haproxy *
canonical ubuntu_linux 18.04
debian debian_linux 10.0
canonical ubuntu_linux 19.04
canonical ubuntu_linux 19.10
CVE-2020-11100 MEDIUM

In hpack_dht_insert in hpack-tbl.c in the HPACK decoder in HAProxy 1.8 through 2.x before 2.1.4, a remote attacker can write arbitrary bytes around a certain location on the heap via a crafted HTTP/2 request, possibly causing remote code execution.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 8.8 HIGH CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 2.8 5.9

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-787,

Products Affected

Vendor Product Version
fedoraproject fedora 31
redhat openshift_container_platform 4.0
haproxy haproxy *
canonical ubuntu_linux 18.04
opensuse leap 15.1
debian debian_linux 10.0
canonical ubuntu_linux 19.10
fedoraproject fedora 30
redhat openshift_container_platform 3.11
CVE-2021-39240 MEDIUM

An issue was discovered in HAProxy 2.2 before 2.2.16, 2.3 before 2.3.13, and 2.4 before 2.4.3. It does not ensure that the scheme and path portions of a URI have the expected characters. For example, the authority field (as observed on a target HTTP/2 server) might differ from what the routing rules were intended to achieve.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 7.5 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N 3.9 3.6

CVSS 2.0

Severity: MEDIUM

Problem Type: NVD-CWE-noinfo,

Products Affected

Vendor Product Version
fedoraproject fedora 33
fedoraproject fedora 34
debian debian_linux 11.0
haproxy haproxy *
CVE-2021-39241 MEDIUM

An issue was discovered in HAProxy 2.0 before 2.0.24, 2.2 before 2.2.16, 2.3 before 2.3.13, and 2.4 before 2.4.3. An HTTP method name may contain a space followed by the name of a protected resource. It is possible that a server would interpret this as a request for that protected resource, such as in the "GET /admin? HTTP/1.1 /static/images HTTP/1.1" example.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 5.3 MEDIUM CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N 3.9 1.4

CVSS 2.0

Severity: MEDIUM

Problem Type: NVD-CWE-noinfo,

Products Affected

Vendor Product Version
fedoraproject fedora 33
fedoraproject fedora 34
debian debian_linux 11.0
haproxy haproxy *
CVE-2021-39242 MEDIUM

An issue was discovered in HAProxy 2.2 before 2.2.16, 2.3 before 2.3.13, and 2.4 before 2.4.3. It can lead to a situation with an attacker-controlled HTTP Host header, because a mismatch between Host and authority is mishandled.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 7.5 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N 3.9 3.6

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-755,

Products Affected

Vendor Product Version
fedoraproject fedora 33
fedoraproject fedora 34
debian debian_linux 11.0
haproxy haproxy *
CVE-2021-40346 MEDIUM

An integer overflow exists in HAProxy 2.0 through 2.5 in htx_add_header that can be exploited to perform an HTTP request smuggling attack, allowing an attacker to bypass all configured http-request HAProxy ACLs and possibly other ACLs.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 7.5 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N 3.9 3.6

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-190,

Products Affected

Vendor Product Version
fedoraproject fedora 33
fedoraproject fedora 34
debian debian_linux 11.0
haproxy haproxy *
haproxy haproxy 2.5
CVE-2022-0711 MEDIUM

A flaw was found in the way HAProxy processed HTTP responses containing the "Set-Cookie2" header. This flaw could allow an attacker to send crafted HTTP response packets which lead to an infinite loop, eventually resulting in a denial of service condition. The highest threat from this vulnerability is availability.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 7.5 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 3.9 3.6

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-835,CWE-835,

Products Affected

Vendor Product Version
redhat software_collections -
redhat openshift_container_platform 4.0
debian debian_linux 11.0
haproxy haproxy *
redhat enterprise_linux 7.0
redhat enterprise_linux 8.0
CVE-2023-0056

An uncontrolled resource consumption vulnerability was discovered in HAProxy which could crash the service. This issue could allow an authenticated remote attacker to run a specially crafted malicious server in an OpenShift cluster. The biggest impact is to availability.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 6.5 MEDIUM CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H 2.8 3.6

Products Affected

Vendor Product Version
redhat openshift_container_platform_ibm_z_systems 4.10
haproxy haproxy -
redhat openshift_container_platform 4.10
redhat openshift_container_platform_for_ibm_linuxone 4.11
fedoraproject extra_packages_for_enterprise_linux 8.0
fedoraproject fedora 36
redhat openshift_container_platform_for_power 4.12
redhat openshift_container_platform_ibm_z_systems 4.12
redhat software_collections -
redhat openshift_container_platform_for_ibm_linuxone 4.12
redhat openshift_container_platform_for_ibm_linuxone 4.10
redhat openshift_container_platform_ibm_z_systems 4.11
redhat openshift_container_platform 4.11
redhat openshift_container_platform_for_power 4.11
redhat openshift_container_platform 4.12
fedoraproject fedora 37
redhat ceph_storage 5.0
redhat openshift_container_platform_for_power 4.10
CVE-2023-0836

An information leak vulnerability was discovered in HAProxy 2.1, 2.2 before 2.2.27, 2.3, 2.4 before 2.4.21, 2.5 before 2.5.11, 2.6 before 2.6.8, 2.7 before 2.7.1. There are 5 bytes left uninitialized in the connection buffer when encoding the FCGI_BEGIN_REQUEST record. Sensitive data may be disclosed to configured FastCGI backends in an unexpected way.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 7.5 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N 3.9 3.6

Products Affected

Vendor Product Version
haproxy haproxy *
haproxy haproxy 2.1.0
haproxy haproxy 2.3.0
haproxy haproxy 2.7.0
CVE-2023-25725

HAProxy before 2.7.3 may allow a bypass of access control because HTTP/1 headers are inadvertently lost in some situations, aka "request smuggling." The HTTP header parsers in HAProxy may accept empty header field names, which could be used to truncate the list of HTTP headers and thus make some headers disappear after being parsed and processed for HTTP/1.0 and HTTP/1.1. For HTTP/2 and HTTP/3, the impact is limited because the headers disappear before being parsed and processed, as if they had not been sent by the client. The fixed versions are 2.7.3, 2.6.9, 2.5.12, 2.4.22, 2.2.29, and 2.0.31.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 9.1 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H 3.9 5.2

Products Affected

Vendor Product Version
debian debian_linux 11.0
haproxy haproxy *
debian debian_linux 10.0
CVE-2023-25950

HTTP request/response smuggling vulnerability in HAProxy version 2.7.0, and 2.6.1 to 2.6.7 allows a remote attacker to alter a legitimate user's request. As a result, the attacker may obtain sensitive information or cause a denial-of-service (DoS) condition.

Products Affected

Vendor Product Version
haproxy haproxy *
haproxy haproxy 2.7.0
CVE-2023-40225

HAProxy through 2.0.32, 2.1.x and 2.2.x through 2.2.30, 2.3.x and 2.4.x through 2.4.23, 2.5.x and 2.6.x before 2.6.15, 2.7.x before 2.7.10, and 2.8.x before 2.8.2 forwards empty Content-Length headers, violating RFC 9110 section 8.6. In uncommon cases, an HTTP/1 server behind HAProxy may interpret the payload as an extra request.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 7.2 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N 3.9 2.7

Products Affected

Vendor Product Version
haproxy haproxy *
CVE-2023-45539

HAProxy before 2.8.2 accepts # as part of the URI component, which might allow remote attackers to obtain sensitive information or have unspecified other impact upon misinterpretation of a path_end rule, such as routing index.html#.png to a static server.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 8.2 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N 3.9 4.2

Products Affected

Vendor Product Version
haproxy haproxy *
CVE-2025-11230

Inefficient algorithm complexity in mjson in HAProxy allows remote attackers to cause a denial of service via specially crafted JSON requests.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
security@ubuntu.com 7.5 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 3.9 3.6

Products Affected

Vendor Product Version
haproxy kubernetes_ingress_controller *
haproxy haproxy_enterprise 2.6r1
haproxy haproxy_enterprise 2.4r1
haproxy haproxy *
haproxy haproxy_enterprise 3.1r1
haproxy haproxy_enterprise 2.8r1
haproxy haproxy_enterprise 3.0r1
haproxy aloha_appliance *