Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
CVE Vulnerability Details :
CVE-2026-42146
PUBLISHED
More InfoOfficial Page
Assigner-GitHub_M
Assigner Org ID-a0819718-46f1-4df5-94e2-005712e83aaa
View Known Exploited Vulnerability (KEV) details
Published At-04 May, 2026 | 17:53
Updated At-06 May, 2026 | 13:44
Rejected At-
▼CVE Numbering Authority (CNA)
CImg Library: Uncontrolled memory allocation via nb_colors field in _load_bmp

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.

Affected Products
Vendor
GreycLab
Product
CImg
Versions
Affected
  • < c3aacf5b96ac1e54b7af1957c6737dbf3949f6d3
Problem Types
TypeCWE IDDescription
CWECWE-789CWE-789: Memory Allocation with Excessive Size Value
Type: CWE
CWE ID: CWE-789
Description: CWE-789: Memory Allocation with Excessive Size Value
Metrics
VersionBase scoreBase severityVector
3.15.5MEDIUM
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Version: 3.1
Base score: 5.5
Base severity: MEDIUM
Vector:
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/GreycLab/CImg/security/advisories/GHSA-g54r-qmgx-c6fv
x_refsource_CONFIRM
https://github.com/GreycLab/CImg/issues/477
x_refsource_MISC
https://github.com/GreycLab/CImg/commit/c3aacf5b96ac1e54b7af1957c6737dbf3949f6d3
x_refsource_MISC
https://github.com/GreycLab/CImg/releases/tag/v.3.7.5
x_refsource_MISC
Hyperlink: https://github.com/GreycLab/CImg/security/advisories/GHSA-g54r-qmgx-c6fv
Resource:
x_refsource_CONFIRM
Hyperlink: https://github.com/GreycLab/CImg/issues/477
Resource:
x_refsource_MISC
Hyperlink: https://github.com/GreycLab/CImg/commit/c3aacf5b96ac1e54b7af1957c6737dbf3949f6d3
Resource:
x_refsource_MISC
Hyperlink: https://github.com/GreycLab/CImg/releases/tag/v.3.7.5
Resource:
x_refsource_MISC
▼Authorized Data Publishers (ADP)
CISA ADP Vulnrichment
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/GreycLab/CImg/issues/477
exploit
Hyperlink: https://github.com/GreycLab/CImg/issues/477
Resource:
exploit
Details not found