CVE-2024-31570: FreeImage - Buffer Overflow
- Cve: CVE-2024-31570
- Name: FreeImage - Buffer Overflow
- 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.
- Impact: Attackers can execute arbitrary code on the affected system by exploiting crafted XPM files, potentially leading to full system compromise.
- Remediation: Update to the latest version of FreeImage that addresses this vulnerability, or apply patches if available.
- Vulnerability type: buffer_overflow
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00605
- Epss percentile: 0.49691
- Assignee: [email protected]
- Published at: 2024-09-19T17:15:12Z
- Age in days: 796
- Modified at: 2026-06-17T07:28:35Z
- References total: 2
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-31570
- Nvd status: analyzed
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-787 | Out-of-bounds Write |
| CWE-121 | Stack-based Buffer Overflow |
References
| Url | Source | Tags |
|---|---|---|
| https://www.openwall.com/lists/oss-security/2024/04/11/10 | nvd | Mailing List, Third Party Advisory |
| https://sourceforge.net/p/freeimage/bugs/355/ | nvd | Permissions Required |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| freeimage_project:freeimage | >= 3.4.0, <= 3.18.0 | no | nvd | /v1/products/freeimage_project/freeimage |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts