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.
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub