# CVE-2025-27796: ReadWPGImage in WPG in GraphicsMagick before 1.3.46 mishandles palette buffer allocation, resulting in out-of-bounds access to heap memory…

- Severity: Medium 4.5 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:L`
- 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 50% of CVEs (2026-11-30)
- Published: 2025-03-07T00:00:00.000Z
- Modified: 2026-06-17T09:04:14.400Z
- Weaknesses: CWE-908
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

ReadWPGImage in WPG in GraphicsMagick before 1.3.46 mishandles palette buffer allocation, resulting in out-of-bounds access to heap memory in ReadBlob.

(As written by CVE List.)

## Affected

- GraphicsMagick GraphicsMagick: before 1.3.46

## Every score

- mitre: CVSS:3.1 4.5 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:L`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/commit/883ebf8cae6dfa5873d975fe3476b1a188ef3f9f> (patch)
- <http://www.graphicsmagick.org/NEWS.html> (release-notes)
- <https://sourceforge.net/p/graphicsmagick/bugs/750/> (permissions-required)

## Sources

- CVE List: [CVE-2025-27796](https://www.cve.org/CVERecord?id=CVE-2025-27796), CVE Terms of Use, modified 2025-03-07
- NVD: [CVE-2025-27796](https://nvd.nist.gov/vuln/detail/CVE-2025-27796), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-27796 · Whole record: https://cve.day/CVE-2025-27796.json · Rebuilt by cve.day 2026-11-25T22:58:55.043Z
