CVE-2026-56369

ImageMagick - Information Disclosure via AES-CTR Nonce Reuse in PasskeyEncipherImage

Published Jun 30, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
ImageMagick before 7.1.2-22 contains an information disclosure vulnerability in the PasskeyEncipherImage method due to AES-CTR nonce reuse. Attackers can exploit nonce reuse in the cipher implementation to recover plaintext information from encrypted images.

Analysis

AI-generated

Technical impact

The vulnerability is an improper handling of cryptographic parameters in ImageMagick versions prior to 7.1.2-22. The PasskeyEncipherImage routine reuses the AES-CTR nonce when decrypting images, which allows an attacker to recover XOR‑masked plaintext from the ciphertext using standard nonce‑reuse cryptanalysis. This results in disclosure of hidden or embedded data that the image is meant to protect, exposing potentially confidential information to anyone who can obtain the encrypted image. The weakness maps to CWE‑323, Improper Validation or Handling of Cryptographic Keys.

Affected Systems

ImageMagick installation is affected. Any version earlier than 7.1.2‑22 is vulnerable. The vulnerability is present in all distribution packages that include the PasskeyEncipherImage method, typically embedded in the core library used by image processing applications.

Risk and Exploitability

The CVSS score of 6.3 indicates a moderate severity, primarily due to the lack of a direct remote code execution path. Exploitation requires the attacker to supply or influence the choice of an encrypted image processed by the vulnerable routine. Because the flaw leverages nonce reuse, once the image is processed, the attacker can recover plaintext without further interaction. The EPSS score is not available, and the vulnerability is not listed in CISA KEV, suggesting that no widespread active exploitation has been documented. Nonetheless, the potential for sensitive data leakage warrants prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to version 7.1.2-22 or later.
  • Restrict or remove usage of the PasskeyEncipherImage method on untrusted image inputs.
  • Implement nonce validation or enforce unique nonce generation for AES-CTR encryption in image processing workflows.

Generated by OpenCVE AI on June 30, 2026 at 23:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description ImageMagick before 7.1.2-22 contains an information disclosure vulnerability in the PasskeyEncipherImage method due to AES-CTR nonce reuse. Attackers can exploit nonce reuse in the cipher implementation to recover plaintext information from encrypted images.
Title ImageMagick - Information Disclosure via AES-CTR Nonce Reuse in PasskeyEncipherImage
First Time appeared Imagemagick
Imagemagick imagemagick
Weaknesses CWE-323
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Vendors & Products Imagemagick
Imagemagick imagemagick
References
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N'}

cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-323

    Reusing a Nonce, Key Pair in Encryption

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 9:15 PM
Reserved
Jun 21, 2026, 2:05 AM
Status
Analyzed
Published
Jun 30, 2026, 11:17 PM
Modified
Oct 29, 2026, 9:17 PM
Severity
Low
Public date
Jun 30, 2026, 10:08 PM