← Back to blog

apng2gif Vulnerabilities Expose Systems to DoS and Code Execution

Multiple flaws in apng2gif could allow attackers to crash systems or execute arbitrary code. Ubuntu has released updates to address these issues.

TL;DR

  • Three vulnerabilities found in apng2gif relate to improper handling of APNG files.
  • Issues include integer overflows and buffer errors that can lead to crashes or data leaks.
  • Attackers may exploit these flaws via crafted APNG files to cause denial of service.
  • One vulnerability may allow remote code execution if exploited successfully.
  • Ubuntu has issued security notice USN-9132-1 with patches available.

Security researchers have uncovered multiple critical vulnerabilities in apng2gif, a tool used to convert animated PNG files to GIF format. These flaws could be exploited by attackers who trick users or automated systems into processing maliciously crafted APNG files.

The identified issues stem from poor memory management and incorrect handling of image chunks during file parsing. Organizations using affected versions should take immediate action to apply the relevant patches and mitigate potential risks.

Vulnerability Details

  • CVE-2017-6960 involves an integer overflow leading to a heap-based buffer over-read when loading APNG files.
  • CVE-2017-6961 allows excessive memory allocation due to lack of limits on chunk sizes, potentially crashing the application.
  • CVE-2017-6962 causes a heap-based buffer overflow through malformed chunk size handling, risking both crashes and arbitrary code execution.

Impact and Mitigation

  • Successful exploitation could result in denial of service or unauthorized access to sensitive information.
  • Automated systems and user environments that process untrusted APNG files are particularly at risk.
  • Organizations running Ubuntu should update their systems according to the guidance provided in USN-9132-1.
  • Developers integrating apng2gif into applications should audit dependencies and ensure updated versions are deployed.

Sources

Sources

Security email updates

One digest email when we publish new security articles (TL;DR plus links to read more). Unsubscribe anytime from the message footer. See our Privacy Policy.