# CVE-2026-91186: PNG decoder: a duplicate IHDR chunk after IDAT resizes the image after allocation, causing a heap out-of-bounds write

- Severity: High 8.4 (CVSS:4.0, scored by eclipse) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- 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.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-10-20T14:47:52.216Z
- Modified: 2026-10-20T19:48:50.250Z
- Weaknesses: CWE-125, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: eclipse

## Description

The PNG chunk reader has no notion of chunk ordering. It records whether an IDAT has been seen and whether a tRNS has already supplied transparency, but nothing prevents an IHDR being read a second time.



A PNG carries exactly one IHDR and it is the first chunk. A file that places a second one after IDAT rewrites the image width, height, bit depth and pixel depth *after* the decoded-data buffer has already been allocated and filled from the original values. The pass that reverses the PNG row filters then derives its own extent from the new dimensions and walks the old allocation, moving image bytes past the end of it.



The buffer is allocated by GUIX rather than supplied by the caller, so the application has no way to size it defensively. The decoder is compiled in by default.

(As written by CVE List.)

## Affected

- GUIX: up to 6.5.1.202602a (not affected: 6.5.2.202603)

## References

- <https://github.com/eclipse-threadx/guix/security/advisories/GHSA-gx8f-4rpc-4fjw>

## Sources

- CVE List: [CVE-2026-91186](https://www.cve.org/CVERecord?id=CVE-2026-91186), CVE Terms of Use, modified 2026-10-20
- NVD: [CVE-2026-91186](https://nvd.nist.gov/vuln/detail/CVE-2026-91186), Public domain, modified 2026-10-20

---

Page: https://cve.day/CVE-2026-91186 · Whole record: https://cve.day/CVE-2026-91186.json · Rebuilt by cve.day 2026-11-25T22:59:46.053Z
