NetSight
low3.8No CVE yet

GHSA-2p6r-x3vv-xqm2

rpassword affected by partial password reveal when input is interrupted

Impact

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.

An attacker can exploit this with physical access to the device, with an administrator account, but a user has to do something, such as open a file or a link. Specific conditions have to be met, which makes an attack harder. If it succeeds: high risk of data being read.

Affected packages

EcosystemPackageAffectedFixed in
rustrpassword<= 7.4.07.5.0

Weakness classification

References