CVE-2025-32464 – Overflowing HAProxy regsub converter
A heap buffer overflow exists in HAProxy's regsub converter when used in certain configurations. An attacker could trigger this overflow to crash the entire pool of HAProxy workers, causing a denial of service.
Published on codeanlabs.com
This is a write-up of CVE-2025-32464, a vulnerability in HAProxy which allows an attacker to perform a Denial of Service (DoS) attack exploiting specific usages of the regsub converter to cause a heap buffer overflow, making the whole HAProxy pool of workers crash. Given the nature of the vulnerability, a scenario…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could crash all HAProxy workers, causing a denial of service; the text says remote code execution is not feasible.
What the attacker needed
HAProxy config uses regsub converter; attacker can send crafted input
The fix
It should be fixed by updating to version 3.1.7 or later, or the enterprise version 3.1r1 (1.0.0-347.338).
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
HAProxy is a load balancer that sits in front of websites. A converter called regsub rewrites text using patterns, and a bug in it can write past the end of a memory buffer. That makes the service crash, so legitimate users cannot reach the site.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.