CVE-2026-42146
Last modified
CVE-2026-42146 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 0.12% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-42146?
How severe is CVE-2026-42146?
How do I fix CVE-2026-42146?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-42140PlantUML Macro is a macro for rendering UML diagrams from si…4.4
- CVE-2026-42141Xibo is an open source digital signage platform with a web c…7.7
- CVE-2026-42142TypeBot is a chatbot builder tool. Prior to version 3.17.0, …7.1
- CVE-2026-42143Coolify is an open-source and self-hostable tool for managin…8.8
- CVE-2026-42144CImg Library is a C++ library for image processing. Prior to…6.1
- CVE-2026-42145Coolify is an open-source and self-hostable tool for managin…3.1
- CVE-2026-42147Coolify is an open-source and self-hostable tool for managin…4.9
- CVE-2026-42148Coolify is an open-source and self-hostable tool for managin…3.8
- CVE-2026-4215A security flaw has been discovered in FlowCI flow-core-x up…6.3
- CVE-2026-42150wlc is a Weblate command-line client using Weblate's REST AP…4.8
- CVE-2026-42151Prometheus is an open-source monitoring system and time seri…7.5
- CVE-2026-42153Coolify is an open-source and self-hostable tool for managin…8.8
Are you affected by CVE-2026-42146?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
