Skip to main content
VulnerabilityPublished Updated

CVE-2026-5342: libraw vulnerabilities

Affects librawSource GCVE Database

0
Compare

Mentioned vulnerabilities

Authoritative record:CVE-2026-5342· Medium 6.9

Public exploit available · CVSS 6.9 Medium · fixed in 0.20.2-2ubuntu2.22.04.3 : patch libraw as a priority.

Data as of 24 Nov 2026, 17:39 UTC

CVSS 4.0 base score
6.9Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 0.20.2-2ubuntu2.22.04.3, 0.21.2-2.1ubuntu0.24.04.2, 0.21.5b-1ubuntu1.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    CVSS exploit maturity: proof of concept public

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CVSS vector, the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Upgrade the Ubuntu libraw to 0.20.2-2ubuntu2.22.04.3 (package) or 0.21.2-2.1ubuntu0.24.04.2 (package) or 0.21.5b-1ubuntu1.1 (package).

Affected software

ProductAffectedFixed in
Ubuntu 26.04 LTSlibrawpkg:deb/ubuntu/libraw?arch=source&distro=resoluteOther threatsAffected
  • <0.21.5b-1ubuntu1.1
Fixed in
  • 0.21.5b-1ubuntu1.1
Ubuntu 24.04 LTSlibrawpkg:deb/ubuntu/libraw?arch=source&distro=nobleOther threatsAffected
  • <0.21.2-2.1ubuntu0.24.04.2
Fixed in
  • 0.21.2-2.1ubuntu0.24.04.2
Ubuntu 22.04 LTSlibrawpkg:deb/ubuntu/libraw?arch=source&distro=jammyOther threatsAffected
  • <0.20.2-2ubuntu2.22.04.3
Fixed in
  • 0.20.2-2ubuntu2.22.04.3

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

It was discovered that LibRaw incorrectly handled certain Nikon RAW image files. An attacker could possibly use this issue to cause LibRaw to crash, resulting in a denial of service. (CVE-2026-5342) It was discovered that LibRaw had an integer overflow in its DNG image loader. An attacker could possibly use this issue to cause LibRaw to crash, resulting in a denial of service, or execute arbitrary code. (CVE-2026-20884) It was discovered that LibRaw incorrectly handled certain X3F thumbnail data. An attacker could possibly use this issue to cause LibRaw to crash, resulting in a denial of service, or execute arbitrary code. (CVE-2026-20889) It was discovered that LibRaw had a heap-based buffer overflow in its lossless JPEG image loader. An attacker could possibly use this issue to cause LibRaw to crash, resulting in a denial of service, or execute arbitrary code. (CVE-2026-21413) It was discovered that LibRaw had an integer overflow in its uncompressed floating-point DNG image loader. An attacker could possibly use this issue to cause LibRaw to crash, resulting in a denial of service, or execute arbitrary code. This issue only affected Ubuntu 24.04 LTS and Ubuntu 25.04. (CVE-2026-24450) It was discovered that LibRaw had a heap-based buffer overflow in its X3F Huffman decoder. An attacker could possibly use this issue to cause LibRaw to crash, resulting in a denial of service, or execute arbitrary code. (CVE-2026-24660)

References

Community reviews

Loading reviews…