# CVE-2026-23952: ImageMagick has a NULL pointer dereference in MSL parser via <comment> tag before image load

> Attackers can cause a denial of service in ImageMagick by triggering a NULL pointer dereference in the MSL parser via a crafted comment tag.

- **Severity:** Medium 6.5 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 22 Jan 2026
- **Updated:** 22 Jan 2026
- **Also known as:** DEBIAN-CVE-2026-23952, ECHO-9aa6-b4b5-b059, GHSA-5vx3-wx4q-6cj8, JLSEC-2026-937, MINI-wh8q-w5jj-5jgq, UBUNTU-CVE-2026-23952

## What is CVE-2026-23952?

CVE-2026-23952 is a medium-severity vulnerability in Imagemagick Imagemagick, published on 22 Jan 2026. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

ImageMagick is free and open-source software used for editing and manipulating digital images. Versions 14.10.1 and below have a NULL pointer dereference vulnerability in the MSL (Magick Scripting Language) parser when processing <comment> tags before images are loaded. This can lead to DoS attack due to assertion failure (debug builds) or NULL pointer dereference (release builds). This issue is fixed in version 14.10.2.

Weakness: CWE-476 (NULL Pointer Dereference)

## Which versions are affected by CVE-2026-23952?

38 open source packages ship an affected version, including Magick.NET-Q16-AnyCPU, Magick.NET-Q16-HDRI-AnyCPU and Magick.NET-Q16-HDRI-OpenMP-arm64. It affects 2 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `Magick.NET-Q16-AnyCPU` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-AnyCPU` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-HDRI-AnyCPU` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-HDRI-AnyCPU` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-HDRI-OpenMP-arm64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-HDRI-OpenMP-arm64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-HDRI-OpenMP-x64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-HDRI-OpenMP-x64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-HDRI-arm64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-HDRI-arm64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-HDRI-x64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-HDRI-x64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-HDRI-x86` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-HDRI-x86` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-OpenMP-arm64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-OpenMP-arm64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-OpenMP-x64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-OpenMP-x64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-OpenMP-x86` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-OpenMP-x86` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-arm64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-arm64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-x64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-x64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-x86` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q16-x86` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q8-AnyCPU` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q8-AnyCPU` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q8-OpenMP-arm64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q8-OpenMP-arm64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q8-OpenMP-x64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q8-OpenMP-x64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q8-arm64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q8-arm64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q8-x64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q8-x64` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q8-x86` | NuGet | All versions | 14.10.2 |
| `Magick.NET-Q8-x86` | NuGet | All versions | 14.10.2 |

Products: Dlemstra Magick.net, Imagemagick Imagemagick.

## How do I fix CVE-2026-23952?

Upgrade Magick.NET-Q16-AnyCPU to 14.10.2 or later.

## Is CVE-2026-23952 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-23952 exists.

## Other vulnerabilities in Imagemagick Imagemagick

- [CVE-2026-24485](https://insights.sbomify.com/CVE-2026-24485/): ImageMagick: Infinite loop vulnerability when parsing a PCD file (high 7.5)
- [CVE-2026-24484](https://insights.sbomify.com/CVE-2026-24484/): ImageMagick: Converting multi-layer nested MVG to SVG can cause DoS (medium 5.3)
- [CVE-2026-25637](https://insights.sbomify.com/CVE-2026-25637/): ImageMagick: Possible memory leak in ASHLAR encoder (medium 5.3)
- [CVE-2026-25576](https://insights.sbomify.com/CVE-2026-25576/): ImageMagick: Out of bounds read in multiple coders read raw pixel data (medium 5.1)
- [CVE-2026-27798](https://insights.sbomify.com/CVE-2026-27798/): ImageMagick: Heap Buffer Over-read in WaveletDenoise when processing small images (medium 4.0)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-23952 and fix it if it is affected.

What it is: CVE-2026-23952 is a medium-severity vulnerability in Imagemagick Imagemagick, published on 22 Jan 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-23952 exists.

Affected packages and fixed versions:
- Magick.NET-Q16-AnyCPU (NuGet): affected all versions; fixed in 14.10.2
- Magick.NET-Q16-AnyCPU (NuGet): affected all versions; fixed in 14.10.2
- Magick.NET-Q16-HDRI-AnyCPU (NuGet): affected all versions; fixed in 14.10.2
- Magick.NET-Q16-HDRI-AnyCPU (NuGet): affected all versions; fixed in 14.10.2
- Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet): affected all versions; fixed in 14.10.2
- Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet): affected all versions; fixed in 14.10.2
- Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet): affected all versions; fixed in 14.10.2
- Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet): affected all versions; fixed in 14.10.2
- Magick.NET-Q16-HDRI-arm64 (NuGet): affected all versions; fixed in 14.10.2
- Magick.NET-Q16-HDRI-arm64 (NuGet): affected all versions; fixed in 14.10.2
- Magick.NET-Q16-HDRI-x64 (NuGet): affected all versions; fixed in 14.10.2
- Magick.NET-Q16-HDRI-x64 (NuGet): affected all versions; fixed in 14.10.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-23952/ (Markdown: https://insights.sbomify.com/CVE-2026-23952/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-23952
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-23952
- OSV: https://osv.dev/vulnerability/CVE-2026-23952

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-23952/
Summaries are generated and may contain mistakes; the official description above is the record.
