CVE-2026-33481: Anchore Stereoscope Missing Cleanup On Read Error

Improper cleanup of temporary storage on error. When `image.New(...).Read()` fails, it leaves behind temporary files. This can lead to exhaustion of system temporary storage (DoS) when scanning specially crafted or large artifacts. Ensure `$OUT.Cleanup()` is called if `$OUT.Read()` returns an error.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-33481-anchore-stereoscope-missing-cleanup-on-read-error --engine opengrep

Description

Improper cleanup of temporary storage on error. When `image.New(...).Read()` fails, it leaves behind temporary files. This can lead to exhaustion of system temporary storage (DoS) when scanning specially crafted or large artifacts. Ensure `$OUT.Cleanup()` is called if `$OUT.Read()` returns an error.