bep/imagemeta flaw can exhaust memory when decoding certain PNG metadata
- bep/imagemeta
- denial of service
- memory exhaustion
- PNG

Flaw in PNG metadata processing could cause denial of service
Update to version
0.17.3to resolve the memory allocation issue
The Go library bep/imagemeta has an unbounded memory allocation vulnerability when decoding PNG images containing a zTXt chunk labeled “Raw profile type iptc.” Applications that process untrusted PNG files with affected versions could suffer denial of service through memory exhaustion.
The vulnerability affects bep/imagemeta versions before 0.17.3 and is fixed in version 0.17.3. A decompression bomb can cause resident memory use; the effect of an oversized allocation request also depends on platform memory overcommit behavior and configured memory limits.
Until they can update, developers can limit PNG input size before decoding or remove IPTC metadata from Options.Sources when their applications do not need it.
Key terms explained
- denial of service
A denial of service is an attack that prevents authorized users from accessing network resources or systems.
Think of it this way. It is like a crowd of people intentionally blocking the entrance to a store so that real customers cannot get inside.




