Bug 2222604 (CVE-2023-32001) - CVE-2023-32001 curl: fopen race condition
Summary: CVE-2023-32001 curl: fopen race condition
Keywords:
Status: NEW
Alias: CVE-2023-32001
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2223893
Blocks: 2222601
TreeView+ depends on / blocked
 
Reported: 2023-07-13 09:07 UTC by Marian Rehak
Modified: 2023-08-29 07:14 UTC (History)
10 users (show)

Fixed In Version: curl 8.2.0
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the curl package. This race condition modifies the behavior of symbolic link files in affected components which might be followed instead of overwritten when the condition is met, leading to undesired and potentially destructive behavior.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Marian Rehak 2023-07-13 09:07:48 UTC
libcurl can be told to save cookie, HSTS and/or alt-svc data to files. When doing this, it called `stat()` followed by `fopen()` in a way that made it vulnerable to a TOCTOU race condition problem. By exploiting this flaw, an attacker could trick the victim to create or overwrite protected files holding this data in ways it was not intended to.

Comment 1 Marian Rehak 2023-07-19 08:24:18 UTC
Created curl tracking bugs for this issue:

Affects: fedora-all [bug 2223893]


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