Read the docs

Memory leak in ImageMagick PNG encoder on libpng init failure

Priority LOW 33CWE-401Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · GHSA-hvwf-wmm6-hvc3. Fix status from GitHub. Impact type from CWE-401.

Summary

ImageMagick versions before 7.1.2-32 and before 6.9.13-57 are affected. When libpng initialization fails, the PNG encoder does not release allocated memory (CWE-401). A remote attacker without privileges or user interaction can trigger the leak, though attack complexity is high and the impact is limited to availability.

Written with Claude Haiku 5.5 from the sources below · 2026-11-12

Description from the GitHub advisory

When the libpng initialization fails a memory leak will occur in the PNG encoder.

Why it matters now

Fix Fixed ImageMagick (c/c++): 7.1.2-32, 6.9.13-57

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—ImageMagick (c/c++)< 7.1.2-327.1.2-32Patch availableGHSA-hvwf-wmm6-hvc3
—ImageMagick (c/c++)< 6.9.13-576.9.13-57Patch availableGHSA-hvwf-wmm6-hvc3
  • ImageMagick (c/c++) Vendor— Affected < 7.1.2-32 Fixed in 7.1.2-32 Patch available GHSA-hvwf-wmm6-hvc3
  • ImageMagick (c/c++) Vendor— Affected < 6.9.13-57 Fixed in 6.9.13-57 Patch available GHSA-hvwf-wmm6-hvc3

Remediation

Upgrade the ImageMagick 7 branch to 7.1.2-32 and the ImageMagick 6 branch to 6.9.13-57. The sources list no advisory identifier for this fix.

Written with Claude Haiku 5.5 from the sources below · 2026-11-12

  • Fix · GHSA-hvwf-wmm6-hvc3 ImageMagick (c/c++) Fixed in 7.1.2-32 Advisory →
  • Fix · GHSA-hvwf-wmm6-hvc3 ImageMagick (c/c++) Fixed in 6.9.13-57 Advisory →

Timeline

  1. 2026-11-12 Threatist record created from GHSA-hvwf-wmm6-hvc3

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences