Every CVE Search/ Get API key

CVE-2018-17965

ImageMagick 7.0.7-28 has a memory leak vulnerability in WriteSGIImage in coders/sgi.c.

6.5 MediumFix available

ImageMagick 7.0.7-28 has a memory leak vulnerability in WriteSGIImage in coders/sgi.c.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

1.77%Up 1.1 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 6.5

ImageMagick 7.0.7-28 has a memory leak vulnerability in WriteSGIImage in coders/sgi.c.

Record
CVE-2018-17965
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:N/A:P
Weakness
CWE-772
Updated
2026-11-02
CVE List No score

ImageMagick 7.0.7-28 has a memory leak vulnerability in WriteSGIImage in coders/sgi.c.

Record
CVE-2018-17965
Updated
2026-11-02
EUVDEUVD-2018-9705 No score

ImageMagick 7.0.7-28 has a memory leak vulnerability in WriteSGIImage in coders/sgi.c.

Record
EUVD-2018-9705
Updated
2026-11-03
GitHub AdvisoriesGHSA-fr3c-69vx-774f 6.5

ImageMagick 7.0.7-28 has a memory leak vulnerability in WriteSGIImage in coders/sgi.c.

ImageMagick 7.0.7-28 has a memory leak vulnerability in WriteSGIImage in coders/sgi.c.

Record
GHSA-fr3c-69vx-774f
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness
CWE-772
Updated
2026-11-02
OSVALPINE-CVE-2018-17965 6.5

ImageMagick 7.0.7-28 has a memory leak vulnerability in WriteSGIImage in coders/sgi.c.

Record
ALPINE-CVE-2018-17965
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-03
OSV 6.5

ImageMagick 7.0.7-28 has a memory leak vulnerability in WriteSGIImage in coders/sgi.c.

Record
CVE-2018-17965
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 7 moreShow less
OSVDEBIAN-CVE-2018-17965 6.5

ImageMagick 7.0.7-28 has a memory leak vulnerability in WriteSGIImage in coders/sgi.c.

Record
DEBIAN-CVE-2018-17965
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2018-17965 6.5

ImageMagick 7.0.7-28 has a memory leak vulnerability in WriteSGIImage in coders/sgi.c.

Record
UBUNTU-CVE-2018-17965
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVMGASA-2018-0496 No score

Updated graphicsmagick packages fix security vulnerabilities & bugs

Graphicsmagick has been updated to fix several bugs and security issues.

Record
MGASA-2018-0496
Updated
2026-11-02
OSVSUSE-SU-2018:3191-1 No score

Security update for ImageMagick

This update for ImageMagick fixes the following issues:

