CVE-2020-25667

ImageMagick: heap-based buffer overflow in TIFFGetProfiles in coders/tiff.c

Published Dec 8, 2020 CVSS 3.1 · 5.5 Medium EPSS 1.2% KEV · Not listed
Description
TIFFGetProfiles() in /coders/tiff.c calls strstr() which causes a large out-of-bounds read when it searches for `"dc:format=\"image/dng\"` within `profile` due to improper string handling, when a crafted input file is provided to ImageMagick. The patch uses a StringInfo type instead of a raw C string to remedy this. This could cause an impact to availability of the application. This flaw affects ImageMagick versions prior to 7.0.9-0.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2020-18329 TIFFGetProfiles() in /coders/tiff.c calls strstr() which causes a large out-of-bounds read when it searches for `"dc:format=\"image/dng\"` within `profile` due to improper string handling, when a crafted input file is provided to ImageMagick. The patch uses a StringInfo type instead of a raw C string to remedy this. This could cause an impact to availability of the application. This flaw affects ImageMagick versions prior to 7.0.9-0.
History
Type Values Removed Values Added
Metrics epss

{'score': 0.0012}

epss

{'score': 0.00131}

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 4, 2024, 3:40 PM
Reserved
Sep 16, 2020, 12:00 AM
Status
Modified
Published
Dec 8, 2020, 9:15 PM
Modified
Jun 17, 2026, 3:07 AM
Severity
Moderate
Public date
Oct 13, 2019, 12:00 AM