Denial of Service Vulnerability in HAProxy
Summary
CVE-2022-0711: A flaw was found in the way HAProxy processed HTTP responses containing the "Set-Cookie2" header. Affects haproxy across 5 version ranges.
>= 1c0a722a83e7c45456a2b82c15889ab9ab5c4948, < 55c4c21958ebeb5ecb23aa404bafc5d558e4a0d7
< 2.2.21-r0
>= 3a00c915fd241fc398a080a11ccac9c5c46791ce, < d8e6e4b63fc323c98f9bdd6d160a20bce0d02770
>= 6cbbecf09734aeb5fa8bb88f36f06a6f6d35e813, < 09cc669afb35fa362c9e42ab42c85f21cbdecd9d
< bfb15ab34ead85f64cd6da0e9fb418c9cd14cee8
Fixed in 2.2.21-r0. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
HAProxy is an open-source load balancer and proxy server that is widely used in high-traffic websites. It provides high availability, scalability, and security for web applications. However, a vulnerability has been discovered in HAProxy that could lead to a denial of service (DoS) condition.
Vulnerability Detail
The vulnerability, identified as CVE-2022-0711, arises from a flaw in the way HAProxy handles HTTP responses containing the "Set-Cookie2" header. An attacker can exploit this flaw by sending crafted HTTP response packets, triggering an infinite loop in HAProxy. This can eventually result in a DoS condition, impacting the availability of the affected system. The severity of this vulnerability is rated as high, with a CVSS score of 7.5.
How To Fix
Minimum fixed version
2.2.21-r0
This is the first release that contains the fix.
sudo apk add --upgrade haproxy
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to apply the official fix by updating HAProxy to the recommended version.
Conclusion
The Denial of Service vulnerability in HAProxy can be mitigated by updating the software to version 2.2.21-r0 or later. It is crucial for users to apply this fix promptly to ensure the availability and security of their systems. For further support on vulnerability remediation, contact DevNack.com.
See every vulnerability recorded for haproxy →
FAQ
HAProxy is an open-source load balancer and proxy server that provides high availability, scalability, and security for web applications.
The vulnerability can lead to a denial of service (DoS) condition, causing the affected system to become unavailable.
To fix this vulnerability, update HAProxy to version 2.2.21-r0 or later.
No, there is no known workaround for this vulnerability. Updating HAProxy is the recommended solution.
The severity of this vulnerability is rated as high, with a CVSS score of 7.5.
Related vulnerabilities
Recent vulnerabilities recorded for haproxy.