Division by zero in ImageMagick



Published: 2021-05-12 | Updated: 2023-06-23
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2021-20310
CWE-ID CWE-369
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
ImageMagick
Client/Desktop applications / Multimedia software

Vendor ImageMagick.org

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Division by zero

EUVDB-ID: #VU62866

Risk: Medium

CVSSv3.1: 4.6 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-20310

CWE-ID: CWE-369 - Divide By Zero

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform a denial of service attack.

The vulnerability exists due to a division by zero error within the ConvertXYZToJzazbz() function in MagickCore/colorspace.c. A remote attacker can pass a specially crafted image file to the application and crash it.

Mitigation

Install update from vendor's website.

Vulnerable software versions

ImageMagick: 7.0.0-0 - 7.0.10-62

External links

http://bugzilla.redhat.com/show_bug.cgi?id=1946728
http://github.com/ImageMagick/ImageMagick/issues/3295
http://github.com/ImageMagick/ImageMagick/commit/75f6f5032690077cae3eaeda3c0165cc765eaeb5


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###