CVE-2020-27770: Integer Overflow

Published Nov 4, 2020
·
Updated

Due to a missing check for 0 value of replaceextent, it is possible for offset p to overflow in SubstituteString(), causing potential impact to application availability. This could be triggered by a crafted input file that is processed by ImageMagick. This flaw affects ImageMagick versions prior to 7.0.8-68.

Other sources

In ImageMagick, there is an integer overflow in MagickCore/string.c.

Reference: https://github.com/ImageMagick/ImageMagick/issues/1721

Upstream patch: https://github.com/ImageMagick/ImageMagick/commit/be90a5395695f0d19479a5d46b06c678be7f7927

Red Hat

Affected Software

5 affected componentsFixes available
redhat/ImageMagick 7.0.8<68
68
ImageMagick ImageMagick<6.9.10-68
ImageMagick ImageMagick>=7.0.0-0<7.0.8-68
Debian Debian Linux=9.0
debian/imagemagick
8:6.9.11.60+dfsg-1.3+deb11u48:6.9.11.60+dfsg-1.3+deb11u58:6.9.11.60+dfsg-1.6+deb12u28:6.9.11.60+dfsg-1.6+deb12u18:7.1.1.43+dfsg1-18:7.1.1.47+dfsg1-1

Event History

Dec 4, 2020
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Jan 11, 2024
Data Sourced
via Launchpad·11:48 PM
Description
Oct 22, 2024
Data Sourced
via Ubuntu·01:54 AM
RemedyDescriptionSeverityAffected Software
Apr 16, 2025
Data Sourced
via Debian·04:20 AM
DescriptionAffected Software

Frequently Asked Questions

1

What is CVE-2020-27770?

CVE-2020-27770 is a vulnerability in ImageMagick that allows for offset overflow in SubstituteString(), potentially impacting application availability.

2

How severe is CVE-2020-27770?

CVE-2020-27770 has a severity score of 5.5, indicating a medium-level vulnerability.

3

Which software versions are affected by CVE-2020-27770?

ImageMagick versions prior to 8:6.9.7.4+dfsg-16ubuntu6.11, 8:6.9.10.23+dfsg-2.1ubuntu11.4, 8:6.9.10.23+dfsg-2.1ubuntu13.3, 8:6.9.11.24+dfsg-1, and 8:6.8.9.9-7ubuntu5.16+ are affected by CVE-2020-27770.

4

How can I fix CVE-2020-27770?

To fix CVE-2020-27770, it is recommended to update ImageMagick to version 8:6.9.7.4+dfsg-16ubuntu6.11, 8:6.9.10.23+dfsg-2.1ubuntu11.4, 8:6.9.10.23+dfsg-2.1ubuntu13.3, 8:6.9.11.24+dfsg-1, or 8:6.8.9.9-7ubuntu5.16+ depending on the version you are using.

5

Where can I find more information about CVE-2020-27770?

You can find more information about CVE-2020-27770 on the official CVE page: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27770

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203