CVE-2026-137701: Crypt::OpenPGP versions before 1.22 for Perl report a user ID as the signer without checking its self-certification, so a rewritten user ID names the signer of a genuine signature
Crypt::OpenPGP versions before 1.22 for Perl report a user ID as the signer without checking its self-certification, so a rewritten user ID names the signer of a genuine signature.
A key block's primary user ID is the first user ID packet in the block, whatever it says. A user ID is tied to the key by a certification signature the primary key makes over both, and nothing checks for one. verify returns the primary user ID as its result for a good signature, and sign, encrypt and decrypt attach it to the key as its owner.
An attacker who can change a keyring file or supply a key block for import can rewrite a key's user ID without touching key material, and a genuine signature by that key then verifies with the attacker's text returned as the signer.
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
Who is exposed to this issue?
Applications using Crypt::OpenPGP before version 1.22 are exposed when they rely on the reported user ID to identify a signature signer or key owner. The risk applies if an attacker can modify a keyring file or provide a key block that the application imports.
What does an attacker need to do to exploit it?
The attacker needs the ability to rewrite or supply a key block's user ID packet. They do not need to alter the key material or forge the genuine signature; the library can return the attacker-controlled user ID as the signer for a valid signature.
How can I tell whether an application may be affected?
Check whether it uses Crypt::OpenPGP before 1.22 and uses verify, sign, encrypt, or decrypt results to display or trust the key's owner identity. Affected behavior occurs when the primary user ID is accepted without confirming a certification signature tying that ID to the primary key.