Bug 1995104 (CVE-2021-39240)

Summary: CVE-2021-39240 haproxy: does not ensure that the scheme and path portions of a URI have the expected characters
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bmontgom, bperkins, eparis, hhorak, jburrell, jeremy, jokerman, jorton, nstielau, pavloos, rohara, sponnaga, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: haproxy 2.4.3 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in haproxy. An input validation flaw when processing HTTP/2 requests causes haproxy to not ensure that the scheme and path portions of a URI have the expected characters. This may cause specially crafted input to bypass implemented security restrictions. The highest threat from this vulnerability is confidentiality.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-10 20:57:48 UTC 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: 1995105, 1998196, 2001963, 2002703, 2003162, 2019913    
Bug Blocks: 1993521    

Description Guilherme de Almeida Suckevicz 2021-08-18 13:12:53 UTC
An issue was discovered in HAProxy 2.2 before 2.2.16, 2.3 before 2.3.13, and 2.4 before 2.4.3. It does not ensure that the scheme and path portions of a URI have the expected characters. For example, the authority field (as observed on a target HTTP/2 server) might differ from what the routing rules were intended to achieve.

Reference:
https://www.mail-archive.com/haproxy@formilux.org/msg41041.html

Upstream patches:
https://git.haproxy.org/?p=haproxy.git;a=commit;h=a495e0d94876c9d39763db319f609351907a31e8
https://git.haproxy.org/?p=haproxy.git;a=commit;h=4b8852c70d8c4b7e225e24eb58258a15eb54c26e

Comment 1 Guilherme de Almeida Suckevicz 2021-08-18 13:13:11 UTC
Created haproxy tracking bugs for this issue:

Affects: fedora-all [bug 1995105]

Comment 4 errata-xmlrpc 2021-11-10 20:49:34 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.9

Via RHSA-2021:4118 https://access.redhat.com/errata/RHSA-2021:4118

Comment 5 Product Security DevOps Team 2021-11-10 20:57:45 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-39240

Comment 6 errata-xmlrpc 2022-01-05 15:44:12 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.8

Via RHSA-2021:5208 https://access.redhat.com/errata/RHSA-2021:5208