CVE-2026-125429: Crypt::OpenPGP versions before 1.22 for Perl accept any signature type as a document signature in verify
Crypt::OpenPGP versions before 1.22 for Perl accept any signature type as a document signature in verify.
The signature packet's type is read only to decide whether the data is canonicalised as text and is never checked against the document signature types. The digest covers the supplied data followed by the signature's own trailer, so a user ID certification, subkey binding, direct key or revocation signature verifies over a document consisting of the key and user ID material it covers.
An attacker holding any signature a key has issued, such as the self-certification on a published key, can pair it with that document, and verify reports a valid signature by the key.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Crypt::OpenPGPto a version that resolves this vulnerability.Fixed in 1.22
Event History
Frequently Asked Questions
Which deployments are exposed?
Deployments using Crypt::OpenPGP for Perl before version 1.22 are affected when they rely on verify to establish that supplied document data was signed by a key.
What does an attacker need to exploit this?
The attacker needs a signature previously issued by the target key, such as a self-certification on a published key, and the key and user ID material covered by that signature. They can pair those materials so verify reports a valid signature for a document even though the signature is not a document signature.
How can I determine whether an application is vulnerable?
Check the installed Crypt::OpenPGP version and upgrade if it is earlier than 1.22. Applications are at risk if they accept verify success as proof of a document signature without independently validating the signature packet type.