# CVE-2024-31570: libfreeimage in FreeImage 3.4.0 through 3.18.0 has a stack-based buffer overflow in the PluginXPM.cpp Load function via an XPM file.

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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.60%, higher than 50% of CVEs (2026-12-01)
- Published: 2024-09-19T00:00:00.000Z
- Modified: 2026-06-17T07:28:35.483Z
- Weaknesses: CWE-121, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## Description

libfreeimage in FreeImage 3.4.0 through 3.18.0 has a stack-based buffer overflow in the PluginXPM.cpp Load function via an XPM file.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- freeimage_project freeimage: from 3.4.0 up to 3.18.0

## Every score

- CISA-ADP: 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`
- 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://sourceforge.net/p/freeimage/bugs/355/> (permissions-required)
- <https://www.openwall.com/lists/oss-security/2024/04/11/10> (mailing-list, third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2024-31570 · Whole record: https://cve.day/CVE-2024-31570.json · Rebuilt by cve.day 2026-11-25T22:58:45.633Z
