CVE-2026-71202 Details
Description
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.
A denial-of-service vulnerability has been identified in the raster Rust crate, specifically in the crop() function of the editor module. The issue arises because the function improperly validates offset parameters against the source image dimensions. When an offset exceeds the source width or height, it causes an integer underflow, leading to a negative value that, when converted to an unsigned size, requests an excessive memory allocation. This allocation request triggers a process panic, crashing the application. The vulnerability affects all published versions of the raster crate, which is used in image processing applications that allow users to specify crop dimensions and offsets.
To address this vulnerability, the raster crate's crop() function should be modified to clamp offset values against the source dimensions before performing the subtraction. Additionally, the Image::blank() function should validate that width and height are positive before proceeding with the allocation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 5, 2026CISA-ADP
Assessed Aug 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/kosinix/raster/issues/30 | CISA-ADP | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/kosinix/raster/issues/30 | TuranSec | ExploitIssue TrackingTechnical DescriptionVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-191 | Integer Underflow (Wrap or Wraparound) | TuranSec |
Affected Products
| Product | Versions |
|---|---|
| raster | >= 0, <= 0.2.1 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 10, 2026 | CVE Modified | TuranSec |
| Aug 5, 2026 | CVE Modified | CISA-ADP |
| Aug 5, 2026 | New CVE Received | TuranSec |
Volerion