Integer Overflow Vulnerability in gdk-pixbuf: Denial of Service Risk

gdk-pixbuf Updated 02 Oct 2025

Summary

10/03/2017
N/A
Yes i
Medium
5.5

ALPINE-CVE-2017-6312: Integer overflow in io-ico.c in gdk-pixbuf allows context-dependent attackers to cause a denial of service (segmentation fault and application crash) via a crafted image entry offset in an ICO file, which triggers an out... Affects gdk-pixbuf versions < 2.36.6-r1. Fixed in 2.36.6-r1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

gdk-pixbuf is a library used for loading and manipulating images in various formats, widely utilized in graphical applications. It provides essential functionalities for image processing, including support for multiple file formats and efficient memory management. However, it is susceptible to vulnerabilities that can lead to application crashes or unexpected behavior, particularly when handling malformed image files.

Vulnerability Detail

The vulnerability identified as CVE-2017-6312 is an integer overflow issue located in the io-ico.c file of gdk-pixbuf. This flaw allows attackers to craft malicious ICO files that, when processed, can trigger an out-of-bounds read, leading to a segmentation fault and application crash. The vulnerability arises from improper handling of image entry offsets, which can be exploited to cause denial of service. The CVSS score for this vulnerability is 5.5, indicating a moderate severity level.

How To Fix

Minimum fixed version

2.36.6-r1

This is the first release that contains the fix.

sudo apk add --upgrade gdk-pixbuf

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate patching is not feasible, consider implementing input validation to check the integrity of ICO files before processing them. This can help mitigate the risk of exploitation until the package can be updated.

Conclusion

The integer overflow vulnerability in gdk-pixbuf poses a significant risk of denial of service through crafted ICO files. Users are strongly advised to update to the patched version to mitigate this risk. For those unable to update immediately, implementing input validation can serve as a temporary workaround. Regular monitoring of vulnerabilities using tools like Vulert can help maintain the security of your applications.

See every vulnerability recorded for gdk-pixbuf →

Share this vulnerability

FAQ

CVE-2017-6312 is a vulnerability in gdk-pixbuf that can lead to denial of service through integer overflow when processing malformed ICO files.

You can use Vulert, which monitors open-source vulnerabilities in your software using a manifest file like package-lock.json. Visit Vulert Scanner to check your application without needing to sign up.

Exploitation of this vulnerability can result in application crashes, leading to denial of service and potential disruption of services relying on gdk-pixbuf.

Yes, updating gdk-pixbuf to version 2.36.6-r1 or later will permanently fix the vulnerability.

If an immediate update is not possible, implement input validation for ICO files to reduce the risk of exploitation until you can apply the patch.

Related vulnerabilities

Recent vulnerabilities recorded for gdk-pixbuf.

How To Fix

Minimum fixed version

2.36.6-r1

This is the first release that contains the fix.

sudo apk add --upgrade gdk-pixbuf

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback