CVE-2023-1289 json
ImageMagick: Specially crafted SVG leads to segmentation fault and generate trash files in "/tmp", possible to leverage DoS
published 2023-03-23 3 y ago modified 2026-07-30 3 mo ago also EUVD-2023-23554 , GHSA-j96m-mjp6-99xr , JLSEC-2026-901
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 58%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- nuget Magick.NET-Q16-AnyCPU 13.0.0
- nuget Magick.NET-Q16-HDRI-AnyCPU 13.0.0
- nuget Magick.NET-Q16-HDRI-OpenMP-arm64 13.0.0
- nuget Magick.NET-Q16-HDRI-arm64 13.0.0
- nuget Magick.NET-Q16-HDRI-x64 13.0.0
- nuget Magick.NET-Q16-HDRI-x86 13.0.0
- nuget Magick.NET-Q16-OpenMP-arm64 13.0.0
- nuget Magick.NET-Q16-OpenMP-x64 13.0.0
- nuget Magick.NET-Q16-OpenMP-x86 13.0.0
- nuget Magick.NET-Q16-arm64 13.0.0
- nuget Magick.NET-Q16-x64 13.0.0
- nuget Magick.NET-Q16-x86 13.0.0
- nuget Magick.NET-Q16-HDRI-OpenMP-x64 13.0.0
- nuget Magick.NET-Q8-AnyCPU 13.0.0
- nuget Magick.NET-Q8-OpenMP-arm64 13.0.0
- nuget Magick.NET-Q8-OpenMP-x64 13.0.0
- nuget Magick.NET-Q8-arm64 13.0.0
- nuget Magick.NET-Q8-x64 13.0.0
- nuget Magick.NET-Q8-x86 13.0.0
- julia ImageMagick_jll 7.1.1+0
- imagemagick imagemagick 7.1.1-0
- imagemagick Debian 12 8:6.9.11.60+dfsg-1.6+deb12u1
- imagemagick Debian 14, Debian 13 8:6.9.12.98+dfsg1-2
debian advisories DEBIAN-CVE-2023-1289
- imagemagick Ubuntu 20.04 LTS 8:6.9.10.23+dfsg-2.1ubuntu11.10
- imagemagick Ubuntu 22.04 LTS 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5
- imagemagick Ubuntu 24.04 LTS 8:6.9.11.60+dfsg-1.6ubuntu1
ubuntu advisories UBUNTU-CVE-2023-1289
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- ImageMagick SLE Real Time 15 SP3, openSUSE Leap 15.4 7.0.7.34-150200.10.45.1
- ImageMagick SLES for SAP 12 SP5, SLES 12 SP5, SLE Workstation Extension 12 SP5 +1 more 6.8.8.1-71.186.1
- ImageMagick SLE Module for Development Tools 15 SP4, SLE Module for Desktop Applications 15 SP4, openSUSE Leap 15.4 7.1.0.9-150400.6.15.1
- ImageMagick SLES for SAP 15 SP1, SLES 15 SP1-LTSS, SLE High Performance Computing 15 SP1-LTSS 7.0.7.34-150000.3.123.1
suse advisories SUSE-SU-2023:4634-1SUSE-SU-2023:1756-1SUSE-SU-2023:1734-1SUSE-SU-2023:1733-1
- ImageMagick openSUSE Tumbleweed 7.1.1.17-1.1
opensuse advisories openSUSE-SU-2024:13263-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-1289 updated cvss 5.5
ImageMagick: Specially crafted SVG leads to segmentation fault and generate trash files in "/tmp", possible to leverage DoS
-
Red Hat Enterprise Linux 6 ImageMagick, ImageMagick-c++, ImageMagick-perl Red Hat Enterprise Linux 7 ImageMagick, ImageMagick-c++, ImageMagick-perlaffected: no fix planned “Out of support scope”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.86% chance of exploitation in the next 30 days, higher than 58% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-j96m-mjp6-99xr referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| nuget | Magick.NET-Q16-AnyCPU | <13.0.0 |
13.0.0 |
| nuget | Magick.NET-Q16-HDRI-AnyCPU | <13.0.0 |
13.0.0 |
| nuget | Magick.NET-Q16-HDRI-OpenMP-arm64 | <13.0.0 |
13.0.0 |
| nuget | Magick.NET-Q16-HDRI-arm64 | <13.0.0 |
13.0.0 |
| nuget | Magick.NET-Q16-HDRI-x64 | <13.0.0 |
13.0.0 |
| nuget | Magick.NET-Q16-HDRI-x86 | <13.0.0 |
13.0.0 |
| nuget | Magick.NET-Q16-OpenMP-arm64 | <13.0.0 |
13.0.0 |
| nuget | Magick.NET-Q16-OpenMP-x64 | <13.0.0 |
13.0.0 |
| nuget | Magick.NET-Q16-OpenMP-x86 | <13.0.0 |
13.0.0 |
| nuget | Magick.NET-Q16-arm64 | <13.0.0 |
13.0.0 |
| nuget | Magick.NET-Q16-x64 | <13.0.0 |
13.0.0 |
| nuget | Magick.NET-Q16-x86 | <13.0.0 |
13.0.0 |
| nuget | Magick.NET-Q16-HDRI-OpenMP-x64 | <13.0.0 |
13.0.0 |
| nuget | Magick.NET-Q8-AnyCPU | <13.0.0 |
13.0.0 |
| nuget | Magick.NET-Q8-OpenMP-arm64 | <13.0.0 |
13.0.0 |
| nuget | Magick.NET-Q8-OpenMP-x64 | <13.0.0 |
13.0.0 |
| nuget | Magick.NET-Q8-arm64 | <13.0.0 |
13.0.0 |
| nuget | Magick.NET-Q8-x64 | <13.0.0 |
13.0.0 |
| nuget | Magick.NET-Q8-x86 | <13.0.0 |
13.0.0 |
| julia | ImageMagick_jll | <7.1.1+0 |
7.1.1+0 |
Affected products
- n/a ImageMagick
Classification
References
-
github.com
/ImageMagick/ImageMagick/commit/c5b23cbf2119540725e6dc81f4deb25798ead6a4
web, patch
-
bugzilla.redhat.com
/show_bug.cgi?id=2176858
web, issue-tracking, patch
-
github.com
/ImageMagick/ImageMagick/security/advisories/GHSA-j96m-mjp6-99xr
web, exploit, vendor-advisory
-
lists.debian.org
/debian-lts-announce/2024/02/msg00007.html
mailing-list, web
-
nvd.nist.gov
/vuln/detail/CVE-2023-1289
advisory
-
github.com
/ImageMagick/ImageMagick
package
Sources
- CVE List CVE-2023-1289
- GitHub Advisory GHSA-j96m-mjp6-99xr
- NVD CVE-2023-1289
- OSV JLSEC-2026-901
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.