Out-of-Bounds Heap Read Vulnerability in lcms2 Package

lcms2 Updated 02 Oct 2025

Summary

03/02/2017
N/A
Yes i
High
7.1

ALPINE-CVE-2016-10165: The Type_MLU_Read function in cmstypes.c in Little CMS (aka lcms2) allows remote attackers to obtain sensitive information or cause a denial of service via an image with a crafted ICC profile, which triggers an out-of-bo... Affects lcms2 versions < 2.8-r1. Fixed in 2.8-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 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

lcms2 is an open-source color management engine that provides a framework for color space conversions and ICC profile handling. It is widely used in various applications for accurate color representation. However, it has been found to be vulnerable to a specific issue that can lead to security risks, particularly when processing crafted ICC profiles.

Vulnerability Detail

The vulnerability, identified as CVE-2016-10165, originates from the Type_MLU_Read function in the cmstypes.c file of the lcms2 package. It allows remote attackers to exploit the vulnerability by sending specially crafted images with malicious ICC profiles. This can lead to sensitive information disclosure or a denial of service due to an out-of-bounds heap read. The CVSS score for this vulnerability is 7.1, indicating a high severity level.

How To Fix

Minimum fixed version

2.8-r1

This is the first release that contains the fix.

sudo apk add --upgrade lcms2

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

Workaround

If immediate patching is not possible, consider implementing input validation to filter out potentially harmful ICC profiles before processing them. This can help mitigate the risk of exploitation.

Conclusion

The lcms2 package has a significant vulnerability (CVE-2016-10165) that can lead to serious security issues if not addressed. It is crucial to update to the patched version 2.8-r1 to mitigate risks. Additionally, using tools like Vulert can help in monitoring and managing vulnerabilities effectively.

See every vulnerability recorded for lcms2 →

Share this vulnerability

FAQ

CVE-2016-10165 is a vulnerability in the lcms2 package that allows remote attackers to exploit out-of-bounds heap reads through crafted ICC profiles.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The potential impacts include sensitive information disclosure and denial of service, which can affect the stability and security of applications using the lcms2 package.

Yes, the patched version of the lcms2 package is 2.8-r1. Updating to this version will resolve the vulnerability.

Vulert is a tool that monitors and alerts in real-time for open-source vulnerabilities in software by analyzing a manifest file like package-lock.json.

Related vulnerabilities

Recent vulnerabilities recorded for lcms2.

How To Fix

Minimum fixed version

2.8-r1

This is the first release that contains the fix.

sudo apk add --upgrade lcms2

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