Vulnerability record · CVE-2022-44268 · published 6 February 2023
CVE-2022-44268: ImageMagick PNG parsing arbitrary file read
Imagemagick · Imagemagick
ImageMagick 7.1.0-49 embeds the contents of an arbitrary local file into the output image when it parses a crafted PNG, for example during a resize. The file is read with the privileges of the magick binary, so any file that process can access may be disclosed. This matters because ImageMagick is widely embedded in web upload and thumbnail pipelines, turning a single crafted image into a file disclosure primitive.
Description
ImageMagick 7.1.0-49 is vulnerable to Information Disclosure. When it parses a PNG image (e.g., for resize), the resulting image could have embedded the content of an arbitrary. file (if the magick binary has permissions to read it).
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Automated analysis
high priorityHigh EPSS and a public exploit write-up make exploitation likely, and the flaw yields direct disclosure of arbitrary readable files, though it requires the target to process a crafted image.
What it is
ImageMagick 7.1.0-49 embeds the contents of an arbitrary local file into the output image when it parses a crafted PNG, for example during a resize. The file is read with the privileges of the magick binary, so any file that process can access may be disclosed. This matters because ImageMagick is widely embedded in web upload and thumbnail pipelines, turning a single crafted image into a file disclosure primitive.
Impact
An attacker gains read access to arbitrary files readable by the ImageMagick process, which can expose configuration files, credentials, source code or other sensitive data. The output image returned to the attacker carries the stolen content.
Attack surface
Reached remotely over the network by supplying a crafted PNG to any service that processes images with ImageMagick; no authentication is required, but the victim or service must process the attacker-supplied image (UI:R).
Exploitation
Not listed in CISA KEV, but EPSS is very high (0.89855, 99.78th percentile) and a public exploit write-up is referenced, indicating active interest and likely exploitation.
What to do
- Upgrade ImageMagick to a version that fixes the PNG arbitrary file read (7.1.0-50 or later per vendor guidance).
- Patch or update dependent packages and distributions (Debian DSA-5347, Fedora advisories) that bundle ImageMagick.
- Run image processing with least privilege and restrict filesystem access so the magick process cannot read sensitive files.
- Sanitize or re-encode untrusted images before processing, and disable or restrict PNG delegate/profile handling where feasible.
Detection
- Monitor ImageMagick processes for unexpected reads of sensitive paths such as /etc/passwd, /etc/shadow, application config or key files.
- Inspect uploaded and generated PNGs for embedded text or profile chunks containing file contents.
- Alert on image-processing commands or services spawning with unusual file access patterns or reading files outside expected image directories.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2022-44268 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2022-44268), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.