{"schemaVersion":3,"id":"CVE-2021-40211","aliases":["RHSA-2023:5461","UBUNTU-CVE-2021-40211","DEBIAN-CVE-2021-40211"],"status":"published","duplicateOf":null,"title":null,"description":"An issue was discovered with ImageMagick 7.1.0-4 via Division by zero in function ReadEnhMetaFile of coders/emf.c.","dates":{"published":"2023-08-22T00:00:00.000Z","modified":"2024-10-03T18:11:20.813Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Red hat","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00953,"percentile":0.6066,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.00953},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00953,"percentile":0.6066}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00953,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00953,"percentile":0.6066}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-369","name":"Divide By Zero","description":"The product divides a value by zero.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/369.html"}],"affected":[{"vendor":"debian","product":"imagemagick","name":"imagemagick","label":"imagemagick","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/imagemagick","purlType":"deb","versions":[{"text":"< 8:6.9.11.60+dfsg-1.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8:6.9.11.60+dfsg-1.5","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"imagemagick","name":"imagemagick","label":"imagemagick","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/imagemagick","purlType":"deb","versions":[{"text":"< 8:6.7.7.10-6ubuntu3.13+esm3","noFixRecorded":false,"fixedIn":null},{"text":"< 8:6.8.9.9-7ubuntu5.16+esm4","noFixRecorded":false,"fixedIn":null},{"text":"< 8:6.9.7.4+dfsg-16ubuntu6.14","noFixRecorded":false,"fixedIn":null},{"text":"< 8:6.9.10.23+dfsg-2.1ubuntu11.9","noFixRecorded":false,"fixedIn":null},{"text":"< 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3+esm1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8:6.7.7.10-6ubuntu3.13+esm3 | < 8:6.8.9.9-7ubuntu5.16+esm4 | < 8:6.9.7.4+dfsg-16ubuntu6.14 | < 8:6.9.10.23+dfsg-2.1ubuntu11.9 | < 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3+esm1","eol":null,"hubHref":null},{"vendor":"imagemagick","product":"imagemagick","name":"ImageMagick","label":"imagemagick","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"7.1.0-4","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.1.0-4","eol":null,"hubHref":"/vendor/imagemagick/imagemagick"},{"vendor":"redhat","product":"ImageMagick","name":"ImageMagick","label":"ImageMagick","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/ImageMagick","purlType":"rpm","versions":[{"text":"< 0:6.9.10.68-7.el7_9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:6.9.10.68-7.el7_9","eol":null,"hubHref":null},{"vendor":"redhat","product":"ImageMagick-c++","name":"ImageMagick-c++","label":"ImageMagick-c++","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/ImageMagick-c++","purlType":"rpm","versions":[{"text":"< 0:6.9.10.68-7.el7_9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:6.9.10.68-7.el7_9","eol":null,"hubHref":null},{"vendor":"redhat","product":"ImageMagick-c++-devel","name":"ImageMagick-c++-devel","label":"ImageMagick-c++-devel","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/ImageMagick-c++-devel","purlType":"rpm","versions":[{"text":"< 0:6.9.10.68-7.el7_9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:6.9.10.68-7.el7_9","eol":null,"hubHref":null},{"vendor":"redhat","product":"ImageMagick-debuginfo","name":"ImageMagick-debuginfo","label":"ImageMagick-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/ImageMagick-debuginfo","purlType":"rpm","versions":[{"text":"< 0:6.9.10.68-7.el7_9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:6.9.10.68-7.el7_9","eol":null,"hubHref":null},{"vendor":"redhat","product":"ImageMagick-devel","name":"ImageMagick-devel","label":"ImageMagick-devel","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/ImageMagick-devel","purlType":"rpm","versions":[{"text":"< 0:6.9.10.68-7.el7_9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:6.9.10.68-7.el7_9","eol":null,"hubHref":null},{"vendor":"redhat","product":"ImageMagick-doc","name":"ImageMagick-doc","label":"ImageMagick-doc","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/ImageMagick-doc","purlType":"rpm","versions":[{"text":"< 0:6.9.10.68-7.el7_9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:6.9.10.68-7.el7_9","eol":null,"hubHref":null},{"vendor":"redhat","product":"ImageMagick-perl","name":"ImageMagick-perl","label":"ImageMagick-perl","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/ImageMagick-perl","purlType":"rpm","versions":[{"text":"< 0:6.9.10.68-7.el7_9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:6.9.10.68-7.el7_9","eol":null,"hubHref":null}],"affectedCount":10,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/ImageMagick/ImageMagick/issues/4097","label":"github.com/ImageMagick/ImageMagick/issues/4097","hostname":"github.com","tags":["REPORT","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2023:5461","label":"access.redhat.com/errata/RHSA-2023:5461","hostname":"access.redhat.com","tags":["Advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#important","label":"access.redhat.com/security/updates/classification/","hostname":"access.redhat.com","tags":["ARTICLE"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2235480","label":"bugzilla.redhat.com/show_bug.cgi?id=2235480","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_5461.json","label":"security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_5461.json","hostname":"security.access.redhat.com","tags":["Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-40211","label":"access.redhat.com/security/cve/CVE-2021-40211","hostname":"access.redhat.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-40211","label":"www.cve.org/CVERecord?id=CVE-2021-40211","hostname":"www.cve.org","tags":["Advisory","REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40211","label":"nvd.nist.gov/vuln/detail/CVE-2021-40211","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-40211","label":"ubuntu.com/security/CVE-2021-40211","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-40211","label":"security-tracker.debian.org/tracker/CVE-2021-40211","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-08-22T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-10-03T18:11:20.813Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T08:36:06.929Z","stale":false,"partial":false}}