Skip to main content

FreeImage CVE-2025-65803

MEDIUM
Integer Overflow or Wraparound (CWE-190)
2025-12-10 cve@mitre.org
6.5
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious PSD file
  2. Exploit
    Deliver to app using FreeImage
  3. Execution
    Integer overflow in psdParser::ReadImageData
  4. Impact
    Process crash / Denial of Service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a victim application that uses FreeImage (v3.18.0 or earlier) to parse an attacker-supplied Photoshop PSD file; the crafted PSD's dimension/channel fields drive the integer overflow in psdParser::ReadImageData during image-data reading. The trigger requires user or application interaction to open/process the file (UI:R) - it is not a self-propagating remote crash against a listening service by default. Limiting factors: impact is confined to Denial of Service (process crash) with no confidentiality or integrity impact; practical reachability depends on whether the deploying application accepts PSD input and whether that input arrives over a network path or only via local files. No authentication is required (PR:N).

Impact

This is a moderate-severity availability-only issue, not a top-tier emergency. The CVSS vector (AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H, 6.5) indicates a remotely-reachable, low-complexity, unauthenticated trigger, but gated by required user interaction (UI:R) and limited strictly to a Denial of Service - no confidentiality or integrity impact. The signals align toward lower real-world urgency: EPSS is low (0.30%, 23rd percentile), there is NO CISA KEV listing (not confirmed actively exploited), and the referenced PoC is a reference only, not verified as working exploit code. The vuln.today priority is 'this_month', consistent with a patch-when-convenient cadence rather than act_now/emergency. One point to verify: CVSS marks AV:N, but exploitation realistically depends on the affected application feeding an attacker-supplied PSD file to FreeImage - AV:N is defensible only where the library processes images received over a network (e.g., an upload/conversion service); for a purely local desktop viewer the practical vector is closer to local file delivery. The worst outcome is a crash/resource exhaustion of the process using the library, not system compromise.

Exploit ScenarioDerived

An attacker crafts a malformed PSD file whose header values trigger an integer overflow in FreeImage's psdParser::ReadImageData, then delivers it to a victim application that uses FreeImage to decode images (for example an image-upload/thumbnailing service or a desktop image viewer). When the application parses the file, the overflow leads to a crash, denying service. A public PoC reference exists (a GitHub gist), but it is not verified as working exploit code, and only availability is affected.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 04, 2026

Denial of service in FreeImage 3.18.0 and earlier is caused by an integer overflow in psdParser::ReadImageData when a crafted Photoshop PSD file is parsed, allowing the affected process to crash. The CVSS 3.1 vector is AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H, so remote unauthenticated attackers can trigger it only when a victim application processes attacker-supplied PSD input and user or application interaction occurs; there is no confidentiality or integrity impact. A public PoC reference exists; it is not verified as working exploit code, there is no CISA KEV confirmation of active exploitation, and EPSS is low at 0.30% (23rd percentile), supporting a this_month rather than emergency priority.

RemediationAI

Update FreeImage to a release later than 3.18.0 when the vendor provides one, and verify the current build against the vendor download page at https://freeimage.sourceforge.io/download.html; no exact fixed version is confirmed in the supplied data, so validate the chosen release against the PSD parsing issue before deployment. If an immediate upgrade is not possible, reduce exposure by disabling PSD support in applications that do not require it, rejecting untrusted or oversized PSD files at ingestion, validating PSD dimension/channel fields before handing files to FreeImage, and running the parser in a low-privilege, resource-limited process so a crash cannot take down a larger service; these controls trade PSD functionality or add parsing overhead and do not replace a vendor fix. The gist reference at https://gist.github.com/1mxml/cabd6d972557d9d992fe5f4f6ca1dd87 should be used only to reproduce or verify the issue, since it is not verified as working exploit code.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

FreeImage is a C/C++ image-processing library, and the affected CPE is cpe:2.3:a:freeimage_project:freeimage:*:*:*:*:*:*:*:*, covering FreeImage through version 3.18.0. The root cause is CWE-190 integer overflow in psdParser::ReadImageData, where PSD dimension/channel fields are used during image-data reading and can overflow an integer, leading to a crash rather than code execution under the assessed impact. The CVSS vector AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H confirms the availability-only scope and the requirement for a victim application to process an attacker-supplied PSD; the exact arithmetic operation and any additional preconditions are not described in the available sources.

Know when Freeimage gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
vuln.today AI 6.5 MEDIUM

Crafted PSD must be opened by the victim app, so UI:R and PR:N; impact is a crash only, so C:N/I:N/A:H; AV:N holds where images arrive over the network.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

An integer overflow in the psdParser::ReadImageData function of FreeImage v3.18.0 and before allows attackers to cause a Denial of Service (DoS) via supplying a crafted PSD file.

Threat Intelligence Overview

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Medium
open-source image-decoding library embedded in various apps, not ubiquitous
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

52
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

cpe:2.3:a:freeimage_project:freeimage:*:*:*:*:*:*:*:*
CVE-2025-70968 CRITICAL POC
9.8 Jan 14

FreeImage 3.18.0 has a use-after-free in the TARGA plugin's loadRLE function. Processing a malicious TGA file can lead t

CVE-2023-47992 HIGH POC
8.8 Jan 09

An integer overflow vulnerability in FreeImageIO.cpp::_MemoryReadProc in FreeImage 3.18.0 allows attackers to obtain sen

CVE-2023-47994 HIGH POC
8.8 Jan 09

An integer overflow vulnerability in LoadPixelDataRLE4 function in PluginBMP.cpp in Freeimage 3.18.0 allows attackers to

CVE-2024-28582 HIGH POC
8.4 Mar 20

Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local attacker to execute arbitrary cod

CVE-2024-28581 HIGH POC
8.4 Mar 20

Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local attacker to execute arbitrary cod

CVE-2024-28580 HIGH POC
8.4 Mar 20

Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local attacker to execute arbitrary cod

CVE-2024-28578 HIGH POC
8.4 Mar 20

Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local attacker to execute arbitrary cod

CVE-2024-28566 HIGH POC
8.4 Mar 20

Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local attacker to execute arbitrary cod

CVE-2024-28583 HIGH POC
7.8 Mar 20

Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local attacker to execute arbitrary cod

CVE-2024-28569 HIGH POC
7.8 Mar 20

Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local attacker to execute arbitrary cod

CVE-2024-9029 HIGH POC
7.5 Sep 27

A flaw was found in the freeimage library. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, n

CVE-2019-12214 HIGH POC
7.5 May 20

In FreeImage 3.18.0, an out-of-bounds access occurs because of mishandling of the OpenJPEG j2k_read_ppm_v3 function in j

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy