{"api_version":"1","generated_at":"2026-04-23T04:33:35+00:00","cve":"CVE-2021-20224","urls":{"html":"https://cve.report/CVE-2021-20224","api":"https://cve.report/api/cve/CVE-2021-20224.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-20224","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-20224"},"summary":{"title":"CVE-2021-20224","description":"An integer overflow issue was discovered in ImageMagick's ExportIndexQuantum() function in MagickCore/quantum-export.c. Function calls to GetPixelIndex() could result in values outside the range of representable for the 'unsigned char'. When ImageMagick processes a crafted pdf file, this could lead to an undefined behaviour or a crash.","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2022-08-25 20:15:00","updated_at":"2023-03-11 23:15:00"},"problem_types":["CWE-190"],"metrics":[],"references":[{"url":"https://github.com/ImageMagick/ImageMagick/commit/5af1dffa4b6ab984b5f13d1e91c95760d75f12a6","name":"https://github.com/ImageMagick/ImageMagick/commit/5af1dffa4b6ab984b5f13d1e91c95760d75f12a6","refsource":"MISC","tags":[],"title":"outside the range of representable values of type 'unsigned char' (#3… · ImageMagick/ImageMagick@5af1dff · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/ImageMagick/ImageMagick/pull/3083","name":"https://github.com/ImageMagick/ImageMagick/pull/3083","refsource":"MISC","tags":[],"title":"outside the range of representable values of type 'unsigned char' by hifoolno · Pull Request #3083 · ImageMagick/ImageMagick · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html","name":"[debian-lts-announce] 20230311 [SECURITY] [DLA 3357-1] imagemagick security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3357-1] imagemagick security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/ImageMagick/ImageMagick6/commit/553054c1cb1e4e05ec86237afef76a32cd7c464d","name":"https://github.com/ImageMagick/ImageMagick6/commit/553054c1cb1e4e05ec86237afef76a32cd7c464d","refsource":"MISC","tags":[],"title":"https://github.com/ImageMagick/ImageMagick/pull/3083 · ImageMagick/ImageMagick6@553054c · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-20224","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20224","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"20224","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"imagemagick","cpe5":"imagemagick","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-20224","qid":"180975","title":"Debian Security Update for imagemagick (CVE-2021-20224)"},{"cve":"CVE-2021-20224","qid":"181625","title":"Debian Security Update for imagemagick (DLA 3357-1)"},{"cve":"CVE-2021-20224","qid":"199045","title":"Ubuntu Security Notification for ImageMagick Vulnerabilities (USN-5736-1)"},{"cve":"CVE-2021-20224","qid":"199524","title":"Ubuntu Security Notification for ImageMagick Vulnerabilities (USN-6200-1)"},{"cve":"CVE-2021-20224","qid":"354798","title":"Amazon Linux Security Advisory for ImageMagick : ALAS2-2023-1971"},{"cve":"CVE-2021-20224","qid":"354809","title":"Amazon Linux Security Advisory for ImageMagick : ALAS-2023-1696"},{"cve":"CVE-2021-20224","qid":"502534","title":"Alpine Linux Security Update for imagemagick"},{"cve":"CVE-2021-20224","qid":"672609","title":"EulerOS Security Update for imagemagick (EulerOS-SA-2023-1318)"},{"cve":"CVE-2021-20224","qid":"673058","title":"EulerOS Security Update for imagemagick (EulerOS-SA-2023-2149)"},{"cve":"CVE-2021-20224","qid":"752561","title":"SUSE Enterprise Linux Security Update for ImageMagick (SUSE-SU-2022:3138-1)"},{"cve":"CVE-2021-20224","qid":"753205","title":"SUSE Enterprise Linux Security Update for ImageMagick (SUSE-SU-2022:3119-1)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2021-20224","ASSIGNER":"secalert@redhat.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"ImageMagick","version":{"version_data":[{"version_value":"Fixed in ImageMagick-7.0.10-57, ImageMagick6-6.9.11-57"}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-190 - Integer Overflow or Wraparound"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://github.com/ImageMagick/ImageMagick/pull/3083","url":"https://github.com/ImageMagick/ImageMagick/pull/3083"},{"refsource":"MISC","name":"https://github.com/ImageMagick/ImageMagick/commit/5af1dffa4b6ab984b5f13d1e91c95760d75f12a6","url":"https://github.com/ImageMagick/ImageMagick/commit/5af1dffa4b6ab984b5f13d1e91c95760d75f12a6"},{"refsource":"MISC","name":"https://github.com/ImageMagick/ImageMagick6/commit/553054c1cb1e4e05ec86237afef76a32cd7c464d","url":"https://github.com/ImageMagick/ImageMagick6/commit/553054c1cb1e4e05ec86237afef76a32cd7c464d"},{"refsource":"MLIST","name":"[debian-lts-announce] 20230311 [SECURITY] [DLA 3357-1] imagemagick security update","url":"https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html"}]},"description":{"description_data":[{"lang":"eng","value":"An integer overflow issue was discovered in ImageMagick's ExportIndexQuantum() function in MagickCore/quantum-export.c. Function calls to GetPixelIndex() could result in values outside the range of representable for the 'unsigned char'. When ImageMagick processes a crafted pdf file, this could lead to an undefined behaviour or a crash."}]}},"nvd":{"publishedDate":"2022-08-25 20:15:00","lastModifiedDate":"2023-03-11 23:15:00","problem_types":["CWE-190"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":5.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.8,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*","versionEndExcluding":"6.9.11-57","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0.0-0","versionEndExcluding":"7.0.10-57","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"20224","Ordinal":"194265","Title":"CVE-2021-20224","CVE":"CVE-2021-20224","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"20224","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}