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: 2025-05-16 08:28 UTC (History)
9 users (show)

Fixed In Version: curl 8.2.0
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.