CURL-CVE-2022-27778

    Dashboard / Vulnerabilities / CURL-CVE-2022-27778

    CURL-CVE-2022-27778

    Published: 11 May 2022Last Modified: 27 May 2026

    Summary: curl removes wrong file on error

    Details: curl might remove the wrong file when `--no-clobber` is used together with `--remove-on-error`. The `--remove-on-error` option tells curl to remove the output file when it returns an error, and not leave a partial file behind. The `--no-clobber` option prevents curl from overwriting a file if it already exists, and instead appends a number to the name to create a new unused filename. 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* filename without the added number.

    References:

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 7.83.0
    Fixed -7.83.1

    Affected versions

    7.83.0

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    CURL-CVE-2022-27778 | CVE-DB