Changes for version 1.22 - 2026-12-05

  • Changes since 1.21
    • Fixes CVE-2026-107442: decompression bomb. Incompatible: refuses messages over 10,000 packets ($Crypt::OpenPGP::Message::MAX_PACKETS) or 64 MiB of decompressed data ($Crypt::OpenPGP::Compressed::MAX_SIZE)
    • Fixes CVE-2026-125429: verify() accepted non-document signature types
    • Fixes CVE-2026-134622: 32-bit short key IDs accepted in key lookup. Incompatible: 8 hex digit key IDs are now rejected by encrypt(), sign(), KeyRing::find_keyblock_by_keyid(), KeyBlock::key_by_id() and pgplet --local-user; use the full 16 hex digit key ID
    • Fixes CVE-2026-134725: verify() and decrypt() died on malformed input
    • Fixes CVE-2026-134727: messages without an MDC accepted, and produced by default. Incompatible: decrypt() and handle() refuse a message with no MDC unless RequireMDC => 0 (messages from earlier default settings need it); encrypt() now sets MDC => 1; PGP2 and PGP5 Compat modes use no MDC
    • Fixes CVE-2026-134728: subkeys used without a valid binding signature. Incompatible: an unbound subkey is now ignored
    • Fixes CVE-2026-134729: whitespace could be added to signed data. Incompatible: trailing whitespace is now significant except in clear-signed messages
    • Fixes CVE-2026-134760: verify() reported unsigned data as signed. Incompatible: ambiguous signed messages, and non-detached signatures given external Data/Files, are now refused
    • Fixes CVE-2026-134869: pgplet exited successfully after a failed signature check. Incompatible: it now exits non-zero on a bad or unverifiable signature
    • Fixes CVE-2026-137701: a forged, uncertified user ID was reported as the signer; the cryptographic check is unchanged. Incompatible: verify() no longer returns an uncertified user ID, instead returning 1 (valid, but signer unnamed) for a good signature by a key with no self-certified user ID
    • RSA: verifying a signature made in the same process altered it
    • CFB: encryption produced undecryptable ciphertext for about one session key in 256 (a single 0x30 keystream byte dropped at a block boundary)
    • KeyServer::find_keyblock_by_uid reads SKS/Hockeypuck index entries by fingerprint or 64-bit key ID
  • Breaking Changes
    • Overriding incompatibilities: $Crypt::OpenPGP::Message::MAX_PACKETS and $Crypt::OpenPGP::Compressed::MAX_SIZE (0 disables) for the limits; RequireMDC => 0 and MDC => 0 (pgplet --ignore-mdc-error) for MDC. The rest cannot be overridden
  • Detailed Changelog
    • 1782e2f Increment version
    • 6b42d83 Provide a status for the module
    • e977074 CFB: stop dropping a keystream remainder of one 0x30 byte
    • 82e59ca RSA: verifying a signature altered the signature
    • 503ab4d Fixes CVE-2026-137701: user IDs reported without a valid self-certification
    • 2560a40 Fixes CVE-2026-134869: pgplet exited successfully after a failed signature check
    • bfd1d7d Fixes CVE-2026-134760: verify() reported a valid signature for data that was not signed
    • d7ba121 Fixes CVE-2026-134729: whitespace could be added to signed data
    • 908d64e Fixes CVE-2026-134728: subkeys used without a valid binding signature
    • 9051cd1 Fixes CVE-2026-134727: messages without an MDC accepted, and produced by default
    • 5d1d3bc Fixes CVE-2026-134725: verify() and decrypt() die on malformed input
    • baa36d1 Fixes CVE-2026-134622: 32-bit short key IDs accepted in key lookup
    • 3932734 Fixes CVE-2026-125429: verify() accepts any signature type as a document signature
    • 355edb6 Fixes CVE-2026-107442 prevent decompression bomb

Documentation

Modules

Pure-Perl OpenPGP implementation
ASCII Armouring and Unarmouring
Binary in/out buffer
PGP Cipher Feedback Mode
PGP Key certificate
PGP symmetric cipher factory
Encrypted data packet
Compressed data packets
Exportable constants
PGP message digest factory
Crypt::OpenPGP error handling
OpenPGP key factory
Key block object
Key ring object
Interface to HKP keyservers
MDC (modification detection code) packet
PGP Marker packet
Sequence of PGP packets
One-Pass Signature packet
Parse and save PGP packet streams
A plaintext, literal-data packet
String-to-key generation
Symmetric-Key Encrypted Session Key
Encrypted Session Key
Signature packet
PGP Trust packet
PGP User ID packet
Miscellaneous utility functions
Create English-word encodings

Provides

in lib/Crypt/OpenPGP/Cipher.pm
in lib/Crypt/OpenPGP/Cipher.pm
in lib/Crypt/OpenPGP/Cipher.pm
in lib/Crypt/OpenPGP/Cipher.pm
in lib/Crypt/OpenPGP/Cipher.pm
in lib/Crypt/OpenPGP/Cipher.pm
in lib/Crypt/OpenPGP/Cipher.pm
in lib/Crypt/OpenPGP/Cipher.pm
in lib/Crypt/OpenPGP/Config.pm
in lib/Crypt/OpenPGP/Config.pm
in lib/Crypt/OpenPGP/Config.pm
in lib/Crypt/OpenPGP/Config.pm
in lib/Crypt/OpenPGP/Digest.pm
in lib/Crypt/OpenPGP/Digest.pm
in lib/Crypt/OpenPGP/Digest.pm
in lib/Crypt/OpenPGP/Digest.pm
in lib/Crypt/OpenPGP/Digest.pm
in lib/Crypt/OpenPGP/Digest.pm
in lib/Crypt/OpenPGP/Digest.pm
in lib/Crypt/OpenPGP/Key/Secret/ElGamal.pm
in lib/Crypt/OpenPGP/Key/Public/ElGamal.pm
in lib/Crypt/OpenPGP/Key/Public.pm
in lib/Crypt/OpenPGP/Key/Public/DSA.pm
in lib/Crypt/OpenPGP/Key/Public/ElGamal.pm
in lib/Crypt/OpenPGP/Key/Public/RSA.pm
in lib/Crypt/OpenPGP/Key/Secret.pm
in lib/Crypt/OpenPGP/Key/Secret/DSA.pm
in lib/Crypt/OpenPGP/Key/Secret/ElGamal.pm
in lib/Crypt/OpenPGP/Key/Secret/RSA.pm
in lib/Crypt/OpenPGP/S2k.pm
in lib/Crypt/OpenPGP/S2k.pm
in lib/Crypt/OpenPGP/S2k.pm
in lib/Crypt/OpenPGP/Signature/SubPacket.pm
in lib/Crypt/OpenPGP/UserAttribute.pm