CVE-2026-134728

Crypt::OpenPGP versions before 1.22 for Perl use a subkey without checking its binding signature, so a signature by a subkey added to a key block verifies as the key's owner

Published Dec 5, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
Crypt::OpenPGP versions before 1.22 for Perl use a subkey without checking its binding signature, so a signature by a subkey added to a key block verifies as the key's owner.

A key block takes every subkey packet that follows its primary key as one of its keys. A subkey is tied to the primary key by a binding signature the primary key makes over both, and nothing checks for one. key_by_id, signing_key and encrypting_key return such a subkey, and find_keyblock_by_keyid matches a key block through it.

An attacker who can change a keyring file or a key server's response can add a subkey of their own to another key block. A message signed with it then verifies as signed by that key's owner, and a message encrypted to the owner can go to the attacker's subkey when the primary key cannot encrypt.

Remediation

Vendor Solution

Upgrade to Crypt-OpenPGP 1.22 or later.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Crypt::OpenPGP versions before 1.22 for Perl use a subkey without checking its binding signature, so a signature by a subkey added to a key block verifies as the key's owner. A key block takes every subkey packet that follows its primary key as one of its keys. A subkey is tied to the primary key by a binding signature the primary key makes over both, and nothing checks for one. key_by_id, signing_key and encrypting_key return such a subkey, and find_keyblock_by_keyid matches a key block through it. An attacker who can change a keyring file or a key server's response can add a subkey of their own to another key block. A message signed with it then verifies as signed by that key's owner, and a message encrypted to the owner can go to the attacker's subkey when the primary key cannot encrypt.
Title Crypt::OpenPGP versions before 1.22 for Perl use a subkey without checking its binding signature, so a signature by a subkey added to a key block verifies as the key's owner
Weaknesses CWE-347
References

Subscriptions

No data.

Weaknesses

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Dec 5, 2026, 11:05 PM
Reserved
Nov 22, 2026, 3:05 AM
Status
Received
Published
Dec 5, 2026, 11:18 PM
Modified
Dec 5, 2026, 11:18 PM