Advisory

GHSA-2p6r-x3vv-xqm2

Also known as: None

Summary

rpassword affected by partial password reveal when input is interrupted

Details

rpassword maintainers were made aware of a possible issue with a partial password reveal when input is interrupted.

To quote @squell:

> @conradkleinespel I've confirmed this problem with SequoiaPGP, which I think uses rpassword, e.g.:
>
> Suppose we use pkill -9 sq in a different terminal right after the password has been typed in:
>
> $ sq key generate --userid "barf" --with-password
> Enter password to protect the key: Killed
> $ hello^C
>
> Where the password I typed in is "hello".

This has been fixed in version v7.5.0 and above.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2026-05-06 21:49 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

rpassword

crates.io · All systems

Affected

  • introduced 0, fixed 7.5.0 (semver)

Fixed versions

7.5.0

Fix

  • Fixed version 7.5.0
    cargo update -p rpassword --precise 7.5.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences