ImageMagick: Information Disclosure in PasskeyEncipherImage via AES-CTR nonce reuse

Description

The PasskeyEncipherImage method is vulnerable to information disclosure via AES-CTR nonce reuse. ImageMagick has update the documentation on its website to make it more clear that this is happening: https://imagemagick.org/cipher/

Basic information

Type
reviewed
Severity
low
Advisory on GitHub
Open advisory ↗
Repository advisory
Open repository advisory ↗
Source code
Browse source ↗
Published (advisory)
2026-05-21 21:49:09 UTC
Updated
2026-05-21 21:49:10 UTC
GitHub reviewed
2026-05-21 21:49:09 UTC

CVSS Scores

Base score Version Severity Vector
3.7 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.

Identifiers

Type Value
GHSA GHSA-qv2q-c278-pch5 ↗

CWEs

CWE id Name
CWE-323 Reusing a Nonce, Key Pair in Encryption
CWE-330 Use of Insufficiently Random Values

Credits

  • 007bsd (reporter)
  • LuiginoC (reporter)

Affected packages (17)

Vulnerable version ranges and first patched releases as published by GitHub.

Ecosystem Package Vulnerable range First patched Vulnerable functions
nuget Magick.NET-Q16-AnyCPU < 14.12.0 14.12.0
nuget Magick.NET-Q16-HDRI-AnyCPU < 14.12.0 14.12.0
nuget Magick.NET-Q16-HDRI-OpenMP-arm64 < 14.12.0 14.12.0
nuget Magick.NET-Q16-HDRI-arm64 < 14.12.0 14.12.0
nuget Magick.NET-Q16-HDRI-x64 < 14.12.0 14.12.0
nuget Magick.NET-Q16-HDRI-x86 < 14.12.0 14.12.0
nuget Magick.NET-Q16-OpenMP-arm64 < 14.12.0 14.12.0
nuget Magick.NET-Q16-OpenMP-x64 < 14.12.0 14.12.0
nuget Magick.NET-Q16-arm64 < 14.12.0 14.12.0
nuget Magick.NET-Q16-x64 < 14.12.0 14.12.0
nuget Magick.NET-Q16-x86 < 14.12.0 14.12.0
nuget Magick.NET-Q8-AnyCPU < 14.12.0 14.12.0
nuget Magick.NET-Q8-OpenMP-arm64 < 14.12.0 14.12.0
nuget Magick.NET-Q8-OpenMP-x64 < 14.12.0 14.12.0
nuget Magick.NET-Q8-arm64 < 14.12.0 14.12.0
nuget Magick.NET-Q8-x64 < 14.12.0 14.12.0
nuget Magick.NET-Q8-x86 < 14.12.0 14.12.0

References

cvelogic Threat Intelligence