# CVE-2020-25667: TIFFGetProfiles() in /coders/tiff.c calls strstr() which causes a large out-of-bounds read when it searches for "dc:format=\"image/dng\" wi…

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.21%, higher than 69% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-12-08T20:57:59.000Z
- Modified: 2026-06-17T03:07:05.483Z
- Weaknesses: CWE-122
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- ImageMagick: prior to 7.0.9-0
- imagemagick imagemagick: before 6.9.10-69; from 7.0.0-0 before 7.0.9-0

## Every score

- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1891613> (exploit, issue-tracking, patch, third-party-advisory)

## Sources

- CVE List: [CVE-2020-25667](https://www.cve.org/CVERecord?id=CVE-2020-25667), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-25667](https://nvd.nist.gov/vuln/detail/CVE-2020-25667), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-25667 · Whole record: https://cve.day/CVE-2020-25667.json · Rebuilt by cve.day 2026-11-25T22:57:56.078Z
