CVE-2016-3718: ImageMagick Server-Side Request Forgery (SSRF)
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)
- 76%
- 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-3718 explained
CVE-2016-3718 is a server-side request forgery (SSRF) flaw in the HTTP and FTP coders of ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1. A crafted image can make the processing system send requests chosen by an attacker. CISA lists it as a known exploited vulnerability, so affected systems should be treated as a priority.
Impact
An attacker who gets a crafted image processed by a vulnerable ImageMagick can trigger server-side requests over HTTP or FTP. This may let them reach resources the processing host can access. The CVSS vector rates integrity impact as high, with no confidentiality or availability impact. It requires user interaction, such as opening or converting the image. No privileges are needed.
Who is affected
The facts list two source packages, imagemagick and graphicsmagick, on Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. Both releases are end of life. Fixed versions exist in the standard archive. On Ubuntu 14.04 LTS they 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.
Written with AI from the data on this page and checked against it automatically.
Official description
The (1) HTTP and (2) FTP coders in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allow remote attackers to conduct server-side request forgery (SSRF) attacks 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
- Identify hosts that have
imagemagickorgraphicsmagickinstalled, especially services that process untrusted images. - Update these packages to the fixed version listed for your release, or later.
- Restart services and long-running processes that use these libraries so they load the updated code.
- Plan an upgrade from Ubuntu 14.04 LTS and Ubuntu 16.04 LTS to a supported release, because both are end of life.
- Restrict outbound network access from image-processing hosts to limit what forged requests can reach.
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-918 Server-Side Request Forgery (SSRF)
Questions about CVE-2016-3718
- Is this vulnerability being exploited?
- Yes. CISA added CVE-2016-3718 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 restart anything after updating?
- Yes. Services and applications that use ImageMagick or GraphicsMagick keep running the old code until they are restarted. Restart them after the package update.
- My release is end of life. What should I do?
- Ubuntu 14.04 LTS and Ubuntu 16.04 LTS have fixed packages in the standard archive, so install them now. Both releases are end of life, so also plan an upgrade to a supported release.
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.