CVE-2022-24130
Medium · 5.5CVSS
5.5
EPSS
1.7%
Published
Jan 31, 2022
CISA due date
—
Cloudanix analysis
A bug in graphics handling can let attackers crash image or terminal programs by feeding them specially made data.
- 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
- Identify target running vulnerable ImageMagick or xterm with Sixel enabled
- Craft malicious Sixel data to trigger set_sixel overflow
- Deliver via local file, piped input, or document
- 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
- CVE-2022-45063 xterm before 375 allows code execution via font ops, e.g., because an OSC 50 response may… Also affects xterm
- CVE-2026-112108 A vulnerability was determined in ztxz16 fastllm up to 0.1.8.2. CWE-120
- CVE-2026-90804 A vulnerability was detected in GNU Binutils 2.47. CWE-120
- CVE-2026-90803 A security vulnerability has been detected in GNU Binutils 2.47. CWE-120
- CVE-2026-90801 A security flaw has been discovered in GNU Binutils 2.47. CWE-120
- CVE-2026-42808 An issue was discovered in Bosch Sensortec COINES_SDK versions 2.0 through 2.11. The host… CWE-120
- CVE-2026-87931 A vulnerability has been found in Behavioral Technology Group Pavlok Behavioral… CWE-120
- CVE-2026-71613 Buffer Overflow vulnerability in GPAC c2dee3aff638cd96f9617ac5b17dc2868cd90ef3 allows an… CWE-120