HAProxy Vulnerability: Denial of Service and Arbitrary Code Execution Risk

haproxy Updated 03 Oct 2025

Summary

10/04/2025
N/A
Yes i
Unrated
Not published

USN-7431-1: haproxy vulnerability. Affects haproxy versions < 2.4.24-0ubuntu0.22.04.2. Fixed in 2.4.24-0ubuntu0.22.04.2. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

HAProxy is a widely-used open-source software that provides high availability, load balancing, and proxying for TCP and HTTP-based applications. It is known for its performance and reliability in managing large volumes of traffic. However, recent vulnerabilities have been identified that could compromise its stability and security, particularly in uncommon configurations.

Vulnerability Detail

Aleandro Prudenzano and Edoardo Geraci discovered that HAProxy incorrectly handled certain uncommon configurations that replace multiple short patterns with a longer one. This flaw allows a remote attacker to exploit the issue, potentially causing HAProxy to crash, leading to a denial of service. In some cases, it may also allow the execution of arbitrary code, posing a significant security risk.

How To Fix

Minimum fixed version

2.4.24-0ubuntu0.22.04.2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade haproxy

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate updating is not feasible, consider disabling the use of uncommon configurations that may trigger this vulnerability. Review your HAProxy configuration files and avoid replacing multiple short patterns with longer ones until the package can be updated.

Conclusion

The identified vulnerability in HAProxy poses significant risks, including denial of service and potential arbitrary code execution. It is crucial for users to update to the latest patched versions to mitigate these risks. Additionally, reviewing configurations and utilizing tools like Vulert can help maintain security in open-source applications.

See every vulnerability recorded for haproxy →

Share this vulnerability

FAQ

HAProxy is an open-source software that provides load balancing and proxying for TCP and HTTP applications, ensuring high availability and reliability.

The vulnerability can lead to denial of service or arbitrary code execution, allowing attackers to disrupt service or gain unauthorized access.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.

As a temporary measure, avoid using uncommon configurations that could trigger the vulnerability until you can apply the necessary updates.

Detailed information can be found in the Ubuntu Security Notices, specifically USN-7431-1, which outlines the vulnerability and its implications.

Related vulnerabilities

Recent vulnerabilities recorded for haproxy.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

2.4.24-0ubuntu0.22.04.2

This is the first release that contains the fix.

sudo apt-get install --only-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