Security issues fixed:

  • CVE-2018-18024: Fixed an infinite loop in the ReadBMPImage function of the coders/bmp.c file. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted bmp file. (bsc#1111069)
  • CVE-2018-18016: Fixed a memory leak in WritePCXImage (bsc#1111072).
  • CVE-2018-17965: Fixed a memory leak in WriteSGIImage (bsc#1110747).
  • CVE-2018-17966: Fixed a memory leak in WritePDBImage (bsc#1110746).
  • CVE-2018-12600: ReadDIBImage and WriteDIBImage allowed attackers to cause an out of bounds write via a crafted file. (bsc#1098545)
  • CVE-2018-12599: ReadBMPImage and WriteBMPImage allowed attackers to cause an out of bounds write via a crafted file. (bsc#1098546)
Record
SUSE-SU-2018:3191-1
Updated
2026-11-02
OSVSUSE-SU-2018:3269-1 No score

Security update for GraphicsMagick

This update for GraphicsMagick fixes the following security issue:

  • CVE-2018-16750: Prevent memory leak in the formatIPTCfromBuffer function (bsc#1108283)
  • CVE-2018-16323: ReadXBMImage left data uninitialized when processing an XBM file that has a negative pixel value. If the affected code was used as a library loaded into a process that includes sensitive information, that information sometimes can be leaked via the image data (bsc#1106855)
  • CVE-2018-16640: Prevent memory leak in the function ReadOneJNGImage (bsc#1107619).
  • CVE-2018-16642: The function InsertRow allowed remote attackers to cause a denial of service via a crafted image file due to an out-of-bounds write (bsc#1107616).
  • CVE-2018-16643: The functions ReadDCMImage, ReadPWPImage, ReadCALSImage, and ReadPICTImage did check the return value of the fputc function, which allowed remote attackers to cause a denial of service via a crafted image file (bsc#1107612).
  • CVE-2018-16644: Added missing check for length in the functions ReadDCMImage and ReadPICTImage, which allowed remote attackers to cause a denial of service via a crafted image (bsc#1107609).
  • CVE-2018-16645: Prevent excessive memory allocation issue in the functions ReadBMPImage and ReadDIBImage, which allowed remote attackers to cause a denial of service via a crafted image file (bsc#1107604).
  • CVE-2018-18024: Fixed an infinite loop in the ReadBMPImage function of the coders/bmp.c file. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted bmp file. (bsc#1111069)
  • CVE-2018-18016: Fixed a memory leak in WritePCXImage (bsc#1111072).
  • CVE-2018-17965: Fixed a memory leak in WriteSGIImage (bsc#1110747).
  • CVE-2018-17966: Fixed a memory leak in WritePDBImage (bsc#1110746).
  • CVE-2018-16749: A missing NULL check in ReadOneJNGImage allowed remote attackers to cause a denial of service (WriteBlob assertion failure and application exit) via a crafted file. (bsc#1108282)
Record
SUSE-SU-2018:3269-1
Updated
2026-11-02
OSVSUSE-SU-2018:3348-1 No score

Security update for ImageMagick

This update for ImageMagick fixes the following security issue:

  • CVE-2017-17934: Prevent memory leaks, related to MSLPopImage and ProcessMSLScript, and associated with mishandling of MSLPushImage calls (bsc#1074170).
  • CVE-2018-16750: Prevent memory leak in the formatIPTCfromBuffer function (bsc#1108283)
  • CVE-2018-16749: Added missing NULL check in ReadOneJNGImage that allowed an attacker to cause a denial of service (WriteBlob assertion failure and application exit) via a crafted file (bsc#1108282)
  • CVE-2018-16413: Prevent heap-based buffer over-read in the PushShortPixel function leading to DoS (bsc#1106989).
  • CVE-2018-16323: ReadXBMImage left data uninitialized when processing an XBM file that has a negative pixel value. If the affected code was used as a library loaded into a process that includes sensitive information, that information sometimes can be leaked via the image data (bsc#1106855)
  • CVE-2018-16642: The function InsertRow allowed remote attackers to cause a denial of service via a crafted image file due to an out-of-bounds write (bsc#1107616)
  • CVE-2018-16643: The functions ReadDCMImage, ReadPWPImage, ReadCALSImage, and ReadPICTImage did check the return value of the fputc function, which allowed remote attackers to cause a denial of service via a crafted image file (bsc#1107612)
  • CVE-2018-16644: Added missing check for length in the functions ReadDCMImage and ReadPICTImage, which allowed remote attackers to cause a denial of service via a crafted image (bsc#1107609)
  • CVE-2018-16645: Prevent excessive memory allocation issue in the functions ReadBMPImage and ReadDIBImage, which allowed remote attackers to cause a denial of service via a crafted image file (bsc#1107604)
  • CVE-2018-18024: Fixed an infinite loop in the ReadBMPImage function of the coders/bmp.c file. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted bmp file (bsc#1111069)
  • CVE-2018-18016: Fixed a memory leak in WritePCXImage (bsc#1111072)
  • CVE-2018-17965: Fixed a memory leak in WriteSGIImage (bsc#1110747)
  • CVE-2018-17966: Fixed a memory leak in WritePDBImage (bsc#1110746)
Record
SUSE-SU-2018:3348-1
Updated
2026-11-02
OSVUSN-4034-1 No score

imagemagick vulnerabilities

It was discovered that ImageMagick incorrectly handled certain malformed image files. If a user or automated system using ImageMagick were tricked into opening a specially crafted image, an attacker could exploit this to cause a denial of service or possibly execute code with the privileges of the user invoking the program.

Due to a large number of issues discovered in GhostScript that prevent it from being used by ImageMagick safely, the update for Ubuntu 18.10 and Ubuntu 19.04 includes a default policy change that disables support for the Postscript and PDF formats in ImageMagick. This policy can be overridden if necessary by using an alternate ImageMagick policy configuration.

Record
USN-4034-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
imagemagick6
Alpine:v3.10
before 6.9.10.37-r0
6.9.10.37-r0
imagemagick6
Alpine:v3.11
before 6.9.10.37-r0
6.9.10.37-r0
imagemagick6
Alpine:v3.12
before 6.9.10.37-r0
6.9.10.37-r0
imagemagick6
Alpine:v3.13
before 6.9.10.37-r0
6.9.10.37-r0
imagemagick6
Alpine:v3.14
before 6.9.10.37-r0
6.9.10.37-r0
imagemagick6
Alpine:v3.15
before 6.9.10.37-r0
6.9.10.37-r0
imagemagick6
Alpine:v3.16
before 6.9.10.37-r0
6.9.10.37-r0
imagemagick6
Alpine:v3.7
before 6.9.10.39-r0
6.9.10.39-r0
imagemagick6
Alpine:v3.8
before 6.9.10.39-r0
6.9.10.39-r0
imagemagick6
Alpine:v3.9
before 6.9.10.39-r0
6.9.10.39-r0
Show 16 moreShow less
Affected packages
PackageAffectedFixed
imagemagick
Debian:12
before 8:6.9.10.14+dfsg-1
8:6.9.10.14+dfsg-1
imagemagick
Debian:13
before 8:6.9.10.14+dfsg-1
8:6.9.10.14+dfsg-1
imagemagick
Debian:14
before 8:6.9.10.14+dfsg-1
8:6.9.10.14+dfsg-1
graphicsmagick
Mageia:6
before 1.3.31-1.mga6
1.3.31-1.mga6
ImageMagick
SUSE:Linux Enterprise Desktop 12 SP3
before 6.8.8.1-71.82.1
6.8.8.1-71.82.1
ImageMagick
SUSE:Linux Enterprise Software Development Kit 12 SP3
before 6.8.8.1-71.82.1
6.8.8.1-71.82.1
ImageMagick
SUSE:Linux Enterprise Server 12 SP3
before 6.8.8.1-71.82.1
6.8.8.1-71.82.1
ImageMagick
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
before 6.8.8.1-71.82.1
6.8.8.1-71.82.1
ImageMagick
SUSE:Linux Enterprise Workstation Extension 12 SP3
before 6.8.8.1-71.82.1
6.8.8.1-71.82.1
GraphicsMagick
SUSE:Linux Enterprise Software Development Kit 11 SP4
before 1.2.5-78.72.1
1.2.5-78.72.1
GraphicsMagick
SUSE:Studio Onsite 1.3
before 1.2.5-78.72.1
1.2.5-78.72.1
ImageMagick
SUSE:Linux Enterprise Software Development Kit 11 SP4
before 6.4.3.6-78.74.1
6.4.3.6-78.74.1
ImageMagick
SUSE:Linux Enterprise Server 11 SP4
before 6.4.3.6-78.74.1
6.4.3.6-78.74.1
ImageMagick
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
before 6.4.3.6-78.74.1
6.4.3.6-78.74.1
imagemagick
Ubuntu:16.04:LTS
before 8:6.8.9.9-7ubuntu5.14, plus listed versions
8:6.8.9.9-5ubuntu28:6.8.9.9-68:6.8.9.9-6build18:6.8.9.9-78:6.8.9.9-7ubuntu1
Show 16 moreShow less
8:6.8.9.9-7ubuntu28:6.8.9.9-7ubuntu38:6.8.9.9-7ubuntu48:6.8.9.9-7ubuntu58:6.8.9.9-7ubuntu5.18:6.8.9.9-7ubuntu5.28:6.8.9.9-7ubuntu5.38:6.8.9.9-7ubuntu5.48:6.8.9.9-7ubuntu5.58:6.8.9.9-7ubuntu5.68:6.8.9.9-7ubuntu5.78:6.8.9.9-7ubuntu5.88:6.8.9.9-7ubuntu5.98:6.8.9.9-7ubuntu5.118:6.8.9.9-7ubuntu5.128:6.8.9.9-7ubuntu5.13
8:6.8.9.9-7ubuntu5.14
imagemagick
Ubuntu:18.04:LTS
before 8:6.9.7.4+dfsg-16ubuntu6.7, plus listed versions
8:6.9.7.4+dfsg-16ubuntu28:6.9.7.4+dfsg-16ubuntu38:6.9.7.4+dfsg-16ubuntu48:6.9.7.4+dfsg-16ubuntu58:6.9.7.4+dfsg-16ubuntu68:6.9.7.4+dfsg-16ubuntu6.28:6.9.7.4+dfsg-16ubuntu6.38:6.9.7.4+dfsg-16ubuntu6.4
8:6.9.7.4+dfsg-16ubuntu6.7

History

History
RecordedChangedSources
affected, aliases, referencesOSV
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2018-17965 is a medium vulnerability (CVSS 6.5) in Imagemagick, published October 3, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.77%, the 78th percentile. Fixed in imagemagick6 6.9.10.37-r0.

References

Show 72 moreShow less
MoveEnter Open