Sequoia OpenPGP Degenerate DSA Keys: Reject Identity Values Before Verification
OpenPGP verification usually ends in a call to a cryptographic backend. CVE-2026-115841 shows why validation must begin before that call. In affected sequoia-openpgp code, DSA verification did not reject a public key whose generator is 1 and whose public value is 1. For those parameters, the DSA verification value is 1 for every digest. A signature with r = 1 and an invertible s therefore verifies for every message under that key.
The Red Hat summary rates the issue 5.3 and describes the affected behavior on the Nettle and OpenSSL backends. The finding matters because signature verification is often used as a trust gate for package metadata, release manifests or software update records. If a verifier accepts a degenerate key, an attacker who can substitute the key may turn a valid mathematical check into meaningless evidence.
Identity parameters are invalid parameters
A DSA public key contains domain parameters and a public value. Small or mathematically degenerate values can make the verification equation collapse. The generator value 1 and public value 1 are not merely unusual; they remove the structure that makes the signature relationship discriminating. The library should reject these values with the key, before any backend receives them.
This is a validation failure, not a weakness in the DSA primitive by itself. The attack still needs a path that causes the verifier to trust the degenerate key. That may be a compromised key directory, a malicious configuration change, a signature bundle that carries its own key or an application that maps an untrusted key identifier to attacker-supplied material. A vendor advisory should be read with that key-distribution context in mind.
Inventory the verification path
Find applications that use sequoia-openpgp directly or through a package, container or language binding. Git tooling, artifact signing, repository mirrors and update services are plausible users, but the dependency graph is the source of truth. Record the backend in use because the advisory names Nettle and OpenSSL behavior.
Review where public keys come from. A trusted key store should be immutable or controlled by a signed configuration. An application should not accept an arbitrary key included beside the signature it is checking. Bind a key to an identity and a fingerprint using an independent policy. Log the fingerprint and key parameters when verification fails.
Upgrade and test
Apply an upstream or distributor update that explicitly lists CVE-2026-115841. Check the release notes for the affected backend and fixed version rather than inferring the state from the package's general version number. Restart services that load the library dynamically, and rebuild statically linked tools.
Add negative tests with generator 1, public value 1, zero values and malformed DSA parameter sets. A clean test should fail at key validation and never enter the backend. Test that an ordinary valid DSA test vector still passes if the deployment still permits DSA keys. Where DSA is no longer required, disable it in policy and remove legacy keys rather than relying on the defect being fixed.
After deployment, verify a known-good signed artifact and a deliberately altered artifact. The altered object must fail. Keep the result with the release evidence so future dependency changes can be compared.
The advisory describes a signature-verification bypass. It does not show that every deployment has been attacked. The practical response is to prove that key validation is strict, the trusted key source is controlled and the patched backend is actually loaded.
Top comments (0)