Bug 2099305 (CVE-2022-32207)

Summary: CVE-2022-32207 curl: Unpreserved file permissions
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: andrew.slice, bodavis, csutherl, dbhole, erik-fedora, hhorak, jclere, jorton, jwon, kanderso, kdudka, luhliari, lvaleeva, lzaoral, mike, msekleta, mturk, omajid, paul, peholase, pjindal, plodge, rwagner, security-response-team, svashisht, szappis
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: curl 7.84.0 Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in curl. This issue occurs because when curl saves cookies, alt-svc, and HSTS data to local files, it makes the operation atomic by finalizing the process with a rename from a temporary name to the final target file name. This flaw leads to unpreserved file permissions, either by mistake or by a malicious actor.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-10 18:12:42 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: 2099451, 2099452, 2099453, 2101652, 2101653    
Bug Blocks: 2099297    

Description Marian Rehak 2022-06-20 14:06:46 UTC
When curl saves cookies, alt-svc and hsts data to local files, it makes the operation atomic by finalizing the operation with a rename from a temporary name to the final target file name. In that rename operation, it might accidentally *widen* the permissions for the target file, leaving the updated file accessible to more users than intended.

Comment 3 Sandipan Roy 2022-06-28 03:29:24 UTC
Created curl tracking bugs for this issue:

Affects: fedora-all [bug 2101652]


Created mingw-curl tracking bugs for this issue:

Affects: fedora-all [bug 2101653]

Comment 4 errata-xmlrpc 2022-08-24 15:07:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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

Comment 7 errata-xmlrpc 2022-12-08 13:07:13 UTC
This issue has been addressed in the following products:

  JBoss Core Services on RHEL 7
  JBoss Core Services for RHEL 8

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

Comment 8 errata-xmlrpc 2022-12-08 13:22:09 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Core Services

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

Comment 9 Product Security DevOps Team 2022-12-10 18:12:39 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-2022-32207