CVE-2024-31570: libfreeimage in FreeImage 3.4.0 through 3.18.0 has a stack-based buffer overflow in the PluginXPM.cpp Load fun
CVE-2024-31570 is a critical-severity flaw (CVSS 9.8) affecting freeimage. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-31570?
freeimage: upgrade to newer than 3.18.0. Exact commands for each OS are on this page.
Is CVE-2024-31570 being exploited?
CVE-2024-31570 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-31570 affect?
CVE-2024-31570 affects freeimage. Severity is critical (CVSS 9.8). 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.
How urgent is CVE-2024-31570?
Priority 52/100. Critical severity; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2025-70968 CRITICAL 9.8 DOWNGRADE FreeImage 3.18.0 contains a Use After Free in PluginTARGA.cpp;loadRLE().
- CVE-2025-65803 MEDIUM 6.5 UPGRADE An integer overflow in the psdParser::ReadImageData function of FreeImage v3.18.0 and before allows attackers
- CVE-2024-9029 HIGH 7.5 MITIGATE A flaw was found in the freeimage library