CVE-2025-53633: Go Archive Zip Unbounded Io Copy

A reader obtained from archive/zip (*File).Open() is decompressed with io.Copy and no cumulative size limit. A crafted zip archive (zip bomb) can inflate to arbitrary size and exhaust disk or memory, causing a denial of service (CWE-405; CVE-2025-53633). Replace io.Copy with io.CopyN inside a loop that accumulates bytes against a maximum-size budget, or wrap

Provally CuratedPublic repositoryMediumHigh confidenceVerifiedApache-2.0Go
greprules fetch cve-2025-53633-go-archive-zip-unbounded-io-copy --engine opengrep

Description

A reader obtained from archive/zip (*File).Open() is decompressed with io.Copy and no cumulative size limit. A crafted zip archive (zip bomb) can inflate to arbitrary size and exhaust disk or memory, causing a denial of service (CWE-405; CVE-2025-53633). Replace io.Copy with io.CopyN inside a loop that accumulates bytes against a maximum-size budget, or wrap