CVE-2026-42144

Source
https://cve.org/CVERecord?id=CVE-2026-42144
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42144.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-42144
Aliases
  • GHSA-4663-63fm-44gc
Downstream
Published
2026-05-04T17:51:38.144Z
Modified
2026-08-12T16:25:14.052305Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H CVSS Calculator
Summary
CImg Library: Integer overflow in PNM size check bypasses memory guard (_load_pnm)
Details

CImg Library is a C++ library for image processing. Prior to commit 4ca26bc, there is an integer overflow vulnerability in the WHD size computation inside loadpnm() 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42144.json",
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "fixed": "4ca26bce4d8c61fcd1507d5f9401b9fb1222c27d"
                }
            ]
        }
    ],
    "cwe_ids": [
        "CWE-190"
    ],
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/greyclab/cimg

Affected ranges

Type
GIT
Repo
https://github.com/greyclab/cimg
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "source": "REFERENCES"
}

Affected versions

v.*
v.2.3.0
v.2.3.1
v.2.3.2
v.2.3.3
v.2.3.4
v.2.3.5
v.2.3.6
v.2.4.0
v.2.4.1
v.2.4.2
v.2.4.3
v.2.4.4
v.2.4.5
v.2.5.0
v.2.5.1
v.2.5.2
v.2.5.3
v.2.5.4
v.2.5.5
v.2.5.6
v.2.5.7
v.2.6.0
v.2.6.1
v.2.6.2
v.2.6.3
v.2.6.4
v.2.6.5
v.2.6.6
v.2.6.7
v.2.7.0
v.2.7.1
v.2.7.2
v.2.7.3
v.2.7.4
v.2.7.5
v.2.8.0
v.2.8.1
v.2.8.2
v.2.8.3
v.2.8.4
v.2.9.0
v.3.1.0
v.3.1.1
v.3.1.2
v.3.1.3
v.3.1.4
v.3.1.6
v.3.2.0
v.3.2.1
v.3.2.2
v.3.2.3
v.3.2.4
v.3.2.5
v.3.2.6
v.3.3.0
v.3.3.1
v.3.3.2
v.3.3.3
v.3.3.4
v.3.3.5
v.3.3.6
v.3.4.0
v.3.4.1
v.3.4.2
v.3.4.3
v.3.5.0
v.3.5.1
v.3.5.2
v.3.5.3
v.3.5.4
v.3.5.5
v.3.6.0
v.3.6.1
v.3.6.2
v.3.6.3
v.3.6.4
v.3.6.5
v.3.6.6
v.3.7.0
v.3.7.1
v.3.7.2
v.3.7.3
v.3.7.4

Database specific

vanir_signatures
[
    {
        "id": "CVE-2026-42144-8a6b8b38",
        "target": {
            "file": "CImg.h"
        },
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "249642404748551601227349605092831156070",
                "208368624136566835070189514910943652454",
                "119132674456202809250499974064139081974",
                "327203091358891169173241453447851621014"
            ]
        },
        "signature_version": "v1",
        "source": "https://github.com/greyclab/cimg/commit/4ca26bce4d8c61fcd1507d5f9401b9fb1222c27d",
        "signature_type": "Line"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42144.json"
vanir_signatures_modified
"2026-08-12T16:25:14Z"