Heap-buffer-overflow in libvips: jxl::N_AVX2::BlendingStage::ProcessPaddingRow

libvips Updated 02 Oct 2025

Summary

05/04/2022
MEDIUM
Yes i
Medium
Not published

OSV-2022-305: Heap-buffer-overflow in jxl::N_AVX2::BlendingStage::ProcessPaddingRow. Affects libvips versions >= dc07b0005960687b7ec541b0a3714210e1e16f6a, < 43db3985d0c0f0321434f2bd1cda36c7dd4fa1e5. Fixed in 43db3985d0c0f0321434f2bd1cda36c7dd4fa1e5. 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

libvips is an open-source image processing library that provides a wide range of functionalities for manipulating images. It is commonly used in various applications and frameworks to perform tasks such as resizing, cropping, and applying filters to images. However, a vulnerability has been discovered in libvips that can lead to a heap-buffer-overflow when processing padding rows in the jxl::N_AVX2::BlendingStage module.

Vulnerability Detail

The vulnerability arises due to a heap-buffer-overflow read issue in the jxl::N_AVX2::BlendingStage::ProcessPaddingRow function of libvips. This can be triggered when rendering padding rows in the LowMemoryRenderPipeline module. An attacker could exploit this vulnerability to read beyond the boundaries of allocated memory, potentially leading to information disclosure or a crash. The issue has been reported to the OSS-Fuzz project and a detailed report can be found at the provided link.

How To Fix

Minimum fixed version

43db3985d0c0f0321434f2bd1cda36c7dd4fa1e5

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

At the moment, no specific workaround has been provided for this vulnerability. It is advised to update to the fixed version of libvips as soon as possible.

Conclusion

In conclusion, a heap-buffer-overflow vulnerability has been discovered in libvips that can be triggered when processing padding rows. It is crucial for users of libvips to update their installations to a version that includes the fix. For further support and assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for libvips →

Share this vulnerability

FAQ

libvips is an open-source image processing library used for various image manipulation tasks.

This vulnerability can potentially lead to information disclosure or a crash when processing padding rows in libvips.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will analyze it for any open-source vulnerabilities, including this one.

Yes, a fix has been released for this vulnerability. Users should update their libvips installation to a version that includes the fix.

You can find more information about this vulnerability in the OSS-Fuzz report linked in the vulnerability details.

Related vulnerabilities

Recent vulnerabilities recorded for libvips.

How To Fix

Minimum fixed version

43db3985d0c0f0321434f2bd1cda36c7dd4fa1e5

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