---
title: 'USN-8522-1: LibRaw vulnerabilities | Ubuntu security notices'
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/notices/USN-8522-1
---

1. [Ubuntu Security Notices](https://ubuntu.com/security/notices)
2. USN-8522-1

---

# USN-8522-1: LibRaw vulnerabilities

Publication date

9 July 2026

Overview

Several security issues were fixed in LibRaw.

Releases

[26.04 LTS](https://ubuntu.com/security/notices?release=resolute)
[24.04 LTS](https://ubuntu.com/security/notices?release=noble)
[22.04 LTS](https://ubuntu.com/security/notices?release=jammy)

---

Open side navigation

## Packages

* [libraw](https://ubuntu.com/security/cves?package=libraw) - raw image decoder library

## Details

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](https://ubuntu.com/security/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](https://ubuntu.com/security/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](https://ubuntu.com/security/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,...

---

Show more

## Update instructions

In general, a standard system update will make all the necessary changes.

[Learn more about how to get the fixes.](https://ubuntu.com/security/cves/about#security)

The problem can be corrected by updating your system to the following package versions:

| Ubuntu Release | Package Version |
| --- | --- |
| 26.04 LTS resolute | [libraw-bin](https://launchpad.net/ubuntu/+source/libraw) –  [0.21.5b-1ubuntu1.1](https://launchpad.net/ubuntu/+source/libraw/0.21.5b-1ubuntu1.1) | | |
| [libraw23t64](https://launchpad.net/ubuntu/+source/libraw) –  [0.21.5b-1ubuntu1.1](https://launchpad.net/ubuntu/+source/libraw/0.21.5b-1ubuntu1.1) | | |
| 24.04 LTS noble | [libraw-bin](https://launchpad.net/ubuntu/+source/libraw) –  [0.21.2-2.1ubuntu0.24.04.2](https://launchpad.net/ubuntu/+source/libraw/0.21.2-2.1ubuntu0.24.04.2) | | |
| [libraw23t64](https://launchpad.net/ubuntu/+source/libraw) –  [0.21.2-2.1ubuntu0.24.04.2](https://launchpad.net/ubuntu/+source/libraw/0.21.2-2.1ubuntu0.24.04.2) | | |
| 22.04 LTS jammy | [libraw-bin](https://launchpad.net/ubuntu/+source/libraw) –  [0.20.2-2ubuntu2.22.04.3](https://launchpad.net/ubuntu/+source/libraw/0.20.2-2ubuntu2.22.04.3) | | |
| [libraw20](https://launchpad.net/ubuntu/+source/libraw) –  [0.20.2-2ubuntu2.22.04.3](https://launchpad.net/ubuntu/+source/libraw/0.20.2-2ubuntu2.22.04.3) | | |

---

### Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.

[Get Ubuntu Pro](https://ubuntu.com/pro)

## References

* [CVE-2026-5342](https://ubuntu.com/security/CVE-2026-5342)
* [CVE-2026-24660](https://ubuntu.com/security/CVE-2026-24660)
* [CVE-2026-24450](https://ubuntu.com/security/CVE-2026-24450)
* [CVE-2026-21413](https://ubuntu.com/security/CVE-2026-21413)
* [CVE-2026-20889](https://ubuntu.com/security/CVE-2026-20889)
* [CVE-2026-20884](https://ubuntu.com/security/CVE-2026-20884)
