Critical Integer Overflow Vulnerability in libXcursor: Heap Buffer Overflow Risk

libxcursor Updated 02 Oct 2025

Summary

01/12/2017
N/A
Yes i
High
7.5

ALPINE-CVE-2017-16612: libXcursor before 1.1.15 has various integer overflows that could lead to heap buffer overflows when processing malicious cursors, e.g., with programs like GIMP. Affects libxcursor versions < 1.1.15-r0. Fixed in 1.1.15-r0. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

libXcursor is a library that provides functions for loading and manipulating X cursor images. It is widely used in graphical applications, including popular software like GIMP. The library is essential for rendering cursor graphics in X Window System environments. However, prior to version 1.1.15, libXcursor is susceptible to integer overflow vulnerabilities, which can lead to severe security risks.

Vulnerability Detail

libXcursor before version 1.1.15 has various integer overflows that could lead to heap buffer overflows when processing malicious cursor files. This vulnerability can be exploited by attackers to execute arbitrary code or crash applications that utilize the library. The issue originates from improper handling of cursor data, particularly in the cursor/xcursor.c file, which may also affect related code in Wayland environments. The CVSS score for this vulnerability is 7.5, indicating a high severity level.

How To Fix

Minimum fixed version

1.1.15-r0

This is the first release that contains the fix.

sudo apk add --upgrade libxcursor

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

Workaround

If you cannot update the package immediately, consider restricting access to applications that utilize libXcursor or running them in a controlled environment to mitigate potential risks until the update can be applied.

Conclusion

The integer overflow vulnerability in libXcursor poses significant risks to applications that rely on this library. It is crucial to update to the patched version 1.1.15-r0 to mitigate these risks. Users should also consider using tools like Vulert to monitor for vulnerabilities in their applications.

See every vulnerability recorded for libxcursor →

Share this vulnerability

FAQ

The vulnerability can lead to heap buffer overflows, allowing attackers to execute arbitrary code or crash applications using the library.

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

The CVSS score for this vulnerability is 7.5, indicating a high severity level.

Yes, the patch is available in version 1.1.15-r0 of the libXcursor package.

Consider restricting access to applications that utilize libXcursor or running them in a controlled environment until the update can be applied.

Related vulnerabilities

Recent vulnerabilities recorded for libxcursor.

How To Fix

Minimum fixed version

1.1.15-r0

This is the first release that contains the fix.

sudo apk add --upgrade libxcursor

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