CVE-2020-27756 In ParseMetaGeometry() of MagickCore/geometry.c, image height and width calculations can lead to divide-by-zero conditions which also lead to undefined behavior. This flaw can be triggered by a crafte...
MediumCVSS 5.5
EPSS 0.84%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
In ParseMetaGeometry() of MagickCore/geometry.c, image height and width calculations can lead to divide-by-zero conditions which also lead to undefined behavior. This flaw can be triggered by a crafted input file processed by ImageMagick and could impact application availability. The patch uses multiplication in addition to the function PerceptibleReciprocal() in order to prevent such divide-by-zero conditions. This flaw affects ImageMagick versions prior to 7.0.9-0.
Upgrade path
5 packages: 5 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/imagemagick(Debian 12) | < 8:6.9.11.24+dfsg-1 | 8:6.9.11.24+dfsg-1 | Fixed |
| debian/imagemagick(Debian 13) | < 8:6.9.11.24+dfsg-1 | 8:6.9.11.24+dfsg-1 | Fixed |
| debian/imagemagick(Debian 14) | < 8:6.9.11.24+dfsg-1 | 8:6.9.11.24+dfsg-1 | Fixed |
| ImageMagick | >= 6.9.9-34, < 6.9.10-69; >= 7.0.0-0, < 7.0.9-0 | 6.9.10-69, 7.0.9-0 | Fixed |
| ubuntu/imagemagick(Ubuntu 20.04) | < 8:6.9.10.23+dfsg-2.1ubuntu11.4; = 8:6.9.10.23+dfsg-2.1ubuntu3; = 8:6.9.10.23+dfsg-2.1ubuntu8; = 8:6.9.10.23+dfsg-2.1ubuntu9 +4 more | 8:6.9.10.23+dfsg-2.1ubuntu11.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/imagemagick(Debian:12) | < 8:6.9.11.24+dfsg-1 | 8:6.9.11.24+dfsg-1 |
| debian/imagemagick(Debian:13) | < 8:6.9.11.24+dfsg-1 | 8:6.9.11.24+dfsg-1 |
| debian/imagemagick(Debian:14) | < 8:6.9.11.24+dfsg-1 | 8:6.9.11.24+dfsg-1 |
| ImageMagick | >= 6.9.9-34, < 6.9.10-69 | 6.9.10-69 |
| ImageMagick | >= 7.0.0-0, < 7.0.9-0 | 7.0.9-0 |
| ubuntu/imagemagick(Ubuntu:20.04) | < 8:6.9.10.23+dfsg-2.1ubuntu11.4 | 8:6.9.10.23+dfsg-2.1ubuntu11.4 |
| ubuntu/imagemagick(Ubuntu:20.04) | = 8:6.9.10.23+dfsg-2.1ubuntu3 | No fix listed |
| ubuntu/imagemagick(Ubuntu:20.04) | = 8:6.9.10.23+dfsg-2.1ubuntu8 | No fix listed |
| ubuntu/imagemagick(Ubuntu:20.04) | = 8:6.9.10.23+dfsg-2.1ubuntu9 | No fix listed |
| ubuntu/imagemagick(Ubuntu:20.04) | = 8:6.9.10.23+dfsg-2.1ubuntu10 | No fix listed |
| ubuntu/imagemagick(Ubuntu:20.04) | = 8:6.9.10.23+dfsg-2.1ubuntu11 | No fix listed |
| ubuntu/imagemagick(Ubuntu:20.04) | = 8:6.9.10.23+dfsg-2.1ubuntu11.1 | No fix listed |
| ubuntu/imagemagick(Ubuntu:20.04) | = 8:6.9.10.23+dfsg-2.1ubuntu11.2 | No fix listed |
References
- Debian Security Tracker CVE-2020-27756 vendor-advisory
- bugzilla.redhat.com exploit issue-tracking patch third-party-advisory
- [debian-lts-announce] 20230311 [SECURITY] [DLA 3357-1] imagemagick security update mailing-list
- ubuntu.com issue-tracking
- ubuntu.com vendor-advisory
- www.cve.org issue-tracking