Security readout for executives and security teams
Plain-English summary
ImageMagick had an injection flaw when creating PostScript and HTML output. A malicious input file could cause unsafe content to be embedded in generated files, which may execute or render when opened by downstream tools such as printers, viewers, or browsers. Patched versions are available.
Executive priority
Treat this as a moderate-priority patching item. It is not currently documented as actively exploited, but it affects common image-processing software and can impact document or print workflows handling untrusted files.
Technical view
Before ImageMagick 7.1.2-15 and 6.9.13-40, ps coders failed to sanitize data written into PostScript headers, enabling arbitrary PostScript injection. The HTML encoder also failed to properly escape strings written into HTML documents. The CVE is rated CVSS 5.7 and mapped to CWE-94.
Likely exposure
Exposure is most likely in systems that use ImageMagick to process attacker-supplied or untrusted image files and export PostScript or HTML output. Servers, document pipelines, print workflows, and web applications with conversion features should be reviewed.
Exploitation context
The provided sources do not report active exploitation, and this CVE is not marked KEV. Risk depends on whether an attacker can supply input and whether generated PostScript or HTML is later processed by tools that interpret embedded content.
Researcher notes
Evidence is limited to the CVE record and ImageMagick advisory. The issue combines PostScript header injection in ps coders with improper HTML escaping. Avoid assuming broader impact beyond ImageMagick versions and output formats named in the sources.
Mitigation direction
- Upgrade ImageMagick 7.x to 7.1.2-15 or later.
- Upgrade ImageMagick 6.x to 6.9.13-40 or later.
- Prioritize systems processing untrusted uploads or generating PostScript or HTML output.
- Check ImageMagick vendor guidance for any additional hardening recommendations.
Validation and detection
- Inventory ImageMagick versions across servers, containers, and build images.
- Flag ImageMagick 7.x earlier than 7.1.2-15.
- Flag ImageMagick 6.x earlier than 6.9.13-40.
- Review applications that convert user-supplied files to PostScript or HTML.
- Confirm patched packages are deployed and older binaries are removed.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
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-94: Code execution behavior lookup
Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. 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 lookupCVE-2026-25797 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- Medium
- CVSS
- 5.7 (3.1)
- Known Exploited
- No
- Published
Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L
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.
CVSS vector scores
1 official scoreWe 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.
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L2.52.7Primary CVE scoreVulnerability scoring details
Base CVSS 3.1 score
5.7MediumVector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L
Source materials
- CVE List V5 sourceCVE List V5
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-rw6c-xp26-225vCVE reference · x_refsource_CONFIRM
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
Improper Control of Generation of Code ('Code Injection')
Improper Control of Generation of Code ('Code Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
