[From nobody Wed May  6 19:07:04 2026
Received: (at submit) by bugs.debian.org; 5 May 2026 20:18:26 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-10.9 required=4.0 tests=BAYES_00,FOURLA,
 FROMDEVELOPER,FVGT_m_MULTI_ODD,MD5_SHA1_SUM,NO_RELAYS,
 XMAILER_REPORTBUG autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 37; hammy, 149; neutral, 53; spammy,
 1. spammytokens:0.942-+--H*r:bugs.debian.org
 hammytokens:0.000-+--H*F:U*carnil, 0.000-+--XDebbugsCc,
 0.000-+--X-Debbugs-Cc, 0.000-+--HTo:N*Debian, 0.000-+--H*Ad:N*Bug
Return-path: &lt;carnil@debian.org&gt;
Received: via submission by buxtehude.debian.org with esmtp (Exim 4.96)
 (envelope-from &lt;carnil@debian.org&gt;) id 1wKMDp-00B5zP-17
 for submit@bugs.debian.org; Tue, 05 May 2026 20:18:26 +0000
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Salvatore Bonaccorso &lt;carnil@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: cimg: CVE-2026-42144 CVE-2026-42146
Message-ID: &lt;177801229901.140508.2575420960949445704.reportbug@eldamar.lan&gt;
X-Mailer: reportbug 13.2.0
Date: Tue, 05 May 2026 22:18:19 +0200
Delivered-To: submit@bugs.debian.org

Source: cimg
Version: 3.5.2+dfsg-1
Severity: important
Tags: security upstream
X-Debbugs-Cc: carnil@debian.org, Debian Security Team &lt;team@security.debian.org&gt;

Hi,

The following vulnerabilities were published for cimg.

CVE-2026-42144[0]:
| 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 overflow to wrap around, allocating an undersized
| buffer and potentially triggering a heap buffer overflow. Any
| application using CImg to load untrusted image files is affected.
| This issue has been patched via commit 4ca26bc.


CVE-2026-42146[1]:
| CImg Library is a C++ library for image processing. Prior to commit
| c3aacf5, the nb_colors field read from the BMP file header is used
| directly to compute an allocation size without validating it against
| the remaining file size. A crafted BMP file with a large nb_colors
| value triggers an out-of-memory condition, crashing any application
| that uses CImg to load untrusted BMP files. This issue has been
| patched via commit c3aacf5.


If you fix the vulnerabilities please also make sure to include the
CVE (Common Vulnerabilities &amp; Exposures) ids in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-42144
    https://www.cve.org/CVERecord?id=CVE-2026-42144
    https://github.com/GreycLab/CImg/security/advisories/GHSA-4663-63fm-44gc
    https://github.com/GreycLab/CImg/commit/4ca26bce4d8c61fcd1507d5f9401b9fb1222c27d
[1] https://security-tracker.debian.org/tracker/CVE-2026-42146
    https://www.cve.org/CVERecord?id=CVE-2026-42146
    https://github.com/GreycLab/CImg/security/advisories/GHSA-g54r-qmgx-c6fv
    https://github.com/GreycLab/CImg/commit/c3aacf5b96ac1e54b7af1957c6737dbf3949f6d3

Regards,
Salvatore
]