CVE-2017-6960
High · 7.5CVSS
7.5
EPSS
1.8%
Published
Mar 17, 2017
CISA due date
—
Cloudanix analysis
A problem in a program that turns animated PNG pictures into GIFs can let someone crash the program by feeding it a specially made image file.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer overflow in load_apng allows attacker-controlled imagesize value to trigger a heap-based buffer over-read, resulting in memory access beyond allocated bounds and potential process crash.
Why it matters to the business
Organizations relying on apng2gif for image conversion pipelines face risk of service disruption when processing untrusted animated PNG files, with possible operational downtime in automated media workflows across Debian and Ubuntu deployments.
How an attack unfolds
An attacker crafts a malicious APNG file with an imagesize value engineered to overflow during load_apng processing; when the converter opens the file the overflow causes an oversized read that crashes the process without requiring authentication or user interaction.
How to fix it
Replace apng2gif with a maintained alternative or apply any available upstream patches; on Debian and Ubuntu systems ensure the package is removed or isolated from untrusted input sources until a fixed build is available.
How to confirm the fix worked
Test conversion of known-good and boundary-case APNG files in an isolated environment; monitor process stability and memory sanitizer output to confirm absence of over-read conditions after any package update or replacement.
Typical attack path
- Identify target systems or pipelines that invoke apng2gif on untrusted input
- Craft APNG file containing integer overflow trigger in imagesize field
- Deliver file via network, upload, or email to reach conversion routine
- Trigger conversion which executes load_apng and induces heap over-read crash
How to detect it
Review system and application logs for abrupt apng2gif process terminations or segmentation faults when processing APNG inputs; correlate with file upload or conversion timestamps to identify suspicious activity.
What your security team should do
- Remove or sandbox apng2gif from all automated image-processing workflows handling external files
- Scan package inventories on Debian and Ubuntu hosts to locate remaining instances
- Substitute with alternative conversion tools that receive ongoing security maintenance
- Add file-type validation and sandboxing for any remaining image conversion steps
The record
An issue was discovered in apng2gif 1.7. There is an integer overflow resulting in a heap-based buffer over-read, related to the load_apng function and the imagesize variable.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | apng2gif | 0 | 1.8-0.1 |
| Debian:12 | apng2gif | 0 | 1.8-0.1 |
| Debian:13 | apng2gif | 0 | 1.8-0.1 |
| Debian:7 | apng2gif | 0 | 1.5-1+deb7u1 |
| Debian:8 | apng2gif | 0 | 1.5-3+deb8u1 |
| Debian:9 | apng2gif | 0 | 1.8-0.1~deb9u1 |
| Ubuntu:16.04:LTS | apng2gif | 0 | 1.5-3+deb8u1build0.16.04.1 |
| Ubuntu:18.04:LTS | apng2gif | 0 | No fix |
| Ubuntu:20.04:LTS | apng2gif | 0 | 1.8-0.1 |
| Ubuntu:Pro:18.04:LTS | apng2gif | 0 | No fix |
Related vulnerabilities
- CVE-2026-110264 An issue has been discovered in GitLab CE/EE affecting all versions from 7.0 before… CWE-190
- CVE-2026-53615 util-linux is a random collection of Linux utilities. CWE-190
- CVE-2026-106574 ImageMagick is free and open-source software used for editing and manipulating digital… CWE-190
- CVE-2026-106571 ImageMagick is free and open-source software used for editing and manipulating digital… CWE-190
- CVE-2026-75820 GNU Aspell contains an integer truncation vulnerability in the WritableDict::add()… CWE-190
- CVE-2026-102621 A vulnerability was identified in Freedesktop Poppler up to 26.08.0. CWE-190
- CVE-2026-102620 A vulnerability was determined in Freedesktop Poppler 26.06.0/26.07.0/26.08.0. CWE-190
- CVE-2026-102633 libexpat versions 2.7.2 through 2.8.5 contain an integer overflow vulnerability in… CWE-190