Description
An issue was discovered in apng2gif 1.7. There is improper sanitization of user input causing huge memory allocations, resulting in a crash. This is related to the read_chunk function using the pChunk->size value (within the PNG file) to determine the amount of memory to allocate.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | apng2gif | 1.8-0.1 | — |
| Debian 13 | apng2gif | 1.8-0.1 | — |
| Debian 12 | apng2gif | 1.8-0.1 | — |
| Debian 9 | apng2gif | 1.8-0.1~deb9u1 | DLA-2911-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | apng2gif | 1.8-0.1 | — |
| Ubuntu 18.04 LTS | apng2gif | No fix yet | — |
Advisories 1
- DLA-2911-1 apng2gif - security update Debian Security (DSA / DLA) · Mar 9, 2026