Bug 2082194 (CVE-2022-27778) - CVE-2022-27778 curl: removes wrong file on error
Summary: CVE-2022-27778 curl: removes wrong file on error
Status: NEW
Alias: CVE-2022-27778
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On:
Blocks: 2082195
TreeView+ depends on / blocked
Reported: 2022-05-05 14:50 UTC by Marian Rehak
Modified: 2022-05-11 14:36 UTC (History)
25 users (show)

Fixed In Version: curl 7.83.1
Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in curl. The issue occurs when removing the wrong file when "--no-clobber" is used together with "--remove-on-error." This flaw leads to removing files by mistake or by a malicious actor.
Clone Of:
Last Closed:

Attachments (Terms of Use)

Description Marian Rehak 2022-05-05 14:50:36 UTC
If curl adds a number to not "clobber" the output and an error occurs during transfer, the remove on error logic would remove the *original* file name without the added number.

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