Skip to main content

ImageMagick EUVDEUVD-2026-40449

| CVE-2026-56369 MEDIUM
Reusing a Nonce, Key Pair in Encryption (CWE-323)
2026-06-30 VulnCheck GHSA-vgqj-4jhr-3wh5
6.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify target using PasskeyEncipherImage
  2. Delivery
    Collect two or more encrypted image files
  3. Exploit
    Confirm shared (key, nonce) context
  4. Execution
    XOR ciphertext blobs to cancel keystream
  5. Impact
    Recover plaintext image content

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Nonce/key pair uniqueness
Exploitation Conditions

Exploitation requires that the target deployment actively use ImageMagick's PasskeyEncipherImage feature to encrypt image files - organizations that do not invoke this specific method are not exposed. The nonce reuse must occur across at least two encryption operations sharing the same key, which depends on how the application derives and manages nonces (e.g., a static or sequential nonce in the calling code). The attacker must obtain at least two ciphertexts produced under the same (key, nonce) pair, implying read access to encrypted image files or their transmission medium. The CVSS 4.0 AT:P metric confirms that preconditions beyond the attacker's direct control must align. Exploitation is limited to confidentiality: no code execution, no integrity modification, and no availability impact are achievable through this vector. Non-default configuration (use of PasskeyEncipherImage) and the need for multiple same-nonce ciphertexts are the primary limiting factors for defenders assessing realistic exposure.

Impact

The CVSS 4.0 score of 6.3 reflects a meaningful but bounded risk: AV:N indicates the attack is network-reachable (encrypted images can traverse networks), AC:H signals high attack complexity, and AT:P confirms that specific preconditions must be met beyond the attacker's direct control. VC:L maps to partial confidentiality loss within the vulnerable system, with no integrity or availability impact. The high complexity and attack-prerequisite metrics align with the real-world requirement that an attacker must obtain two or more ciphertexts encrypted under the same (key, nonce) pair - a condition that may arise through backup systems, file-sharing workflows, or API reuse patterns but is not guaranteed in default deployments. There is no CISA KEV listing and no known public exploit code, which substantially reduces near-term operational urgency. This is not a low-CVSS, high-real-risk scenario; rather, it is a moderate finding where the CVSS score and real-world exploitability are roughly aligned. Organizations using PasskeyEncipherImage for sensitive data at rest or in transit should treat this as a priority patch, while those not using image encryption features are not materially exposed.

Exploit ScenarioDerived

An attacker who can collect two or more image files encrypted with ImageMagick's PasskeyEncipherImage using the same passkey and nonce - for example, by monitoring a file-sharing endpoint, cloud storage bucket, or backup pipeline - XORs the raw ciphertext blobs to obtain the XOR of the two plaintexts. Using standard image-structure knowledge (e.g., predictable headers, color patterns, or repeated regions), the attacker reconstructs one or both original images. No public proof-of-concept code is known at time of analysis, though the attack technique is well-documented in cryptographic literature.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 30, 2026

Nonce reuse in ImageMagick's AES-CTR cipher implementation exposes encrypted image plaintext to recovery attacks. The PasskeyEncipherImage method in ImageMagick before 7.1.2-22 reuses nonces when performing AES in Counter mode, violating the fundamental security requirement that a nonce be used exactly once per key. A network-accessible attacker who can collect multiple ciphertexts produced with the same passkey and nonce can XOR the outputs to cancel the shared keystream and partially or fully recover encrypted image content. No active exploitation has been identified (not in CISA KEV), and no public exploit code is known at time of analysis.

RemediationAI

Upgrade ImageMagick to version 7.1.2-22 or later, which resolves the AES-CTR nonce reuse in PasskeyEncipherImage. The authoritative patch reference is the GitHub Security Advisory GHSA-qv2q-c278-pch5 at https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qv2q-c278-pch5. For deployments where immediate patching is not possible, the most targeted compensating control is to cease use of the PasskeyEncipherImage feature entirely - encrypted image processing can be deferred or offloaded to external, vetted encryption tooling (e.g., libsodium-based wrappers) without loss of core ImageMagick functionality. If image encryption must continue pre-patch, ensure that each encryption operation uses a unique, cryptographically random nonce and that no two images share the same passkey and session context - though this mitigation requires application-layer changes and may not be feasible without code modification. Note that discontinuing PasskeyEncipherImage will break any existing workflows relying on ImageMagick's native image encryption; plan decryption of existing encrypted assets prior to disabling.

Affected VersionsENISA

