USN-9132-1: apng2gif vulnerabilities
Dileep Kumar Jallepalli discovered that apng2gif incorrectly handled loading APNG files, leading to an integer overflow and a heap-based buffer over-read. If a user or automated system were tricked into converting a specially crafted APNG file, an attacker could possibly use this issue to obtain sensitive information or cause a denial of service. (CVE-2017-6960) Dileep Kumar Jallepalli discovered that apng2gif did not limit the size of memory allocations when reading APNG chunks. If a user or automated system were tricked into converting a specially crafted APNG file, an attacker could possibly use this issue to cause apng2gif to crash, resulting in a denial of service. (CVE-2017-6961) Dileep Kumar Jallepalli discovered that apng2gif incorrectly handled certain chunk sizes, leading to an integer overflow and a heap-based buffer overflow. If a user or automated system were tricked into converting a specially crafted APNG file, an attacker could possibly use this issue to cause apng2gif to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2017-6962)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/apng2gifto a version that resolves this vulnerability.Fixed in Ubuntu Pro
Event History
Frequently Asked Questions
Who is exposed to these issues?
Users and automated systems that convert APNG files with apng2gif are exposed. Systems that do not process untrusted APNG input are not described as being affected through these flaws.
What must an attacker do to exploit the vulnerabilities?
An attacker must get a specially crafted APNG file processed by apng2gif. This could occur if a user or an automated workflow is tricked into converting the malicious file.
What could happen if a malicious APNG file is converted?
The flaws may disclose sensitive information or cause apng2gif to crash, creating a denial of service. One issue may also permit arbitrary code execution.
What can be done if patching is not immediately possible?
Avoid converting untrusted APNG files with apng2gif, and restrict automated conversion workflows to trusted inputs. This reduces the opportunity for crafted APNG chunks to reach the vulnerable parser.