CVE and update status of the FreeBSD ports tree4,826 unaddressed CVEs in 618 portsAll times are CET

CVE details

CVE-2025-66628

ImageMagick is a software suite to create, edit, compose, or convert bitmap images. In versions 7.1.2-9 and prior, the TIM (PSX TIM) image parser contains a critical integer overflow vulnerability in its ReadTIMImage function (coders/tim.c). The code reads width and height (16-bit values) from the file header and calculates image_size = 2 * width * height without checking for overflow. On 32-bit systems (or where size_t is 32-bit), this calculation can overflow if width and height are large (e.g., 65535), wrapping around to a small value. This results in a small heap allocation via AcquireQuantumMemory and later operations relying on the dimensions can trigger an out of bounds read. This issue is fixed in version 7.1.2-10.

Score
7.5 high
Published
2025-12-10
Links
NVD · cve.org

Affected ports (2)

PortPackageVersionStatusMaintainer
graphics/ImageMagick6ImageMagick66.9.13.50_1,1unaddresseddesktop@FreeBSD.org
graphics/ImageMagick6ImageMagick6-nox116.9.13.50_1,1unaddresseddesktop@FreeBSD.org

Template for a VuXML entry

Range taken from the CVE record, check it before committing. make newentry in security/vuxml creates the vid.

  <vuln vid="FIXME (make newentry)">
    <topic>FIXME -- FIXME</topic>
    <affects>
      <package>
	<name>ImageMagick6</name>
	<range><lt>7.1.2-10</lt></range>
      </package>
      <package>
	<name>ImageMagick6-nox11</name>
	<range><lt>7.1.2-10</lt></range>
      </package>
    </affects>
    <description>
      <body xmlns="http://www.w3.org/1999/xhtml">
	<p>ImageMagick is a software suite to create, edit, compose, or convert
	bitmap images. In versions 7.1.2-9 and prior, the TIM (PSX TIM) image
	parser contains a critical integer overflow vulnerability in its
	ReadTIMImage function (coders/tim.c). The code reads width and height
	(16-bit values) from the file header and calculates image_size = 2 *
	width * height without checking for overflow. On 32-bit systems (or
	where size_t is 32-bit), this calculation can overflow if width and
	height are large (e.g., 65535), wrapping around to a small value. This
	results in a small heap allocation via AcquireQuantumMemory and later
	operations relying on the dimensions can trigger an out of bounds
	read. This issue is fixed in version 7.1.2-10.</p>
      </body>
    </description>
    <references>
      <cvename>CVE-2025-66628</cvename>
      <url>https://nvd.nist.gov/vuln/detail/CVE-2025-66628</url>
    </references>
    <dates>
      <discovery>2025-12-10</discovery>
      <entry>2026-10-25</entry>
    </dates>
  </vuln>