← Back to CVE Explorer

CVE-2026-71202

Full vulnerability record from the local CVENow database.

Description

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 score
7.5 (v3.1)
Vulnerability status
Deferred
Source identifier
309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
Published
2026-08-05 08:16:42.080000
Last modified
2026-10-24 15:10:00.190000
View original CVE JSON
{
  "id": "CVE-2026-71202",
  "sourceIdentifier": "309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c",
  "published": "2026-08-05T08:16:42.080",
  "lastModified": "2026-10-24T15:10:00.190",
  "vulnStatus": "Deferred",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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."
    },
    {
      "lang": "es",
      "value": "La función ’crop()’ del crate ’raster’ de Rust (src/editor.rs) limita el ancho/alto del recorte con respecto a las dimensiones de origen, pero solo limita los parámetros ’offset_x’/’offset_y’ con respecto a 0, nunca con respecto al ancho/alto de origen. Cuando un desplazamiento excede la dimensión de origen correspondiente, ’width2 - offset_x’ (o el equivalente para la altura) sufre un desbordamiento negativo a un ’i32’ negativo, lo cual las compilaciones de lanzamiento no interceptan; el valor negativo se castea luego a ’usize’ dentro de la llamada a ’Vec::with_capacity()’ de ’Image::blank()’, lo que desencadena un pánico por desbordamiento de capacidad y bloquea el proceso con una única solicitud de recorte manipulada."
    }
  ],
  "affected": [
    {
      "source": "309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c",
      "affectedData": [
        {
          "vendor": "kosinix",
          "product": "raster",
          "defaultStatus": "unknown",
          "programFiles": [
            "src/editor.rs"
          ],
          "versions": [
            {
              "version": "0",
              "lessThanOrEqual": "0.2.1",
              "versionType": "custom",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
          "baseScore": 7.5,
          "baseSeverity": "HIGH",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "NONE",
          "integrityImpact": "NONE",
          "availabilityImpact": "HIGH"
        },
        "exploitabilityScore": 3.9,
        "impactScore": 3.6
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-08-05T13:24:48.832810Z",
          "id": "CVE-2026-71202",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "yes"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-191"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/kosinix/raster/issues/30",
      "source": "309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c"
    },
    {
      "url": "https://github.com/kosinix/raster/issues/30",
      "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"
    }
  ]
}