Skip to content
Fencer Intel
high 7.5

CVE-2021-40211 json

An issue was discovered with ImageMagick 7.1.0-4 via Division by zero in function ReadEnhMetaFile of coders/emf.c.

published 3y ago modified 4mo ago also EUVD-2021-27396

cvss
7.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.0%
EPSS 1.0% chance of exploitation in 30 days, percentile 61%
public exploits
0
none known

Summary

An issue was discovered with ImageMagick 7.1.0-4 via Division by zero in function ReadEnhMetaFile of coders/emf.c.

Patch / fix

  • imagemagick Debian 14, Debian 13, Debian 12 8:6.9.11.60+dfsg-1.5

debian advisories DEBIAN-CVE-2021-40211

  • imagemagick Ubuntu 18.04 LTS 8:6.9.7.4+dfsg-16ubuntu6.14
  • imagemagick Ubuntu 20.04 LTS 8:6.9.10.23+dfsg-2.1ubuntu11.9
  • imagemagick Ubuntu Pro 14.04 LTS 8:6.7.7.10-6ubuntu3.13+esm3
  • imagemagick Ubuntu Pro 16.04 LTS 8:6.8.9.9-7ubuntu5.16+esm4
  • imagemagick Ubuntu Pro 22.04 LTS 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3+esm1

ubuntu advisories UBUNTU-CVE-2021-40211

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 RHEL 7 6.9.10.68-7.el7_9
  • ImageMagick-c++ RHEL 7 6.9.10.68-7.el7_9
  • ImageMagick-perl RHEL 7 6.9.10.68-7.el7_9

red hat advisories RHSA-2023:5461

Is CVE-2021-40211 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

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-2021-40211 updated cvss 7.5

ImageMagick: Division by zero in ReadEnhMetaFile lead to DoS

  • Red Hat Enterprise Linux Client (v. 7) ImageMagick 6.9.10.68-7.el7_9, ImageMagick-c++ 6.9.10.68-7.el7_9, ImageMagick-perl 6.9.10.68-7.el7_9 Red Hat Enterprise Linux Client Optional (v. 7) ImageMagick 6.9.10.68-7.el7_9, ImageMagick-c++ 6.9.10.68-7.el7_9, ImageMagick-perl 6.9.10.68-7.el7_9 Red Hat Enterprise Linux ComputeNode Optional (v. 7) ImageMagick 6.9.10.68-7.el7_9, ImageMagick-c++ 6.9.10.68-7.el7_9, ImageMagick-perl 6.9.10.68-7.el7_9 Red Hat Enterprise Linux Server (v. 7) ImageMagick 6.9.10.68-7.el7_9, ImageMagick-c++ 6.9.10.68-7.el7_9, ImageMagick-perl 6.9.10.68-7.el7_9 Red Hat Enterprise Linux Server Optional (v. 7) ImageMagick 6.9.10.68-7.el7_9, ImageMagick-c++ 6.9.10.68-7.el7_9, ImageMagick-perl 6.9.10.68-7.el7_9 Red Hat Enterprise Linux Workstation (v. 7) ImageMagick 6.9.10.68-7.el7_9, ImageMagick-c++ 6.9.10.68-7.el7_9, ImageMagick-perl 6.9.10.68-7.el7_9
    +1 more products
    Red Hat Enterprise Linux Workstation Optional (v. 7) ImageMagick 6.9.10.68-7.el7_9, ImageMagick-c++ 6.9.10.68-7.el7_9, ImageMagick-perl 6.9.10.68-7.el7_9
    fixed: vendor fix RHSA-2023:5461

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

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
partial
Assessed
2y ago

Exploit prediction

0.95% chance of exploitation in the next 30 days, higher than 61% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

Weakness

References

Sources

Fencer Intel 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.