Critical Security Flaw in LibRaw: Arbitrary Code Execution Vulnerability

LibRaw Updated 26 May 2026

Summary

19/05/2026
N/A
Yes i
Unrated
Not published

ALSA-2026:19345: Important: LibRaw security update. Affects LibRaw versions < 0.21.1-2.el9_8. Fixed in 0.21.1-2.el9_8. 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

LibRaw is a widely used library designed for reading RAW files from digital cameras, supporting formats such as CRW, CR2, NEF, RAF, and DNG. It is integral for photographers and developers who require high-quality image processing capabilities. However, recent vulnerabilities have exposed LibRaw to significant security risks, particularly concerning arbitrary code execution through specially crafted files.

Vulnerability Detail

The vulnerabilities identified in LibRaw include arbitrary code execution via a specially crafted malicious file (CVE-2026-24450) and a heap-based buffer overflow during lossless JPEG loading (CVE-2026-21413). These vulnerabilities can allow attackers to execute arbitrary code on the affected system, potentially leading to unauthorized access, data breaches, or system compromise. The root cause lies in improper handling of input files, which can be exploited by attackers to manipulate memory and execute malicious code.

How To Fix

Minimum fixed version

0.21.1-2.el9_8

This is the first release that contains the fix.

sudo dnf update LibRaw

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

Workaround

As a temporary workaround, users are advised to avoid opening untrusted or unknown RAW files until the package is updated. Additionally, implementing strict file validation and sanitization can help mitigate the risk of exploitation.

Conclusion

The vulnerabilities in LibRaw present serious security risks that can lead to arbitrary code execution. It is crucial for users to update to the latest patched version to safeguard their systems. Additionally, employing workarounds and monitoring tools like Vulert can help manage and mitigate these vulnerabilities effectively.

See every vulnerability recorded for LibRaw →

Share this vulnerability

FAQ

LibRaw is a library used for reading RAW image files from various digital cameras, enabling developers to process high-quality images.

The vulnerabilities can lead to arbitrary code execution, allowing attackers to gain unauthorized access to systems and potentially compromise sensitive data.

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

Yes, not updating LibRaw exposes your system to potential attacks that exploit these vulnerabilities, which can result in data breaches or system compromise.

If immediate updates are not possible, avoid opening untrusted RAW files and consider implementing file validation measures to reduce risk.

Related vulnerabilities

Recent vulnerabilities recorded for LibRaw.

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

0.21.1-2.el9_8

This is the first release that contains the fix.

sudo dnf update LibRaw

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