Critical UNKNOWN READ Vulnerability in libvips - Affects TIFF Handling

libvips Updated 02 Oct 2025

Summary

27/12/2024
MEDIUM
Yes i
Medium
Not published

OSV-2024-1406: UNKNOWN READ in _TIFFVSetField. Affects libvips versions >= 1ad652636bf80190860afde5f4a0365f71dd0301, < 0c9c7b16fe8ed35237c8994c13ead654f94ed860. Fixed in 0c9c7b16fe8ed35237c8994c13ead654f94ed860. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

libvips is an open-source image processing library that is designed for high-performance image manipulation. It is widely used for tasks such as resizing, cropping, and format conversion. The library is known for its speed and efficiency, making it a popular choice for developers working with large images. However, it has been found to have a vulnerability related to its handling of TIFF files, which can lead to potential crashes and data exposure.

Vulnerability Detail

The vulnerability identified as OSV-2024-1406 is an UNKNOWN READ issue occurring in the _TIFFVSetField function. This vulnerability can lead to crashes when the library attempts to process certain TIFF files, potentially allowing an attacker to exploit this behavior. The crash state involves functions such as TIFFSetField and TIFFFetchNormalTag, which are critical for handling TIFF metadata. The origin of this vulnerability is linked to improper handling of memory, which can result in unexpected behavior during image processing.

How To Fix

Minimum fixed version

0c9c7b16fe8ed35237c8994c13ead654f94ed860

This is the first release that contains the fix.

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

Workaround

As a temporary workaround, avoid processing untrusted TIFF files until the library has been updated. Additionally, you can implement input validation to ensure that only safe and trusted image files are processed by your application.

Conclusion

The UNKNOWN READ vulnerability in libvips poses a significant risk to applications that process TIFF files. It is crucial to update to the patched version to mitigate potential crashes and ensure the integrity of your image processing workflows. By following the recommended steps and utilizing tools like Vulert, developers can maintain a secure environment.

See every vulnerability recorded for libvips →

Share this vulnerability

FAQ

The impact includes potential crashes of applications using libvips when processing certain TIFF files, which could lead to denial of service.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

While the primary risk is application crashes, improper handling of TIFF files could potentially lead to data exposure in certain scenarios.

If immediate updates are not possible, implement input validation and avoid processing untrusted TIFF files as a temporary measure.

Related vulnerabilities

Recent vulnerabilities recorded for libvips.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

0c9c7b16fe8ed35237c8994c13ead654f94ed860

This is the first release that contains the fix.

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