# CVE-2020-25664: In WriteOnePNGImage() of the PNG coder at coders/png.c, an improper call to AcquireVirtualMemory() and memset() allows for an out-of-bounds…

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/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): 0.72%, higher than 55% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-12-08T20:57:44.000Z
- Modified: 2026-06-17T03:07:05.160Z
- Weaknesses: CWE-122
- Assigned by: redhat

## Description

In WriteOnePNGImage() of the PNG coder at coders/png.c, an improper call to AcquireVirtualMemory() and memset() allows for an out-of-bounds write later when PopShortPixel() from MagickCore/quantum-private.h is called. The patch fixes the calls by adding 256 to rowbytes. An attacker who is able to supply a specially crafted image could affect availability with a low impact to data integrity. This flaw affects ImageMagick versions prior to 6.9.10-68 and 7.0.8-68.

(As written by CVE List.)

## Affected

- ImageMagick: prior to 7.0.8-68; prior to 6.9.10-68
- imagemagick imagemagick: before 6.9.10-68; from 7.0.8 before 7.0.8-68
- fedoraproject fedora: 34

## Every score

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

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1891605> (exploit, issue-tracking, patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z3J6D7POCQYQKNVRDYLTTPM5SQC3WVTR/> (vendor-advisory)

## Sources

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

---

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