UNKNOWN Go

bep/imagemeta allows a potentially large memory allocation in PNG and WebP parsing

GHSA-fmhh-rw3h-785m · CVE-2025-32025 · GO-2025-3599

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

Description

Impact

The buffer created for parsing metadata for PNG and WebP images was only bounded by their input data type, which could lead to potentially large memory allocation, and unreasonably high for image metadata. Before v0.11.0, If you didn't trust the input images, this could be abused to construct denial-of-service attacks.

Patches

v0.11.0 added a 10 MB upper limit.

Ready to move

Start Securing

Free, no credit card | First findings in minutes