Denial of Service Vulnerability in HAProxy

haproxy Updated 02 Oct 2025

Summary

02/03/2022
N/A
Yes i
High
7.5

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback