Skip to main content

FastStone Image Viewer CVE-2026-30040

| EUVDEUVD-2026-39772 MEDIUM
Heap-based Buffer Overflow (CWE-122)
2026-06-26 cve@mitre.org GHSA-74rp-5fx4-84m7
6.5
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Deliver crafted JP2 file to victim
  2. Delivery
    Victim opens file in FSViewer.exe
  3. Exploit
    Heap overflow triggered in JP2 parser
  4. Execution
    Overwrite heap metadata or function pointer
  5. Impact
    Execute arbitrary code as current user

Vulnerability Assessment

Weakness
CWE
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

The victim must actively open a crafted JPEG 2000 (JP2) file using FastStone Image Viewer v8.3 on Windows - this is the single concrete prerequisite. No special configuration, elevated privileges, or network service exposure is required. Exploitation is limited by the requirement for user interaction: the victim must be induced to open the malicious file, which prevents fully remote unauthenticated exploitation without a delivery mechanism such as phishing, a malicious download site, or a poisoned shared drive. The attack does not apply to server deployments or headless environments. The provided CVSS vector incorrectly lists UI:N; in practice, UI:R is the accurate limiting condition, as no file opens spontaneously without user action.

Impact

Real-world risk is moderate to low for most environments, despite the RCE classification in the description. EPSS sits at 0.46% (37th percentile), indicating low exploitation probability relative to the broader CVE population. CISA SSVC rates exploitation status as none with partial technical impact, which partially contradicts the 'RCE' tag - this inconsistency should be noted. The provided CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L, score 6.5) contains two significant anomalies: first, UI:N conflicts with the nature of a file-parsing attack that requires a victim to open a crafted file; second, C:N/I:L/A:L conflicts with the description's claim of arbitrary code execution, which would normally warrant C:H/I:H/A:H. Analysts should treat the NVD-assigned CVSS impact metrics as potentially understated. The attack is not exploitable without user interaction, which meaningfully limits mass exploitation. FastStone Image Viewer is most prevalent in desktop/enterprise workstation environments, not internet-facing servers, further constraining attacker reach. The automatable SSVC rating reflects that once a malicious JP2 file is crafted and delivered, the exploitation step itself requires no further attacker input.

Exploit ScenarioDerived

An attacker emails or shares a maliciously crafted JP2 image file with a target user, disguising it as a legitimate photograph or document attachment. The victim opens the file in FastStone Image Viewer v8.3, triggering the heap overflow in FSViewer.exe during image parsing. The attacker's shellcode executes silently in the background with the full privileges of the victim's Windows user account, potentially enabling persistence, credential theft, or lateral movement.

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

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

Alert me

AnalysisAIv1 – Jul 22, 2026

Heap-based buffer overflow in FastStone Image Viewer v8.3 allows arbitrary code execution when a victim opens a crafted JPEG 2000 (JP2) file, running malicious code in the context of the current user process. The flaw resides in the FSViewer.exe image parsing component and is triggered purely through file interaction, with no authentication or elevated privileges required of the attacker. No public exploit code has been identified at time of analysis and CISA SSVC rates exploitation status as none, though the attack is classified as automatable once file delivery to a target is achieved.

RemediationAI

Upgrade to the latest version of FastStone Image Viewer available at https://www.faststone.org/FSIVDownload.htm; no specific patched version number is confirmed in the available intelligence data, so the exact fix version has not been independently verified. Consult the CERT/CC advisory at https://kb.cert.org/vuls/id/936962 for vendor-confirmed patch details. If an update is not immediately possible, restrict or disable the opening of JPEG 2000 (JP2) files within the application, or configure endpoint security tools to block execution of FSViewer.exe when launched from file associations with .jp2 or .j2k extensions - note this trades JP2 functionality for reduced attack surface. User awareness training to avoid opening JP2 files from untrusted sources reduces delivery risk with no application-level side effects. No patch availability confirmation was present in the provided data beyond the vendor download page reference.

Affected VersionsENISA

n/a n/a

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

FastStone Image Viewer is a Windows desktop image processing application. CWE-122 (Heap-based Buffer Overflow) identifies the root cause: the JP2 (JPEG 2000) file parser in FSViewer.exe fails to perform adequate bounds checking when allocating or writing to heap memory while processing image data. JPEG 2000 is a complex, multi-layer image format whose parsing routines are historically prone to memory corruption bugs due to variable-length data structures and optional codestream markers. Exploiting a heap overflow for code execution typically involves heap shaping or grooming techniques to position attacker-controlled data at a predictable heap address, then hijacking control flow via an overwritten function pointer or vtable entry. No CPE string was provided in the intelligence data; the affected product is identified solely from the CVE description as FastStone Image Viewer v8.3.

Know when the next one hits your stack

  • 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:N/S:U/C:N/I:L/A:L
vuln.today AI 8.8 HIGH

File-parsing RCE requires victim to open a file (UI:R); arbitrary code execution implies full C:H/I:H/A:H; AV:N because malicious file can be remotely delivered.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/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
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low

DescriptionCVE.org

A heap overflow in the FSViewer.exe process of FastStone Image Viewer v8.3 allows attackers to cause a execute arbitrary code in the context of the current process via supplying a crafted JPEG 2000 (JP2) file.

Threat Intelligence Overview

EPSS Score
0.5%
Top 63% exploitable
Prevalence
Medium
popular free Windows image viewer, common on enterprise workstations
Data Quality
5 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 No
EPSS 0.5%
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
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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