ImageMagick 0 <7.1.2-22
ImageMagick 0 <6.9.13-47

Affected Packages

nuget magick.net-q16-anycpu fix: 14.12.0
nuget magick.net-q16-arm64 fix: 14.12.0
nuget magick.net-q16-hdri-anycpu fix: 14.12.0
nuget magick.net-q16-hdri-arm64 fix: 14.12.0
nuget magick.net-q16-hdri-openmp-arm64 fix: 14.12.0
nuget magick.net-q16-hdri-x64 fix: 14.12.0
nuget magick.net-q16-hdri-x86 fix: 14.12.0
nuget magick.net-q16-openmp-arm64 fix: 14.12.0
nuget magick.net-q16-openmp-x64 fix: 14.12.0
nuget magick.net-q16-x64 fix: 14.12.0
nuget magick.net-q16-x86 fix: 14.12.0
nuget magick.net-q8-anycpu fix: 14.12.0
nuget magick.net-q8-arm64 fix: 14.12.0
nuget magick.net-q8-openmp-arm64 fix: 14.12.0
nuget magick.net-q8-openmp-x64 fix: 14.12.0
nuget magick.net-q8-x64 fix: 14.12.0
nuget magick.net-q8-x86 fix: 14.12.0
euvd imagemagick fix: 6.9.13-47, 7.1.2-22

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 18 packages in nuget, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

AES-CTR (Counter Mode) is a stream-cipher construction where plaintext is XORed with a keystream derived from AES(key, nonce || counter). The critical property of CTR mode is that reusing the same (key, nonce) pair across two plaintexts means both share an identical keystream - XORing the two resulting ciphertexts cancels the keystream entirely, yielding the XOR of the two plaintexts, from which both can often be recovered statistically or structurally. CWE-323 (Reusing a Nonce, Key Pair in Encryption) precisely classifies this root cause. The affected function is PasskeyEncipherImage, ImageMagick's built-in image-encryption feature, identified via CPE cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* covering all versions prior to the fix. The vulnerability is cryptographic in nature - not a memory-safety or injection issue - meaning it leaves no crash signature and may be difficult to detect in logs.

Know when Imagemagick gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.3 MEDIUM
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
vuln.today AI 3.7 LOW

Network vector because encrypted images traverse networks; AC:H for required same-nonce ciphertext collection; PR:N since no authentication to ImageMagick itself is needed; C:L for partial plaintext recovery only.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
SUSE 3.7 LOW
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Red Hat 3.7 LOW

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jul 01, 2026 - 02:16 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
High
widely used open-source image processing library across Linux, containers, and CMS stacks
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2016-3714 HIGH POC
8.4 May 05

The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.

CVE-2016-3718 MEDIUM POC
5.5 May 05

The (1) HTTP and (2) FTP coders in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allow remote attackers to conduct

CVE-2016-3715 MEDIUM POC
5.5 May 05

The EPHEMERAL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to delete arbitrary fi

CVE-2017-15277 MEDIUM POC
6.5 Oct 12

ReadGIFImage in coders/gif.c in ImageMagick 7.0.6-1 and GraphicsMagick 1.3.26 leaves the palette uninitialized when proc

CVE-2016-5841 CRITICAL POC
9.8 Dec 13

Integer overflow in MagickCore/profile.c in ImageMagick before 7.0.2-1 allows remote attackers to cause a denial of serv

CVE-2016-3717 MEDIUM POC
5.5 May 05

The LABEL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to read arbitrary files vi

CVE-2016-5118 CRITICAL
9.8 Jun 10

The OpenBlob function in blob.c in GraphicsMagick before 1.3.24 and ImageMagick allows remote attackers to execute arbit

CVE-2016-5689 CRITICAL POC
9.8 Dec 13

The DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to have unspecified impact b

CVE-2016-5690 CRITICAL POC
9.8 Dec 13

The ReadDCMImage function in DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to

CVE-2016-5691 CRITICAL POC
9.8 Dec 13

The DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to have unspecified impact b

CVE-2026-122006 CRITICAL POC
9.8 Nov 04

Unauthenticated attackers can write arbitrary files on a Ruby on Rails host and, when Active Storage uses the Disk servi

CVE-2017-14138 CRITICAL POC
9.8 Sep 04

ImageMagick 7.0.6-5 has a memory leak vulnerability in ReadWEBPImage in coders/webp.c because memory is not freed in cer

Vendor StatusVendor

SUSE

Severity: Low
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP7 Affected
SUSE Linux Enterprise Module for Development Tools 15 SP7 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP7 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy