Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-5342: A flaw has been found in LibRaw up to 0.22.0

42
This week
MEDIUM 5.3REMOTEUPGRADE

CVE-2026-5342 is a medium-severity flaw (CVSS 5.3) affecting libraw. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

A flaw has been found in LibRaw up to 0.22.0. This affects the function LibRaw::nikon_load_padded_packed_raw of the file src/decoders/decoders_libraw.cpp of the component TIFF/NEF. Executing a manipulation of the argument load_flags/raw_width can lead to out-of-bounds read. It is possible to launch the attack remotely. The exploit has been published and may be used. Upgrading to version 0.22.1 mitigates this issue. This patch is called b8397cd456

Why this priority

  • Public exploit reference
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score5.3 (Medium)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance0.7% (top 46%)
CISA exploited listNo
WeaknessCWE-119, CWE-125
Published2026-04-02
Last modified2026-07-24
Publisher (CNA): VulDB · Vendor: libraw

Share: LinkedIn · X · Reddit

Last updated 2026-07-24 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

libraw libraw UPGRADE
Affected: < 0.22.1
Fixed in: 0.22.1
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy libraw || rpm -q libraw || libraw --version
2. UPGRADE to 0.22.1 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade libraw
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade libraw
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-5342?

libraw: upgrade to 0.22.1. Exact commands for each OS are on this page.

Is CVE-2026-5342 being exploited?

CVE-2026-5342 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-5342 affect?

CVE-2026-5342 affects libraw. Severity is medium (CVSS 5.3). A flaw has been found in LibRaw up to 0.22.0. This affects the function LibRaw::nikon_load_padded_packed_raw of the file src/decoders/decoders_libraw.cpp of the component TIFF/NEF. Executing a manipulation of the argument load_flags/raw_wid

How urgent is CVE-2026-5342?

Priority 42/100. Public exploit reference; Remotely exploitable, no login, no user action

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.