Skip to content

Bump rpassword to 7.5.2 #4161

@Bravo555

Description

@Bravo555

There is a security advisory for rpassword where entered password is revealed if it's been typed and the process is SIGKILLed.

https://github.com/thin-edge/thin-edge.io/security/dependabot/39

We are affected by this in tedge cert upload c8y and tedge cert download c8y commands where we prompt for a password to the C8y account.

This bug happens in rpassword@7.4.0 and the fix is in 7.5.0. However, 7.5.0 also contains other features and bumps its MSRV, using features that have been stabilized in Rust 1.88 (1, 2), which is more recent than our MSRV of 1.85, so we can't update the dependency without changing our MSRV.

Since tedge cert download/upload are rarely used commands and the issue is unlikely to happen in practice (Ctrl+C uses SIGINT which doesn't reveal the password, one would have to kill the process deliberately with SIGKILL or SIGTERM), we won't be prioritizing it and we'll upgrade the dependency if we decide to bump the MSRV of thin-edge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency filemsrvUpgrading the Minimum Supported Rust Version (MSRV) is required for this change.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions