7.5 HIGH
- CVSS version (CVSS): 3.1
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): Low (L)
- Privileges Required (PR): None (N)
- User Interaction (UI): None (N)
- Scope (S): Unchanged (U)
- Confidentiality (C): None (N)
- Integrity (I): None (N)
- Availability (A): High (H)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): Low (L)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): None (N)
- Modified Confidentiality (MC): None (N)
- Modified Scope (MS): Unchanged (U)
- Modified Integrity (MI): None (N)
- Modified Availability (MA): High (H)
Activity log
- Created suggestion
raster: Integer Underflow in crop() Offset Handling Causes Capacity-Overflow Panic
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.
References
Affected products
- =<0.2.1
Matching in nixpkgs
pkgs.rastertoezpl
CUPS driver for GODEX printers
pkgs.librasterlite2
Advanced library supporting raster handling methods
-
nixos-unstable -
- nixos-unstable-small 1.1.0-beta1
-
nixos-26.05 -
- nixos-26.05-small 1.1.0-beta1
pkgs.cups-drv-rastertosag-gdi
CUPS driver for Ricoh Aficio SP 1000S and SP 1100S printers
pkgs.haskellPackages.Rasterific
A pure haskell drawing engine
pkgs.python313Packages.rasterio
Python package to read and write geospatial raster data
pkgs.python314Packages.rasterio
Python package to read and write geospatial raster data
pkgs.haskellPackages.rasterific-svg
SVG renderer based on Rasterific
pkgs.python313Packages.django-raster
Basic raster data integration for Django
pkgs.python314Packages.django-raster
Basic raster data integration for Django
pkgs.haskellPackages.diagrams-rasterific
Rasterific backend for diagrams
Package maintainers
-
@Yarny0 Yarny
-
@autra Augustin Trancart <augustin.trancart@gmail.com>
-
@l0b0 Victor Engmark <victor@engmark.name>
-
@imincik Ivan Mincik <ivan.mincik@gmail.com>
-
@nh2 Niklas Hambüchen <mail@nh2.me>
-
@nialov Nikolas Ovaskainen <nikolasovaskainen@gmail.com>
-
@sikmir Nikolay Korotkiy <sikmir@disroot.org>
-
@willcohen Will Cohen
-
@StarGate01 Christoph Honal <christoph.honal@web.de>