Vulnerability · Published Mar 23, 2023 · Assigned by redhat
CVE-2023-1289
Medium 5.5
In plain English
A medium-severity improper input validation in ImageMagick. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | imagemagick | 8:6.9.11.60+dfsg-1.6+deb12u1 | DEBIAN-CVE-2023-1289 |
| Debian:12 | imagemagick | 8:6.9.11.60+dfsg-1.6+deb12u1 | DSA-5628-1 |
| Debian:13 | imagemagick | 8:6.9.12.98+dfsg1-2 | DEBIAN-CVE-2023-1289 |
| Debian:14 | imagemagick | 8:6.9.12.98+dfsg1-2 | DEBIAN-CVE-2023-1289 |
| NuGet | magick.net-q16-anycpu | 13.0.0 | GHSA-j96m-mjp6-99xr |
| NuGet | magick.net-q16-arm64 | 13.0.0 | GHSA-j96m-mjp6-99xr |
| NuGet | magick.net-q16-hdri-anycpu | 13.0.0 | GHSA-j96m-mjp6-99xr |
| NuGet | magick.net-q16-hdri-arm64 | 13.0.0 | GHSA-j96m-mjp6-99xr |
| NuGet | magick.net-q16-hdri-openmp-arm64 | 13.0.0 | GHSA-j96m-mjp6-99xr |
| NuGet | magick.net-q16-hdri-openmp-x64 | 13.0.0 | GHSA-j96m-mjp6-99xr |
| NuGet | magick.net-q16-hdri-x64 | 13.0.0 | GHSA-j96m-mjp6-99xr |
| NuGet | magick.net-q16-hdri-x86 | 13.0.0 | GHSA-j96m-mjp6-99xr |
| NuGet | magick.net-q16-openmp-arm64 | 13.0.0 | GHSA-j96m-mjp6-99xr |
| NuGet | magick.net-q16-openmp-x64 | 13.0.0 | GHSA-j96m-mjp6-99xr |
| NuGet | magick.net-q16-openmp-x86 | 13.0.0 | GHSA-j96m-mjp6-99xr |
| NuGet | magick.net-q16-x64 | 13.0.0 | GHSA-j96m-mjp6-99xr |
| NuGet | magick.net-q16-x86 | 13.0.0 | GHSA-j96m-mjp6-99xr |
| NuGet | magick.net-q8-anycpu | 13.0.0 | GHSA-j96m-mjp6-99xr |
| NuGet | magick.net-q8-arm64 | 13.0.0 | GHSA-j96m-mjp6-99xr |
| NuGet | magick.net-q8-openmp-arm64 | 13.0.0 | GHSA-j96m-mjp6-99xr |
| NuGet | magick.net-q8-openmp-x64 | 13.0.0 | GHSA-j96m-mjp6-99xr |
| NuGet | magick.net-q8-x64 | 13.0.0 | GHSA-j96m-mjp6-99xr |
| NuGet | magick.net-q8-x86 | 13.0.0 | GHSA-j96m-mjp6-99xr |
| Ubuntu:22.04:LTS | imagemagick | 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5 | USN-6200-2 |
| Ubuntu:22.04:LTS | imagemagick | 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5 | UBUNTU-CVE-2023-1289 |
| Ubuntu:24.04:LTS | imagemagick | 8:6.9.11.60+dfsg-1.6ubuntu1 | UBUNTU-CVE-2023-1289 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | ImageMagick | Fixed-in ImageMagick v7.1.1-0 |
Weakness: CWE-20
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
- [debian-lts-announce] 20240222 [SECURITY] [DLA 3737-1] imagemagick security update mailing-list