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.

Project Subscriptions

No data.

Advisories

No advisories yet.

Fixes

Solution

Upgrade to Crypt-OpenPGP 1.22 or later.


Workaround

No workaround given by the vendor.

History

Sat, 05 Dec 2026 23:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Crypt::OpenPGP versions before 1.22 for Perl accept any signature type as a document signature in verify
Weaknesses CWE-347
References

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-12-05T22:46:08.309Z

Reserved: 2026-11-09T23:38:45.828Z

Link: CVE-2026-125429

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-12-05T23:18:30.630

Modified: 2026-12-05T23:18:30.630

Link: CVE-2026-125429

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses