Bug 1995107 (CVE-2021-39241)

Summary: CVE-2021-39241 haproxy: an HTTP method name may contain a space followed by the name of a protected resource
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:
haproxy has an input validation flaw that could allow a remote attacker to bypass implemented security restrictions. An HTTP method name may contain a space followed by the name of a protected resource. Given this, It is possible that an server would interpret this as a request for that protected resource. The highest threat from this vulnerability is possible confidentiality concerns.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-10 20:58:14 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: 1995109, 1998198, 2001963, 2001964, 2002703, 2002706, 2002708, 2003162, 2019913    
Bug Blocks: 1993521    

Description Guilherme de Almeida Suckevicz 2021-08-18 13:16:04 UTC
An issue was discovered in HAProxy 2.0 before 2.0.24, 2.2 before 2.2.16, 2.3 before 2.3.13, and 2.4 before 2.4.3. An HTTP method name may contain a space followed by the name of a protected resource. It is possible that a server would interpret this as a request for that protected resource, such as in the "GET /admin? HTTP/1.1 /static/images HTTP/1.1" example.

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

Upstream patch:
https://git.haproxy.org/?p=haproxy.git;a=commit;h=89265224d314a056d77d974284802c1b8a0dc97f

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

Affects: fedora-all [bug 1995109]

Comment 4 errata-xmlrpc 2021-11-10 20:49:35 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:58:12 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-39241

Comment 6 errata-xmlrpc 2022-01-05 15:44:16 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

Comment 7 errata-xmlrpc 2022-01-12 08:46:18 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.6

Via RHSA-2022:0024 https://access.redhat.com/errata/RHSA-2022:0024

Comment 8 errata-xmlrpc 2022-01-19 13:26:31 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.7

Via RHSA-2022:0114 https://access.redhat.com/errata/RHSA-2022:0114