Comparison Using Wrong Factors Affecting haproxy package, versions [v2.2-dev3,v3.2-dev10)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.55% (67th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-HAPROXY-10361618
  • published16 Jun 2025
  • disclosed9 Apr 2025
  • creditAleandro Prudenzano, Edoardo Geraci

Introduced: 9 Apr 2025

CVE-2025-32464  (opens in a new tab)
CWE-1025  (opens in a new tab)

How to fix?

Upgrade haproxy to version v3.2-dev10 or higher.

Overview

Affected versions of this package are vulnerable to Comparison Using Wrong Factors due to improper back-reference replacement length check in sample_conv_regsub. An attacker can trigger this by sending a crafted input that causes a pre-configured rule to replace multiple short patterns with larger ones, leading to a buffer overflow that could crash the service. The flaw occurs because the validation for the replacement size is calculated against the final output buffer for each match, rather than the intermediate temporary buffer, allowing the cumulative size of multiple replacements to exceed the temporary buffer's capacity.

CVSS Base Scores

version 4.0
version 3.1