Bug 2016088 (CVE-2021-22926)

Summary: CVE-2021-22926 curl: CURLOPT_SSLCERT mixup with Secure Transport
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: amctagga, andrew.slice, anharris, bdettelb, bniver, bodavis, caswilli, csutherl, dbhole, dciabrin, fjansen, flucifre, gmeno, gzaronik, hhorak, hvyas, jburrell, jclere, jnakfour, jorton, jwong, jwon, kanderso, kaycoth, kdudka, krathod, luhliari, lvaleeva, mbayer, mbenjamin, mhackett, msekleta, mturk, omajid, paul, pjindal, psegedy, rwagner, saroy, sostapov, svashisht, szappis, vereddy, vkumar, vmugicag
Target Milestone: ---Keywords: Reopened, Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: curl 7.78.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-24 17:09:17 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: 2018078, 2018079, 2018080, 2018081    
Bug Blocks: 2017825    

Description Guilherme de Almeida Suckevicz 2021-10-20 18:38:26 UTC
libcurl-using applications can ask for a specific client certificate to be used in a transfer. This is done with the `CURLOPT_SSLCERT` option (`--cert` with the command line tool).When libcurl is built to use the macOS native TLS library Secure Transport, an application can ask for the client certificate by name or with a file name - using the same option. If the name exists as a file, it will be used instead of by name.If the appliction runs with a current working directory that is writable by other users (like `/tmp`), a malicious user can create a file name with the same name as the app wants to use by name, and thereby trick the application to use the file based cert instead of the one referred to by name making libcurl send the wrong client certificate in the TLS connection handshake.

Reference:
https://curl.se/docs/CVE-2021-22926.html

Comment 1 Guilherme de Almeida Suckevicz 2021-10-20 18:49:44 UTC
Created community-mysql tracking bugs for this issue:

Affects: fedora-all [bug 2016141]


Created mysql:8.0/community-mysql tracking bugs for this issue:

Affects: fedora-all [bug 2016142]

Comment 6 Product Security DevOps Team 2021-11-24 17:09:13 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-22926