{"vuln_id":"CVE-2026-47667","aliases":[],"description":"CImg Library is a C++ library for image processing. Prior to version 4.0.0 in `_load_analyze()`, the header_size field is read as an `unsigned int` from the first 4 bytes of an Analyze/NIfTI file and passed directly to `new unsigned char[header_size]` without being bounded against the actual file size. A value up to ~4 GB is accepted. If the subsequent `fread` returns `short`  as it will for any malformed file), the function throws a `CImgIOException` and the allocated buffer is never freed. A 6-byte crafted file is sufficient to trigger an allocation of ~1.3 GB per call, with the full allocation leaked on every error path. The issue is reachable via `load_analyze()` and the generic `load()` when the file extension is .hdr, .img, or .nii. Version 4.0.0 fixes the issue.","published_at":"2026-07-21T20:17:01.323000Z","modified_at":"2026-11-21T13:00:34.288837Z","first_seen_at":"2026-11-21T19:15:56.756284Z","severity":"high","severity_source":"cvss","cvss_score":7.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","cwe":[],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00517,"epss_percentile":0.44872,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-47667"},"matched_alias":null,"items":[{"id":11210,"source":{"id":"osv","name":"OSV.dev"},"title":"DEBIAN-CVE-2026-47667: CImg Library is a C++ library for image processing. Prior to version 4.0.0 in `_load_analyze()`, the header_size field is read as an `unsigned int` from the fi…","summary":"CImg Library is a C++ library for image processing. Prior to version 4.0.0 in `_load_analyze()`, the header_size field is read as an `unsigned int` from the first 4 bytes of an Analyze/NIfTI file and passed directly to `new unsigned char[header_size]` without being bounded against the actual file size. A value up to ~4 GB is accepted. If the subsequent `fread` returns `short`  as it will for any malformed file), the function throws a `CImgIOException` and the allocated buffer is never freed. A 6-byte crafted file is sufficient to trigger an allocation of ~1.3 GB per call, with the full allocation leaked on every error path. The issue is reachable via `load_analyze()` and the generic `load()` when the file extension is .hdr, .img, or .nii. Version 4.0.0 fixes the issue.\n\nAffected: Debian:12:cimg, Debian:13:cimg, Debian:14:cimg\n\nFixed in: 3.5.2+dfsg-1+deb13u2, 4.0.4+dfsg-1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2026-47667","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-47667","published_at":"2026-07-21T20:17:01.323000Z","updated_at":"2026-11-21T13:00:34.288837Z","fetched_at":"2026-11-21T19:15:55.946522Z","severity":"high","cvss_score":7.5,"epss":0.00517,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"debian","product":"12:cimg","vuln_id":"CVE-2026-47667","vuln_ids":["CVE-2026-47667","DEBIAN-CVE-2026-47667"],"tags":["osv","debian","fix-available"],"cluster_id":10837,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11210","html":"https://vulnwatch.ve1ve2.com/item/11210"}}]}