CVE-2026-25967
Received Received - Intake
Stack-Based Buffer Overflow in ImageMagick FTXT Reader Causes Crash

Publication date: 2026-02-24

Last updated on: 2026-02-25

Assigner: GitHub, Inc.

Description
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to version 7.1.2-15, a stack-based buffer overflow exists in the ImageMagick FTXT image reader. A crafted FTXT file can cause out-of-bounds writes on the stack, leading to a crash. Version 7.1.2-15 contains a patch.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-02-24
Last Modified
2026-02-25
Generated
2026-06-16
AI Q&A
2026-02-24
EPSS Evaluated
2026-06-15
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
imagemagick imagemagick to 6.9.13-40 (exc)
imagemagick imagemagick From 7.0.0-0 (inc) to 7.1.2-15 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-787 The product writes data past the end, or before the beginning, of the intended buffer.
CWE-121 A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Mitigation Strategies

The immediate mitigation step is to upgrade ImageMagick to version 7.1.2-15 or later, where the vulnerability has been patched.

Until the upgrade is applied, avoid processing untrusted or crafted FTXT image files that could exploit this stack-based buffer overflow.

Implement monitoring for crashes or abnormal behavior in ImageMagick processes to detect potential exploitation attempts.

Executive Summary

CVE-2026-25967 is a high-severity stack-based buffer overflow vulnerability in the ImageMagick FTXT image reader affecting versions prior to 7.1.2-15.

The flaw occurs because the software improperly handles an oversized integer field in a specially crafted FTXT file, which causes out-of-bounds writes on the stack.

This leads to a crash of the program due to overwriting memory beyond the allocated stack buffer.

The vulnerability was detected using AddressSanitizer and is classified as CWE-121 (stack-based buffer overflow).

Impact Analysis

This vulnerability can be exploited remotely over a network without requiring privileges or user interaction.

While it does not impact confidentiality, it has high impact on integrity and availability, meaning an attacker can cause the ImageMagick process to crash or behave unpredictably.

Such crashes or instability could be used to disrupt services that rely on ImageMagick for image processing.

Compliance Impact

I don't know

Detection Guidance

This vulnerability can be detected by monitoring for crashes or abnormal behavior when processing FTXT image files with vulnerable versions of ImageMagick prior to 7.1.2-15.

Detection was originally performed using AddressSanitizer, which identifies stack-buffer-overflow errors during write operations.

To detect if your system is vulnerable, you can check the installed ImageMagick version with the command:

  • magick -version

If the version is earlier than 7.1.2-15, your system is vulnerable.

Additionally, you can attempt to process suspicious or crafted FTXT files in a controlled environment to observe if crashes or stack-buffer-overflow errors occur.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-25967. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart