Bug 2358543 (CVE-2025-32464)

Summary: CVE-2025-32464 haproxy: Buffer Overflow via Improper Back-Reference Replacement Length Check
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aazores, abrianik, adupliak, amctagga, anstephe, aoconnor, asoldano, ataylor, avibelli, bbaranow, bgeorges, bmaxwell, bniver, boliveir, brian.stansberry, caswilli, ccranfor, cdewolf, chfoley, clement.escoffier, cmah, dandread, darran.lofthouse, dhanak, dkreling, dosoudil, drichtar, dsimansk, eaguilar, ebaron, ecerquei, eglynn, eric.wittmann, fjuma, flucifre, fmariani, fmongiar, ggrzybek, gmalinko, gmeno, gsmet, ibek, istudens, ivassile, iweiss, janstey, jcantril, jforrest, jjoyce, jkoehler, jkoops, jmartisk, jnethert, jolong, jpechane, jpoth, jrokos, jsamir, jschluet, jscholz, kaycoth, kholdawa, kingland, kverlaen, lcouzens, lgao, lhh, lphiri, lsvaty, lthon, manderse, matzew, mbenjamin, mburns, mgarciac, mhackett, mnovotny, mosmerov, mskarbek, msochure, msvehla, nipatil, nwallace, olubyans, pantinor, parichar, pdelbell, pdrozd, peholase, periklis, pesilva, pgallagh, pgrist, pierdipi, pjindal, pmackay, porcelli, probinso, pskopek, rguimara, rhuss, rkubis, rmartinc, rojacob, rowaters, rruss, rstancel, rstepani, rsvoboda, sausingh, sbiarozk, sfroberg, smaestri, sostapov, sthirugn, sthorger, swoodman, tasato, tcunning, tom.jenkinson, tqvarnst, vereddy, vkrizan, yfang
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in the HAProxy. This issue can allow a buffer overflow via improper length checking when replacing multiple regex back-references in a string. Specifically, the replacement size is incorrectly validated against the output buffer instead of the temporary trash buffer used during substitution. If multiple matches are replaced with strings larger than the available buffer size, this can lead to a memory overwrite.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2358561, 2358560    
Bug Blocks:    

Description OSIDB Bzimport 2025-04-09 03:01:34 UTC
HAProxy 2.2 through 3.1.6, in certain uncommon configurations, has a sample_conv_regsub heap-based buffer overflow because of mishandling of the replacement of multiple short patterns with a longer one.