Bug 2099305 (CVE-2022-32207) - CVE-2022-32207 curl: Unpreserved file permissions
Summary: CVE-2022-32207 curl: Unpreserved file permissions
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2022-32207
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2099451 2099452 2099453 2101652 2101653
Blocks: 2099297
TreeView+ depends on / blocked
 
Reported: 2022-06-20 14:06 UTC by Marian Rehak
Modified: 2023-01-11 07:00 UTC (History)
26 users (show)

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.
Clone Of:
Environment:
Last Closed: 2022-12-10 18:12:42 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:6157 0 None None None 2022-08-24 15:07:57 UTC
Red Hat Product Errata RHSA-2022:8840 0 None None None 2022-12-08 13:07:15 UTC
Red Hat Product Errata RHSA-2022:8841 0 None None None 2022-12-08 13:22:11 UTC

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


Note You need to log in before you can comment on or make changes to this bug.