---
id: CVE-2026-71202
title: >-
  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.
summary: >-
  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.
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-191
published: '2026-08-05'
updated: '2026-08-10'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-71202'
references:
  - url: 'https://github.com/kosinix/raster/issues/30'
    label: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
  - url: 'https://github.com/kosinix/raster/issues/30'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
epss: 0.00263
epssPercentile: 0.18411
ingestedAt: '2026-08-10T12:39:48.197Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
