CVE-2020-25674

Publication date 8 December 2020

Last updated 16 October 2024


Ubuntu priority

Cvss 3 Severity Score

5.5 · Medium

Score breakdown

WriteOnePNGImage() from coders/png.c (the PNG coder) has a for loop with an improper exit condition that can allow an out-of-bounds READ via heap-buffer-overflow. This occurs because it is possible for the colormap to have less than 256 valid values but the loop condition will loop 256 times, attempting to pass invalid colormap data to the event logger. The patch replaces the hardcoded 256 value with a call to MagickMin() to ensure the proper value is used. This could impact application availability when a specially crafted input file is processed by ImageMagick. This flaw affects ImageMagick versions prior to 7.0.8-68.

Status

Package Ubuntu Release Status
imagemagick 24.10 oracular
Not affected
24.04 LTS noble
Not affected
23.10 mantic
Not affected
23.04 lunar
Not affected
22.10 kinetic
Not affected
22.04 LTS jammy
Not affected
21.10 impish
Not affected
21.04 hirsute
Not affected
20.10 groovy
Fixed 8:6.9.10.23+dfsg-2.1ubuntu13.3
20.04 LTS focal
Fixed 8:6.9.10.23+dfsg-2.1ubuntu11.4
18.04 LTS bionic
Fixed 8:6.9.7.4+dfsg-16ubuntu6.11
16.04 LTS xenial
14.04 LTS trusty

Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

Get Ubuntu Pro

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
imagemagick

Severity score breakdown

Parameter Value
Base score 5.5 · Medium
Attack vector Local
Attack complexity Low
Privileges required None
User interaction Required
Scope Unchanged
Confidentiality None
Integrity impact None
Availability impact High
Vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

References

Related Ubuntu Security Notices (USN)

    • USN-4988-1
    • ImageMagick vulnerabilities
    • 15 June 2021
    • USN-5335-1
    • ImageMagick vulnerabilities
    • 18 March 2022
    • USN-7068-1
    • ImageMagick vulnerabilities
    • 15 October 2024

Other references