CImg Library: Integer overflow in PNM size check bypasses memory guard (_load_pnm)
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.142% 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 4ca26bc, there is an integer overflow vulnerability in the W*H*D size computation inside _load_pnm() 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. | |
| Title | CImg Library: Integer overflow in PNM size check bypasses memory guard (_load_pnm) | |
| Weaknesses | CWE-190 | |
| References |
| |
| Metrics |
cvssV3_1
|