LiveActive security incident?Get immediate response
CVE Record

CVE-2026-25795: ImageMagick has NULL pointer dereference in ReadSFWImage after DestroyImageInfo (sfw.c)

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, in `ReadSFWImage()` (`coders/sfw.c`), when temporary file creation fails, `read_info` is destroyed before its `filename` member is accessed, causing a NULL pointer dereference and crash. Versions 7.1.2-15 and 6.9.13-40 contain a patch.

MediumCVSS 5.3Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2026-25795 is a crash bug in ImageMagick. If ImageMagick processes an SFW image and temporary file creation fails, affected versions can dereference a NULL pointer and crash. The known impact is availability loss, not data theft or code execution. Patched versions are available.

Executive priority

Treat as a moderate availability risk. Patch during the normal vulnerability remediation cycle, faster for public-facing upload or conversion services. This is not currently evidenced as exploited in the provided sources and does not indicate confidentiality or integrity impact.

Technical view

In ImageMagick ReadSFWImage() in coders/sfw.c, temporary file creation failure leads to DestroyImageInfo(read_info) before read_info->filename is accessed. This causes CWE-476 NULL pointer dereference. Affected versions are ImageMagick 7 before 7.1.2-15 and 6 before 6.9.13-40. CVSS 3.1 score is 5.3, availability impact low.

Likely exposure

Exposure is most relevant where ImageMagick processes untrusted or user-supplied images, especially services accepting uploads or converting images automatically. The issue appears limited to the SFW decoder path and a temporary-file failure condition. Systems not using ImageMagick, not enabling SFW processing, or already patched are less exposed.

Exploitation context

The provided sources do not report active exploitation, and the CVE is not marked KEV. The CVSS vector indicates network reachability, low complexity, no privileges, and no user interaction, but the documented result is a crash only. Exploitation depends on reaching vulnerable image-processing workflows and triggering the failing temporary-file path.

Researcher notes

Evidence is limited to the CVE record and GitHub advisory. The root cause is a use-after-destroyed ImageInfo flow resulting in NULL pointer dereference, not documented memory corruption for code execution. Validate downstream distributions carefully because package versions may contain backported patches without matching upstream version numbers.

Mitigation direction

  • Upgrade ImageMagick 7 to 7.1.2-15 or later.
  • Upgrade ImageMagick 6 to 6.9.13-40 or later.
  • Prioritize systems processing untrusted image uploads or automated conversions.
  • If immediate upgrade is not possible, check ImageMagick advisory for vendor guidance.

Validation and detection

  • Inventory ImageMagick versions across servers, containers, and application dependencies.
  • Confirm deployed versions are not below 7.1.2-15 or 6.9.13-40.
  • Identify services that process user-supplied images with ImageMagick.
  • Review ImageMagick security advisory and package vendor notices for backported fixes.
Prepared
Confidence
high
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-476: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-25795 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.3 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.3CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L3.91.4Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.3Medium
CVSS 3.1 vector shape for CVE-2026-25795Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
ImageMagickImageMagick>= 7.0.0, < 7.1.2-15, < 6.9.13-40Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-476 · source CWE mapping

NULL Pointer Dereference

NULL Pointer Dereference represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.