Skip to main content
Vulnerability Database/CVE-2026-61855

CVE-2026-61855: Zammad PGP Signature Verification Flaw

CVE-2026-61855 is an information disclosure flaw in Zammad that allows PGP-signed emails to display invalid signature verification. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-61855 Overview

CVE-2026-61855 affects Zammad, a web-based open source helpdesk and customer support system. Under certain conditions, Zammad's inbound Pretty Good Privacy (PGP) signature verification marks a message as carrying a valid signature from a registered sender key, even when the displayed message content is not actually covered by that signature. The flaw allows an attacker to reuse an opaque signed PGP block from a trusted sender while displaying arbitrary content to the recipient. Agents who rely on the signature indicator to assess message trustworthiness can be misled into acting on forged or substituted content. The issue is fixed in version 7.1.2.

Critical Impact

Agents viewing inbound email can see a "Good" PGP signature indicator on messages whose displayed content was never signed by the asserted sender, enabling signature substitution and sender impersonation.

Affected Products

  • Zammad 7.0.3
  • Zammad 7.1.1
  • Zammad versions prior to 7.1.2

Discovery Timeline

  • 2026-09-25 - CVE-2026-61855 published to the National Vulnerability Database (NVD)
  • 2026-09-28 - Last updated in NVD database

Technical Details for CVE-2026-61855

Vulnerability Analysis

The weakness is an Improper Verification of Cryptographic Signature issue [CWE-347] in Zammad's inbound secure mailing pipeline. Zammad accepted PGP signatures in both the standard RFC 3156 detached form and in a non-standard opaque (inline) form that embeds the signed data inside the PGP message block. For opaque signatures, gpg --verify validates the content embedded inside the blob rather than the body shown to the agent. Zammad previously treated a successful verification of the embedded content as a valid signature over the displayed article, with no comparison between the two.

An attacker who obtains any previously opaque-signed PGP message from a sender whose key is registered in Zammad can resend it with arbitrary surrounding or displayed body content. The inbound article is stored with a successful signature status, and the agent interface shows the message as authentically signed by the trusted sender.

Root Cause

The root cause lives in lib/secure_mailing/pgp/tool/data.rb. The pre-patch logic branched on the presence of -----BEGIN PGP MESSAGE----- and invoked gpg verify with only the signature file. GPG then verified the embedded payload, but Zammad never confirmed that the embedded payload matched the article content rendered to agents. This gap enabled signature substitution against any registered sender key.

Attack Vector

Exploitation requires network delivery of a crafted email and user interaction, since the misleading signature indicator only causes harm when an agent reads the article. No authentication to Zammad is required. The attacker reuses an opaque-signed PGP block from a trusted correspondent and attaches or presents arbitrary content for display.

ruby
        signature_file.write(signature)
        signature_file.close

-        # Inline (opaque) signatures embed the signed data inside the PGP message.
-        # gpg --verify accepts only the signature file in that case; passing a
-        # separate data file would cause gpg to treat it as a detached signature
-        # and fail with a format error.
-        if signature.to_s.strip.start_with?('-----BEGIN PGP MESSAGE-----')
-          gpg('verify', options:, arguments: [signature_file.path])
-        else
+        if signature.to_s.include?('-----BEGIN PGP SIGNATURE-----')
+          # Standard RFC 3156 detached signature: GPG verifies against the supplied data.
           verify_with_data_file(options, data, signature_file.path)
+        elsif signature.to_s.include?('-----BEGIN PGP MESSAGE-----')
+          # Non-standard opaque (inline) signature: GPG verifies the content embedded
+          # inside the blob, not the supplied data. We must also check that the embedded
+          # content matches the displayed body to prevent signature substitution attacks
+          # where an attacker reuses an old opaque signed message for arbitrary content.
+          verify_opaque_signature(options, data, signature_file_path)
+        else
+          raise __('Invalid signature format: expected a PGP signature')
        end

Source: GitHub Zammad Commit dd22716. The patch routes opaque signatures through a dedicated verify_opaque_signature helper that compares the embedded signed content against the displayed body and rejects anything else as an invalid signature format.

Detection Methods for CVE-2026-61855

Indicators of Compromise

  • Inbound email articles stored with a "Good" PGP signature status whose body text contains an inline -----BEGIN PGP MESSAGE----- block instead of a detached -----BEGIN PGP SIGNATURE----- block.
  • Repeated inbound messages from the same registered PGP sender that reuse identical opaque signature payloads across different message bodies or timestamps.
  • Mismatches between the article body visible in Zammad and the plaintext extracted from the embedded PGP message block.

Detection Strategies

  • Review secure_mailing processing logs on Zammad 7.0.3 and 7.1.1 for verifications that took the opaque (inline) branch of lib/secure_mailing/pgp/tool/data.rb.
  • Hunt historical mail for signed messages from registered PGP senders where the signed PGP block is inline rather than detached, and flag any case where the embedded content differs from the stored article body.
  • Correlate agent actions, such as credential disclosure, financial changes, or privileged ticket updates, with inbound tickets whose signature indicator may have been forged.

Monitoring Recommendations

  • Alert on Zammad instances still running 7.0.3 or 7.1.1 after the 7.1.2 release window.
  • Monitor mail gateway logs for inbound messages containing -----BEGIN PGP MESSAGE----- directed at Zammad channel addresses and triage them against expected sender behavior.
  • Track changes to the secure_mailing/pgp code path and the PGP keyring to detect unexpected key additions or verification regressions.

How to Mitigate CVE-2026-61855

Immediate Actions Required

  • Upgrade all Zammad instances to version 7.1.2 or later, which enforces body-to-signature content matching for opaque PGP messages.
  • Audit tickets created on 7.0.3 and 7.1.1 that display a valid PGP signature indicator, with priority on those that drove agent action.
  • Notify helpdesk agents that the PGP "Good signature" indicator on affected versions does not guarantee that the displayed body was signed.

Patch Information

The fix is delivered in Zammad 7.1.2 via commit dd22716. The patch replaces the single-branch opaque verification with explicit handling for RFC 3156 detached signatures, a dedicated verify_opaque_signature routine that validates the embedded content against the supplied body, and a hard rejection path that raises Invalid signature format: expected a PGP signature for anything else. See the GitHub Security Advisory GHSA-r957-vp26-563q and the GitHub Zammad Commit dd22716 for full technical context.

Workarounds

  • Temporarily disable PGP signature verification on inbound channels until 7.1.2 is deployed, and treat all inbound mail as unsigned during triage.
  • Instruct trusted correspondents to send only RFC 3156 detached PGP signatures and reject inbound messages that use inline opaque PGP message blocks.
  • Require out-of-band confirmation for any sensitive request received through Zammad that relies on PGP authenticity for authorization.
bash
# Upgrade Zammad to the patched release (Debian/Ubuntu example)
sudo apt-get update
sudo apt-get install --only-upgrade zammad=7.1.2-*
sudo systemctl restart zammad
zammad run rails runner 'puts Zammad::Version.get'

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.