Cloudanix VulnDB

CVE-2022-24130

Medium · 5.5

CVSS

5.5

EPSS

1.7%

Published

Jan 31, 2022

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in graphics handling can let attackers crash image or terminal programs by feeding them specially made data.

Exploit Available
Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Denial Of Service
Component
Application
Class
Buffer Overflow
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Buffer overflow in set_sixel function within graphics_sixel.c triggered by crafted Sixel text when support is enabled, leading to memory corruption and potential denial of service or code execution.

Why it matters to the business

Attackers can crash image processing or terminal applications on affected systems, causing service disruption; the issue has been publicly exploitable for over 4 years with low but stable EPSS and no ransomware use, so patching reduces moderate operational risk across ImageMagick-dependent environments.

How an attack unfolds

An attacker supplies crafted Sixel graphics sequences in text input or files; when the vulnerable set_sixel handler processes them, the overflow occurs, enabling crash or arbitrary code execution on local systems.

How to fix it

Upgrade ImageMagick to commit 9c9a84cec4ab28ee0b57c2b9266d6fbe68183512 or ImageMagick6 to commit 450949ed017f009b399c937cf362f0058eacc5fa; disable Sixel support where feasible until patched.

How to confirm the fix worked

Confirm the exact commit hashes are present in the built source or binaries; test with known Sixel trigger inputs to ensure no crash occurs.

Typical attack path

  1. Identify target running vulnerable ImageMagick or xterm with Sixel enabled
  2. Craft malicious Sixel data to trigger set_sixel overflow
  3. Deliver via local file, piped input, or document
  4. Trigger processing to achieve denial of service or code execution

How to detect it

Review process crash logs and application error reports for set_sixel or graphics_sixel failures; inspect input files or terminal sessions containing Sixel sequences for anomalies.

What your security team should do

  • Apply the listed GIT commits to all affected ImageMagick installations immediately
  • Audit and disable Sixel graphics support in configurations where not required
  • Monitor application stability logs for related crashes pending full rollout

The record

xterm through Patch 370, when Sixel support is enabled, allows attackers to trigger a buffer overflow in set_sixel in graphics_sixel.c via crafted text.

Affected packages

Ecosystem Package Introduced Fixed
AlmaLinux:9 xterm 0 366-12.el9_6
AlmaLinux:9 xterm-resize 0 366-12.el9_6
Debian:11 xterm 0 366-1+deb11u1
Debian:12 xterm 0 370-2
Debian:13 xterm 0 370-2
Debian:14 xterm 0 370-2
Debian:9 xterm 0 327-2+deb9u2
Mageia:8 xterm 0 363-1.2.mga8
SUSE:Linux Enterprise Module for Basesystem 15 SP3 xterm 0 330-150200.11.6.1
SUSE:Linux Enterprise Module for Basesystem 15 SP4 xterm 0 330-150200.11.6.1
SUSE:Linux Enterprise Server 12 SP5 xterm 0 308-5.6.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 xterm 0 308-5.6.1
Ubuntu:16.04:LTS xterm 0 No fix
Ubuntu:18.04:LTS xterm 0 No fix
Ubuntu:20.04:LTS xterm 0 No fix
Ubuntu:22.04:LTS xterm 0 No fix
Ubuntu:24.04:LTS xterm 0 No fix
Ubuntu:24.10 xterm 0 No fix
Ubuntu:25.04 xterm 0 No fix
Ubuntu:25.10 xterm 0 No fix
Ubuntu:Pro:16.04:LTS xterm 0 No fix
Ubuntu:Pro:18.04:LTS xterm 0 No fix
Ubuntu:Pro:20.04:LTS xterm 0 No fix
openSUSE:Leap 15.3 xterm 0 330-150200.11.6.1
openSUSE:Leap 15.4 xterm 0 330-150200.11.6.1
openSUSE:Tumbleweed mlterm 0 3.9.2-3.1

Related vulnerabilities