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.
AI Analysis
Technical Summary
The raster crate for Rust contains a vulnerability in its crop function located in src/editor.rs. While the crop width and height parameters are properly clamped against the source image dimensions, the offset_x and offset_y parameters are only clamped against zero and not against the maximum source width or height. This can lead to an integer underflow condition (CWE-191) when offset values exceed source dimensions, potentially causing a denial of service or application crash. The CVSS v3.1 score is 7.5 (high severity) with network attack vector, low attack complexity, no privileges or user interaction required, and impact limited to availability.
Potential Impact
The vulnerability can cause an integer underflow leading to a denial of service (application crash or instability) when the crop function is called with offset parameters exceeding source dimensions. There is no reported impact on confidentiality or integrity. 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 using untrusted input for offset_x and offset_y parameters in the crop function to prevent triggering the integer underflow.
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.
CVSS v3.1
Score 7.5high
Affected software
kosinix
raster
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The raster crate for Rust contains a vulnerability in its crop function located in src/editor.rs. While the crop width and height parameters are properly clamped against the source image dimensions, the offset_x and offset_y parameters are only clamped against zero and not against the maximum source width or height. This can lead to an integer underflow condition (CWE-191) when offset values exceed source dimensions, potentially causing a denial of service or application crash. The CVSS v3.1 score is 7.5 (high severity) with network attack vector, low attack complexity, no privileges or user interaction required, and impact limited to availability.
Potential Impact
The vulnerability can cause an integer underflow leading to a denial of service (application crash or instability) when the crop function is called with offset parameters exceeding source dimensions. There is no reported impact on confidentiality or integrity. 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 using untrusted input for offset_x and offset_y parameters in the crop function to prevent triggering the integer underflow.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-05T06:56:15.798Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a72e5cbbf8831d53973523a
Added to database: 08/05/2026, 07:27:07 UTC
Last enriched: 08/12/2026, 14:25:03 UTC
Last updated: 09/17/2026, 22:01:38 UTC
Views: 42
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.