Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit HTTP request with crafted crop offset
-
Deliverycrop() receives offset_x exceeding source image width
-
ExploitSigned i32 subtraction wraps to large negative value in release build
-
ExecutionNegative i32 cast to usize yields enormous allocation size
-
PersistVec::with_capacity() in Image::blank() triggers capacity-overflow panic
-
ImpactProcess 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
EUVD-2026-53199
GHSA-hjwh-6x9j-wjwq
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB