REDHAT-BUG-2560041: Medium severity cargo/sequoia-openpgp vulnerability
A flaw was found in sequoia-openpgp. DSA signature verification on the Nettle and OpenSSL backends accepts parameters g = 1 and y = 1. For those parameters the DSA verification value is 1 for every digest, so a signature with r = 1 and an invertible s verifies for every message under that key. Sequoia 2.4.2 has no local rejection of these parameters. The maintainer reports that the RustCrypto and Botan backends reject them. Ordinary DSA keys are unaffected. An application is exposed when it treats that degenerate certificate as authoritative, on a Nettle or OpenSSL build. The default crate feature is crypto-nettle. No policy cutoff rejects g = 1 and y = 1.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed?
Deployments using sequoia-openpgp with the Nettle or OpenSSL cryptographic backend are exposed if an application treats a certificate containing the degenerate DSA parameters g = 1 and y = 1 as authoritative. The default crate feature uses crypto-nettle, so default-feature builds are in scope.
What does an attacker need to exploit this flaw?
An attacker needs a degenerate DSA certificate with g = 1 and y = 1 to be accepted as authoritative by the application. They can then provide a signature with r = 1 and an invertible s that verifies for any message digest under that key.
Are normal DSA keys affected?
No. Ordinary DSA keys are unaffected; the issue is limited to the degenerate g = 1 and y = 1 parameter values.
What can reduce exposure if the affected backend cannot be changed immediately?
Do not treat certificates with DSA parameters g = 1 or y = 1 as authoritative. The available information states that there is no policy cutoff rejecting these values, so applications may need to enforce that rejection themselves.
Do all supported cryptographic backends accept these parameters?
No. The RustCrypto and Botan backends reportedly reject the degenerate parameters. The affected behavior is reported for the Nettle and OpenSSL backends.