๐Ÿ” CVE Alert

CVE-2026-71202

HIGH 7.5

raster: Integer Underflow in crop() Offset Handling Causes Capacity-Overflow Panic

CVSS Score
7.5
EPSS Score
0.0%
EPSS Percentile
0th

The raster Rust crate's crop() function (src/editor.rs) clamps the crop width/height against source dimensions but only clamps the offset_x/offset_y parameters against 0, never against the source width/height. When an offset exceeds the corresponding source dimension, `width2 - offset_x` (or the height equivalent) underflows to a negative i32, which release builds do not trap; the negative value is then cast to usize inside Image::blank()'s Vec::with_capacity() call, triggering a capacity-overflow panic and crashing the process on a single crafted crop request.

CWE CWE-191
Vendor kosinix
Product raster
Published Aug 5, 2026
Stay Ahead of the Next One

Get instant alerts for kosinix raster

Be the first to know when new high vulnerabilities affecting kosinix raster are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability

Affected Versions

kosinix / raster
0 โ‰ค 0.2.1

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/kosinix/raster/issues/30

Credits

agrresore