Crypt::OpenPGP versions before 1.22 for Perl improperly accept any signature type as a valid document signature during verification. The signature packet type is only used to determine text canonicalization and is not validated against expected document signature types. This allows an attacker with any signature issued by a key, including self-certifications, to pair it with a document and have the verification process report it as a valid signature by that key.