Lucene search

K
redhatcveRedhat.comRH:CVE-2023-40225
HistoryAug 15, 2023 - 7:49 p.m.

CVE-2023-40225

2023-08-1519:49:16
redhat.com
access.redhat.com
10
haproxy
content-length
http/1
vulnerability
mitigation
rule
header length

0.002 Low

EPSS

Percentile

52.5%

A flaw was found in HAProxy. Empty Content-Length headers are forwarded, which could cause an HTTP/1 server behind it to interpret the payload as an extra request. This may render the HTTP/1 server vulnerable to attacks in some uncommon cases.

Mitigation

This flaw can be mitigated by applying a rule to explicitly reject any requests with an empty Content-Lenght header. The following line can be added to any frontend configurations at the /etc/haproxy/haproxy.cfg file.

http-request deny if { hdr_len(content-length) 0 }