CVE-2026-134622
Received Received - Intake

OpenPGP Perl Library Key ID Collision Vulnerability

Vulnerability report for CVE-2026-134622, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-05

Last updated on: 2026-12-05

Assigner: CPANSec

Description

Crypt::OpenPGP versions before 1.22 for Perl let a key with a colliding short key ID stand in for the intended key in encrypt and verify. find_keyblock_by_keyid matches a key when the trailing bytes of its key ID equal the ID given, however short. key_by_id falls back to the last 4 bytes when the full 8-byte key ID has no match. The key server lookup cuts the key ID to its last 4 bytes before querying and takes the first key returned. No lookup compares a fingerprint. encrypt treats a Recipients entry of 8 hex digits as a 4-byte key ID and encrypts to every key in the keyring whose ID ends in those bytes. verify fetches the signer's key from the key server by its last 4 bytes when AutoKeyRetrieve is set and the keyring has no match. An attacker who places a key with a colliding 32-bit key ID in the keyring or on the key server in use gets a copy of each message encrypted to the short ID, and has signatures made with that key reported valid under a user ID of their choosing.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-05
Last Modified
2026-12-05
Generated
2026-12-06
AI Q&A
2026-12-06
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-187 The product performs a comparison that only examines a portion of a factor before determining whether there is a match, such as a substring, leading to resultant weaknesses.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in Crypt::OpenPGP versions before 1.22 for Perl allows an attacker to substitute a malicious key with a colliding short key ID for the intended recipient's key during encryption or verification. The system matches keys based on the trailing bytes of the key ID, enabling an attacker to place a key with a matching 32-bit key ID in the keyring or key server. Messages encrypted to the short ID are then sent to the attacker's key, and signatures made with that key are falsely reported as valid.

Detection Guidance

This vulnerability involves weak key ID matching in Crypt::OpenPGP. To detect it, inspect keyrings for keys with colliding short key IDs using commands like gpg --list-keys or gpg --fingerprint. Check for keys with identical last 4 bytes of their key ID.

Impact Analysis

If exploited, this vulnerability could lead to unauthorized access to encrypted messages intended for others, as attackers can intercept and decrypt them using their malicious key. It also allows attackers to forge valid signatures under a user ID of their choice, potentially misleading recipients about the authenticity of signed messages or documents.

Compliance Impact

This vulnerability could violate compliance requirements that mandate secure encryption and non-repudiation of data, such as GDPR's data protection principles or HIPAA's integrity and confidentiality rules. Unauthorized decryption or forged signatures may result in data breaches or legal liabilities due to compromised message authenticity and confidentiality.

Mitigation Strategies

Upgrade Crypt::OpenPGP to version 1.22 or later to address the key ID collision issue. Remove any keys with colliding short key IDs from your keyring and key server.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-134622. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...