CImg Library: Uncontrolled memory allocation via nb_colors field in _load_bmp
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| GreycLab | CImg | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Greyclab | Cimg |
|
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.182% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Greyclab
Greyclab cimg |
|
| Vendors & Products |
Greyclab
Greyclab cimg |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | CImg Library: Uncontrolled memory allocation via nb_colors field in _load_bmp | |
| Weaknesses | CWE-789 | |
| References |
| |
| Metrics |
cvssV3_1
|