Bug 2082194 (CVE-2022-27778) - CVE-2022-27778 curl: removes wrong file on error
Summary: CVE-2022-27778 curl: removes wrong file on error
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2022-27778
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:
Blocks: 2082195
TreeView+ depends on / blocked
 
Reported: 2022-05-05 14:50 UTC by Marian Rehak
Modified: 2023-01-13 05:00 UTC (History)
24 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:
Environment:
Last Closed: 2023-01-13 05:00:40 UTC
Embargoed:


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.

Comment 3 Product Security DevOps Team 2023-01-13 05:00:37 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-27778


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