CVE-2026-77118

Description

A flaw was found in GraphicsMagick. A heap out-of-bounds write vulnerability exists in the Photo CD (PCD) decoder. A remote attacker could exploit this by providing a specially crafted PCD file. Processing this file can lead to corruption of heap memory, potentially resulting in arbitrary code execution.

Statement

Red Hat Product Security has determined that this vulnerability does not affect any currently supported Red Hat product. This assessment may evolve based on further analysis and discovery. For more information about this vulnerability and the products it affects, please see the linked references.

Mitigation

To mitigate this issue, avoid processing untrusted Photo CD (PCD) files with GraphicsMagick utilities such as `gm convert` or `gm identify`, or with any application linked against `libGraphicsMagick`. Restrict the execution environment or user permissions for these tools if they must handle external input.

Understanding the Weakness (CWE)

Integrity

Technical Impact: Modify Memory; Execute Unauthorized Code or Commands

Write operations could cause memory corruption. In some cases, an adversary can modify control data such as return addresses in order to execute unexpected code.

Availability

Technical Impact: DoS: Crash, Exit, or Restart

Attempting to access out-of-range, invalid, or unauthorized memory could cause the product to crash.

Other

Technical Impact: Unexpected State

Subsequent write operations can produce undefined or unexpected results.

Frequently Asked Questions

Want to get errata notifications? Sign up here.