CVE-2016-3715: ImageMagick Arbitrary File Deletion
ImageMagick · listed in the CISA catalog of actively exploited vulnerabilities since 2021-11-03.
- CVSS v3.1 (CVE record)
- 5.5
- medium
- EPSS (exploit probability, 30 days)
- 75%
- higher than 99.5% of all CVEs
- Added to CISA KEV
- 2021-11-03
- US federal due date 2022-05-03
- Ubuntu priority
- medium
CVE-2016-3715 explained
CVE-2016-3715 is a flaw in the EPHEMERAL coder of ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1. A crafted image can cause arbitrary files to be deleted when it is processed. The vulnerability is listed in the CISA Known Exploited Vulnerabilities catalog, so it has been exploited in practice.
Impact
An attacker who gets a crafted image processed by a vulnerable ImageMagick can delete arbitrary files that the processing account can access. Confidentiality and availability ratings are none, but the integrity impact is high. Exploitation needs no privileges, but user interaction is required, such as opening or converting the image. Services that process untrusted uploaded images are the most exposed.
Who is affected
Ubuntu 14.04 LTS and Ubuntu 16.04 LTS are listed as affected for the source packages imagemagick and graphicsmagick. All listed rows have fixed versions in the standard archive. On Ubuntu 14.04 LTS these are 8:6.7.7.10-6ubuntu3.1 for imagemagick and 1.3.18-1ubuntu3.1 for graphicsmagick. On Ubuntu 16.04 LTS they are 8:6.8.9.9-7ubuntu5.1 for imagemagick and 1.3.23-1ubuntu0.1 for graphicsmagick. Both releases are end of life.
Written with AI from the data on this page and checked against it automatically.
Official description
The EPHEMERAL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to delete arbitrary files via a crafted image.
CISA required action: Apply updates per vendor instructions.
CISA notes
Ubuntu and Debian releases
A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.
Ubuntu 16.04 LTS·graphicsmagick
ESM ended
Fixed: 1.3.23-1ubuntu0.1
Ubuntu 16.04 LTS·imagemagick
ESM ended
Fixed: 8:6.8.9.9-7ubuntu5.1
Ubuntu 14.04 LTS·graphicsmagick
ESM ended
Fixed: 1.3.18-1ubuntu3.1
Ubuntu 14.04 LTS·imagemagick
ESM ended
Fixed: 8:6.7.7.10-6ubuntu3.1
What to do
- Check the installed versions of
imagemagickandgraphicsmagickpackages on each host. - Update to at least the fixed version listed for your release.
- Restart services and long-running processes that use ImageMagick or GraphicsMagick so they load the fixed libraries.
- Plan an upgrade from end-of-life Ubuntu 14.04 LTS and Ubuntu 16.04 LTS to a supported release.
- Limit processing of untrusted images where possible until hosts are updated.
Written with AI from the data on this page and checked against it automatically.
Check and fix on a server
Run on each Ubuntu or Debian server. Replace imagemagick with the source package from the table above (this CVE affects 2 source packages).
1. Show installed packages built from the source package, with their versions
dpkg-query -W -f='${binary:Package} ${Version} ${source:Package}\n' | awk '$3=="imagemagick"'2. Compare each installed version with the fixed version for your release from the table
I=INSTALLED_VERSION; F=FIXED_VERSION # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac3. Install the fix
sudo apt update && sudo apt install --only-upgrade $(dpkg-query -W -f='${binary:Package} ${source:Package}\n' | awk '$2=="imagemagick"{print $1}')Services keep running the old code until they are restarted – restart the affected service or check with needrestart.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- No – each attack needs manual steps
- Technical impact
- Partial – limited control or information
Weakness: CWE-552 Files or Directories Accessible to External Parties
Questions about CVE-2016-3715
- Is this vulnerability exploited in practice?
- Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2021-11-03. The required action is to apply updates per vendor instructions. Ransomware use is listed as unknown.
- Do I need to reboot after updating?
- A reboot is not required for this userspace fix. Restart any services or processes that use ImageMagick or GraphicsMagick, because they keep running the old code until restarted.
- My hosts run Ubuntu 14.04 LTS or 16.04 LTS. Is updating enough?
- Installing the fixed packages addresses this CVE. Both releases are end of life, so you should also upgrade them to a supported Ubuntu release to keep receiving security fixes.
Written with AI from the data on this page and checked against it automatically.
References
Vendor
Other advisories
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.