---
id: CVE-2026-111272
title: LibRaw through 0.22.2 Heap Out-of-Bounds Read via parseNikonMakernote ShotInfo
summary: >-
  LibRaw through 0.22.2 contains a heap-based out-of-bounds read in
  LibRaw::parseNikonMakernote() that allows attackers to read past a short
  ShotInfo buffer. Attackers can supply a crafted Nikon NEF/TIFF with a 5-byte
  ShotInfo tag declarin…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'
cvssSource: cna
cwe:
  - CWE-125
vendor: LibRaw
product: LibRaw
affected:
  - LibRaw <= 0.22.2
published: '2026-10-15'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T21:43:19.039Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-111272'
references:
  - url: >-
      https://hackmd.io/@haind-pwn/libraw-nikon-shotinfo-orientationoffset-oob-read
  - url: >-
      https://github.com/LibRaw/LibRaw/blob/b93f6e45c194f5df9b02a43b1af9a54b4f41f33f/src/metadata/nikon.cpp#L873-L967
  - url: 'https://github.com/LibRaw/LibRaw'
  - url: >-
      https://www.vulncheck.com/advisories/libraw-through-0.22.2-heap-out-of-bounds-read-via-parsenikonmakernote-shotinfo
    label: >-
      VulnCheck Advisory: LibRaw through 0.22.2 Heap Out-of-Bounds Read via
      parseNikonMakernote ShotInfo
tags:
  - cve.org
ingestedAt: '2026-10-15T22:48:25.446Z'
---

## Overview

LibRaw through 0.22.2 contains a heap-based out-of-bounds read in LibRaw::parseNikonMakernote() that allows attackers to read past a short ShotInfo buffer. Attackers can supply a crafted Nikon NEF/TIFF with a 5-byte ShotInfo tag declaring version 243 to crash applications decoding the image.

## Affected

- `LibRaw <= 0.22.2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
