Cloudanix VulnDB

CVE-2022-1270

High · 7.8

CVSS

7.8

EPSS

0.5%

Published

Sep 28, 2022

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in an image-processing tool can let attackers take over computers when users open certain specially made picture files.

Exploit Available
Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Full Compromise
Component
Application
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Heap buffer overflow triggered during MIFF image parsing in GraphicsMagick, allowing out-of-bounds writes that can corrupt memory and lead to arbitrary code execution or denial of service.

Why it matters to the business

Attackers can compromise systems that process user-supplied images, resulting in data theft, ransomware deployment, or service disruption with high operational cost for image-heavy workflows.

How an attack unfolds

An attacker crafts a specially malformed MIFF file and delivers it to a target application or user that relies on GraphicsMagick for image handling; when the file is parsed, the overflow occurs and attacker-controlled code executes within the process context.

How to fix it

Upgrade GraphicsMagick to the latest stable release that resolves the MIFF parsing issue; apply vendor or distribution security patches immediately; where updates are unavailable, restrict processing of untrusted MIFF files and consider replacing the library with a maintained alternative.

How to confirm the fix worked

Verify the installed GraphicsMagick version against the advisory; run regression tests with known-good and malformed MIFF samples in a sandbox; confirm absence of the vulnerable parsing path through static or dynamic analysis of the binary.

Typical attack path

  1. Identify or compromise a target application or workflow that uses GraphicsMagick to open MIFF files
  2. Craft a malicious MIFF image that triggers the heap overflow on parse
  3. Deliver the file via email attachment, web upload, or shared storage
  4. Trigger parsing through normal user or automated processing
  5. Achieve code execution or crash to establish foothold or disrupt operations

How to detect it

Search application and system logs for GraphicsMagick crashes or errors during MIFF file handling; monitor process creation events following image-processing activity; inspect for unexpected child processes or memory corruption indicators after MIFF parsing.

What your security team should do

  • Prioritize patching GraphicsMagick across all image-processing pipelines within 30 days given public exploit availability
  • Implement file-type validation and sandboxed image processing to limit exposure to untrusted MIFF content
  • Add MIFF parsing events to centralized logging for retrospective hunting
  • Review downstream dependents and rebuild any custom applications that statically link the library

The record

In GraphicsMagick, a heap buffer overflow was found when parsing MIFF.

Affected packages

Ecosystem Package Introduced Fixed
Debian:10 graphicsmagick 0 1.4+really1.3.35-1~deb10u3
Debian:11 graphicsmagick 0 1.4+really1.3.36+hg16481-2+deb11u1
Debian:12 graphicsmagick 0 1.4+really1.3.38-1
Debian:13 graphicsmagick 0 1.4+really1.3.38-1
Mageia:8 abydos 0 0.2.3-4.2.mga8
Mageia:8 abydos 0 0.2.3-4.2.mga8.tainted
Mageia:8 converseen 0 0.9.8.1-4.2.mga8
Mageia:8 digikam 0 7.1.0-4.2.mga8
Mageia:8 imagemagick 0 7.1.0.52-1.1.mga8
Mageia:8 imagemagick 0 7.1.0.52-1.1.mga8.tainted
Mageia:8 libopenshot 0 0.2.5-5.2.mga8
Mageia:8 php-imagick 0 3.4.5-0.git20201230.2.2.mga8
Mageia:8 synfig 0 1.2.2-11.2.mga8
Mageia:8 transcode 0 1.1.7-29.2.mga8.tainted
Mageia:8 windowmaker 0 0.95.9-3.2.mga8
Mageia:8 xine-lib1.2 0 1.2.11-1.2.mga8
Mageia:8 xine-lib1.2 0 1.2.11-1.2.mga8.tainted
Mageia:8 zbar 0 0.23.1-5.2.mga8
SUSE:HPE Helion OpenStack 8 ImageMagick 0 6.8.8.1-71.172.1
SUSE:Linux Enterprise Server 12 SP2-BCL ImageMagick 0 6.8.8.1-71.172.1
SUSE:Linux Enterprise Server 12 SP3-BCL ImageMagick 0 6.8.8.1-71.172.1
SUSE:Linux Enterprise Server 12 SP3-LTSS ImageMagick 0 6.8.8.1-71.172.1
SUSE:Linux Enterprise Server 12 SP4-LTSS ImageMagick 0 6.8.8.1-71.172.1
SUSE:Linux Enterprise Server 12 SP5 ImageMagick 0 6.8.8.1-71.172.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP3 ImageMagick 0 6.8.8.1-71.172.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP4 ImageMagick 0 6.8.8.1-71.172.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 ImageMagick 0 6.8.8.1-71.172.1
SUSE:Linux Enterprise Software Development Kit 12 SP5 ImageMagick 0 6.8.8.1-71.172.1
SUSE:Linux Enterprise Workstation Extension 12 SP5 ImageMagick 0 6.8.8.1-71.172.1
SUSE:OpenStack Cloud 8 ImageMagick 0 6.8.8.1-71.172.1
SUSE:OpenStack Cloud 9 ImageMagick 0 6.8.8.1-71.172.1
SUSE:OpenStack Cloud Crowbar 8 ImageMagick 0 6.8.8.1-71.172.1
SUSE:OpenStack Cloud Crowbar 9 ImageMagick 0 6.8.8.1-71.172.1
Ubuntu:20.04:LTS graphicsmagick 0 1.4+really1.3.35-1ubuntu0.1
Ubuntu:22.04:LTS graphicsmagick 0 1.4+really1.3.38-1
Ubuntu:Pro:14.04:LTS graphicsmagick 0 1.3.18-1ubuntu3.1+esm8
Ubuntu:Pro:16.04:LTS graphicsmagick 0 1.3.23-1ubuntu0.6+esm2
Ubuntu:Pro:18.04:LTS graphicsmagick 0 1.3.28-2ubuntu0.2+esm1
Ubuntu:Pro:20.04:LTS graphicsmagick 0 1.4+really1.3.35-1ubuntu0.1
openSUSE:Leap 15.3 GraphicsMagick 0 1.3.35-150300.3.3.1
openSUSE:Tumbleweed GraphicsMagick 0 1.3.38-1.1

Related vulnerabilities