Description
The WriteOnePNGImage function in coders/png.c in GraphicsMagick 1.3.26 allows remote attackers to cause a denial of service (out-of-bounds read and application crash) via a crafted file, because the program's actual control flow was inconsistent with its indentation. This resulted in a logging statement executing outside of a loop, and consequently using an invalid array index corresponding to the loop's exit condition.
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 | graphicsmagick | 1.3.26-4 | — |
| Debian 13 | graphicsmagick | 1.3.26-4 | — |
| Debian 12 | graphicsmagick | 1.3.26-4 | — |
| Debian 9 | graphicsmagick | 1.3.30+hg15796-1~deb9u1 | DSA-4321-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | graphicsmagick | 1.3.26-r2 | — |
| Alpine v3.23 | graphicsmagick | 1.3.26-r2 | — |
| Alpine v3.22 | graphicsmagick | 1.3.26-r2 | — |
| Alpine v3.21 | graphicsmagick | 1.3.26-r2 | — |
| Alpine v3.20 | graphicsmagick | 1.3.26-r2 | — |
Show 11 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | graphicsmagick | 1.3.26-r2 | — |
| Alpine v3.18 | graphicsmagick | 1.3.26-r2 | — |
| Alpine v3.17 | graphicsmagick | 1.3.26-r2 | — |
| Alpine v3.16 | graphicsmagick | 1.3.26-r2 | — |
| Alpine v3.15 | graphicsmagick | 1.3.26-r2 | — |
| Alpine v3.14 | graphicsmagick | 1.3.26-r2 | — |
| Alpine v3.13 | graphicsmagick | 1.3.26-r2 | — |
| Alpine v3.12 | graphicsmagick | 1.3.26-r2 | — |
| Alpine v3.11 | graphicsmagick | 1.3.26-r2 | — |
| Alpine v3.10 | graphicsmagick | 1.3.26-r2 | — |
| Alpine v3.9 | graphicsmagick | 1.3.26-r2 | — |
Advisories 1
- DSA-4321-1 graphicsmagick - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- DSA-4321 vendor-advisory
- http://hg.code.sf.net/p/graphicsmagick/code/rev/f423ba88ca4e
- FEDORA-2019-da4c20882c vendor-advisory
- FEDORA-2019-425a1aa7c9 vendor-advisory