CVE-2026-42144 — Buffer Overflow
CVE-2026-42144 — CImg Library is a C++ library for image processing. Prior to commit 4ca26bc, there is an integer overflow vulnerability in the W*H*D size computation inside _load_pnm() that can bypass the memory allocation guard. A crafted PNM/PGM/PPM file with large dimension values causes the ove
What This Means For You
- If your environment is affected by CWE-190, review your exposure and prioritize patching based on your environment. Monitor vendor advisories for CVE-2026-42144 updates and patches.
Related ATT&CK Techniques
🛡️ Detection Rules
3 rules · 6 SIEM formats3 detection rules auto-generated for this incident, mapped to MITRE ATT&CK. Sigma YAML is free — export to any SIEM format via the Intel Bot.
CImg Library Integer Overflow in _load_pnm() - CVE-2026-42144
title: CImg Library Integer Overflow in _load_pnm() - CVE-2026-42144
id: scw-2026-05-04-ai-1
status: experimental
level: medium
description: |
Detects processes that appear to be using the CImg library (indicated by 'CImg' in the image name) and are attempting to load PNM, PGM, or PPM files. This rule specifically looks for command lines that might indicate the vulnerable size computation logic ('W*H*D') which is part of the integer overflow vulnerability in _load_pnm() leading to potential heap buffer overflows. This is a primary detection for the initial exploitation vector.
author: SCW Feed Engine (AI-generated)
date: 2026-05-04
references:
- https://shimiscyberworld.com/posts/nvd-CVE-2026-42144/
tags:
- attack.execution
- attack.t1204.002
logsource:
category: process_creation
detection:
selection:
Image|contains:
- 'CImg'
CommandLine|contains:
- '.pnm'
- '.pgm'
- '.ppm'
selection_size_computation:
CommandLine|contains:
- 'W*H*D'
condition: selection AND selection_size_computation
falsepositives:
- Legitimate administrative activity
Source: Shimi's Cyber World · License & reuse
Indicators of Compromise
| ID | Type | Indicator |
|---|---|---|
| CVE-2026-42144 | vulnerability | CVE-2026-42144 |
| CWE-190 | weakness | CWE-190 |
Source & Attribution
| Source Platform | NVD |
| Channel | National Vulnerability Database |
| Published | May 04, 2026 at 21:16 UTC |
This content was curated and summarized by Shimi's Cyber World for informational purposes. It is not copied or republished in full. All intellectual property rights remain with the original author and source.
Believe this infringes your rights? Submit a takedown request.