<Vulnerability name="CVE-2026-71202">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Important</ThreatSeverity>
    <PublicDate>2026-08-05T06:58:53</PublicDate>
    <Bugzilla id="2511381" url="https://bugzilla.redhat.com/show_bug.cgi?id=2511381" xml:lang="en:us">
raster: Raster: Denial of Service via integer underflow in image cropping function
    </Bugzilla>
    <CVSS3 status="draft">
        <CVSS3BaseScore>7.5</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-191</CWE>
    <Details xml:lang="en:us" source="Mitre">
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.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in the `raster` Rust crate. A remote attacker could exploit an integer underflow vulnerability in the image cropping function by sending a specially crafted request. This could lead to a denial of service (DoS), causing the application to crash and become unavailable.
    </Details>
    <PackageState cpe="cpe:/a:redhat:logging:6">
        <ProductName>Logging Subsystem for Red Hat OpenShift</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>openshift-logging/cluster-logging-rhel9-operator</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:openshift:4">
        <ProductName>Red Hat OpenShift Container Platform 4</ProductName>
        <FixState>Affected</FixState>
        <PackageName>openshift4/ose-tests-rhel9</PackageName>
    </PackageState>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-71202
https://nvd.nist.gov/vuln/detail/CVE-2026-71202
https://github.com/kosinix/raster/issues/30
    </References>
</Vulnerability>