VYPR
Unrated severityNVD Advisory· Published Mar 27, 2018· Updated Aug 5, 2024

CVE-2017-18251

CVE-2017-18251

Description

A memory leak in ImageMagick 7.0.7's ReadPCDImage allows remote attackers to cause denial of service via a crafted file.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

A memory leak in ImageMagick 7.0.7's ReadPCDImage allows remote attackers to cause denial of service via a crafted file.

Vulnerability

A memory leak vulnerability exists in ImageMagick 7.0.7 in the function ReadPCDImage in coders/pcd.c. The code allocates three buffers (chroma1, chroma2, luma) using AcquireQuantumMemory. If any allocation fails (returns NULL), the subsequent ThrowReaderException is called, but the previously allocated non-NULL buffers are not freed, causing a memory leak [2]. The issue is triggered when processing a specially crafted PCD file.

Exploitation

An attacker must craft a malformed PCD image file that triggers the memory allocation failure for at least one of the three buffers, while the other allocations succeed. The victim must open the crafted file using a vulnerable version of ImageMagick (e.g., via automatic processing or user interaction). No authentication or special network position is required beyond delivering the file [1].

Impact

Successful exploitation leads to a memory leak, gradually exhausting available memory and causing a denial of service (DoS). The leak does not directly lead to code execution, but repeated triggering could crash the application or affect system stability. The CIA impact is primarily availability [1][2].

Mitigation

The vulnerability is fixed in Ubuntu 18.04 LTS with ImageMagick package version 8:6.9.7.4+dfsg-16ubuntu6 [1]. Upgrading to a patched version of ImageMagick (7.0.7-2 or later) mitigates the issue. No workaround is listed in available references; users should update the software via their package manager or from the official ImageMagick repository.

AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

11

Patches

0

No patches discovered yet.

Vulnerability mechanics

No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.

References

2

News mentions

0

No linked articles in our index yet.