CVE-2026-5342: libraw vulnerabilities
Affects librawSource GCVE Database
Mentioned vulnerabilities
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
- 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:PExploitation evidence
Disclosed: evidence found.
CVE published 2 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
CVSS exploit maturity: proof of concept public
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSlibrawpkg:deb/ubuntu/libraw?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlibrawpkg:deb/ubuntu/libraw?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSlibrawpkg:deb/ubuntu/libraw?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
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
- ubuntu.com/security/notices/USN-8522-1 (opens in a new tab)
- ubuntu.com/security/CVE-2026-5342 (opens in a new tab)
- ubuntu.com/security/CVE-2026-20884 (opens in a new tab)
- ubuntu.com/security/CVE-2026-20889 (opens in a new tab)
- ubuntu.com/security/CVE-2026-21413 (opens in a new tab)
- ubuntu.com/security/CVE-2026-24450 (opens in a new tab)
- ubuntu.com/security/CVE-2026-24660 (opens in a new tab)