Skip to main content

raster Rust crate CVE-2026-71202

| EUVDEUVD-2026-53199 HIGH
Integer Underflow (CWE-191)
2026-08-05 TuranSec GHSA-hjwh-6x9j-wjwq
7.5
CVSS 3.1 · Vendor: TuranSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit HTTP request with crafted crop offset
  2. Delivery
    crop() receives offset_x exceeding source image width
  3. Exploit
    Signed i32 subtraction wraps to large negative value in release build
  4. Execution
    Negative i32 cast to usize yields enormous allocation size
  5. Persist
    Vec::with_capacity() in Image::blank() triggers capacity-overflow panic
  6. Impact
    Process terminates (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer underflow checks
Exploitation Conditions

Exploitation requires that the target application uses the raster Rust crate and exposes the crop() function to attacker-controlled offset_x or offset_y input - either directly through an API or indirectly by processing attacker-supplied image files paired with crop parameters. The underflow only manifests in Rust release builds (cargo build --release); debug builds produce an arithmetic overflow panic before reaching the usize cast, so development environments will not exhibit the crash in the same way but are still vulnerable to panic. The CVSS vector of PR:N and UI:N is valid only when the crop endpoint is publicly accessible without authentication; if all callers are authenticated or internal, the exploitability class drops substantially. There is no requirement for any special image format, codec, or platform-specific configuration - any image processed by crop() with an out-of-bounds offset triggers the condition. The limiting factor for most deployments is whether untrusted callers can supply arbitrary offset parameters.

Impact

CVSS 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) classifies this as a High-severity, remotely exploitable DoS with zero authentication or interaction requirements and low attack complexity - a realistic worst-case for applications that pipe untrusted input straight into crop(). Exploitation is fully automatable: a single HTTP request with an out-of-range offset is sufficient to crash the process, satisfying the 'automatable' axis of SSVC. No EPSS score was supplied, so exploitation probability cannot be quantified precisely, but the mechanical simplicity of triggering the panic suggests high exploitability if the endpoint is reachable. The vulnerability is NOT in the CISA KEV and no public POC has been confirmed in the provided data, so active mass-exploitation is not currently evidenced. The key risk moderator is deployment context: the raster crate is a niche Rust image library and its crop() function must be exposed to attacker-controlled input over the network for the CVSS network vector to apply - many uses of this library may be in server-side processing pipelines with internal-only access. There is no confidentiality or integrity impact; the sole consequence is process termination. Overall: a genuine High priority for any internet-facing service using this crate's crop() function, but limited blast radius given the library's niche footprint.

Exploit ScenarioDerived

An attacker sends an HTTP request to an image-processing endpoint, specifying a crop operation with offset_x set to a value larger than the source image width - for example, uploading a 100×100 pixel image and requesting a crop at offset_x=500. The raster crop() function performs 100 - 500 as i32 in release mode, wrapping to a large negative value, which is then cast to usize and passed to Vec::with_capacity(), causing an immediate capacity-overflow panic that terminates the server worker process. No confirmed public POC exists at time of analysis, but the GitHub issue at https://github.com/kosinix/raster/issues/30 may contain reproduction details.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 05, 2026

Integer underflow in the raster Rust crate's crop() function enables remote process crash via a single crafted request. When offset_x or offset_y exceeds the source image dimension, the signed subtraction wraps to a large negative i32 in release builds; that value is then cast to usize and passed to Vec::with_capacity(), triggering an unrecoverable capacity-overflow panic that kills the host process. No active exploitation is confirmed (not in CISA KEV) and no public POC is listed, but the AV:N/AC:L/PR:N/UI:N CVSS vector indicates zero-friction denial-of-service for any application that exposes the crop() call to untrusted input.

RemediationAI

No vendor-released patch has been identified at time of analysis; the only available reference is the GitHub issue at https://github.com/kosinix/raster/issues/30, which should be monitored for an upstream fix or tagged release. Until a patch is available, the most effective compensating control is to validate offset_x and offset_y at the application boundary before calling crop(), explicitly rejecting any offset value that equals or exceeds the corresponding source image dimension (offset_x must be strictly less than source width; offset_y strictly less than source height) - this prevents the underflowing subtraction entirely. Alternatively, applications that cannot immediately apply input validation should restrict the crop() endpoint to authenticated or internally-trusted callers only, removing the network-accessible unauthenticated attack surface the CVSS AV:N vector assumes. For new projects or those with flexibility to migrate, replacing the raster dependency with a maintained crate such as the image crate is advisable; the trade-off is a migration effort proportional to API surface used.

Affected VersionsENISA

raster 0 ≤0.2.1

Affected Packages

euvd raster no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The raster crate (CPE: cpe:2.3:a:kosinix:raster:*:*:*:*:*:*:*:*) is a Rust image-processing library authored by kosinix. The flaw lives in src/editor.rs inside the crop() function, which clamps the requested crop width and height against source dimensions but applies no upper-bound check to offset_x or offset_y - only a lower-bound clamp against zero. When an attacker supplies an offset beyond the image edge, the subtraction width2 - offset_x (performed as signed i32) wraps in Rust release builds (release mode uses wrapping two's-complement arithmetic rather than the overflow panic of debug mode), producing a large negative integer. That value is subsequently cast to usize - a widening reinterpretation that yields an astronomically large allocation size - and forwarded to Vec::with_capacity() inside Image::blank(). The allocator rejects the impossible capacity, Rust panics, and the OS terminates the process. CWE-191 (Integer Underflow / Wrap-or-Wraparound) precisely describes this root cause: an arithmetic operation produces a result below the minimum representable value of the type, and the wraparound is later interpreted in a type context where it causes catastrophic downstream behaviour.

Know when Raster gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (TuranSec) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

AV:N and PR:N reflect worst-case unauthenticated network exposure of the crop endpoint; A:H reflects guaranteed process crash; C:N and I:N because the flaw yields no data exposure or data modification.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 7.5 HIGH

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A vulnerability in image-processing libraries using the raster Rust crate allows unauthenticated attackers to crash application servers remotely with a single request. No public exploit code has been identified at time of analysis, but the attack requires no authentication, creating a significant denial-of-service threat to any service accepting user-uploaded images or providing image manipulation capabilities. The lack of an available vendor patch creates immediate operational risk for affected production systems.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Until a patch is available, implement input validation to reject crop() requests with offsets exceeding image dimensions, deploy rate limiting and connection throttling on image processing endpoints, configure process monitoring and automatic restart for crashed services, and isolate image processing workloads in containerized environments with enforced resource limits to contain the blast radius of process failures.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Rare
niche Rust image library with limited production enterprise footprint
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy