CVE-2026-71202: CWE-191 Integer Underflow in kosinix raster
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.
AI Analysis
Technical Summary
The raster Rust crate's crop() function (src/editor.rs) clamps the crop width and height parameters against the source image dimensions but only clamps offset_x and offset_y parameters against zero, not against the source width or height. If offset_x or offset_y exceed the corresponding source dimension, the calculation width2 - offset_x or height2 - offset_y underflows to a negative i32 value. In release builds, this negative value is not trapped and is cast to a large usize value inside Image::blank()'s Vec::with_capacity() call. This triggers a capacity-overflow panic, crashing the process when a specially crafted crop request is made.
Potential Impact
This vulnerability causes a denial of service by crashing the process when a crafted crop request triggers the integer underflow and subsequent capacity-overflow panic. There is no impact on confidentiality or integrity reported. No known exploits are currently in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing untrusted or malformed crop requests that could trigger this condition.
CVE-2026-71202: CWE-191 Integer Underflow in kosinix raster
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. 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.
CVSS v3.1
Score 7.5high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The raster Rust crate's crop() function (src/editor.rs) clamps the crop width and height parameters against the source image dimensions but only clamps offset_x and offset_y parameters against zero, not against the source width or height. If offset_x or offset_y exceed the corresponding source dimension, the calculation width2 - offset_x or height2 - offset_y underflows to a negative i32 value. In release builds, this negative value is not trapped and is cast to a large usize value inside Image::blank()'s Vec::with_capacity() call. This triggers a capacity-overflow panic, crashing the process when a specially crafted crop request is made.
Potential Impact
This vulnerability causes a denial of service by crashing the process when a crafted crop request triggers the integer underflow and subsequent capacity-overflow panic. There is no impact on confidentiality or integrity reported. No known exploits are currently in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing untrusted or malformed crop requests that could trigger this condition.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-05T06:56:15.798Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a72e5cbbf8831d53973523a
Added to database: 08/05/2026, 07:27:07 UTC
Last enriched: 08/05/2026, 07:41:50 UTC
Last updated: 08/06/2026, 00:41:15 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.