---
id: CVE-2026-120452
title: >-
  libgphoto2 through 2.5.34 Heap Out-of-Bounds Read/Write via jl2005c Thumbnail
  Conversion
summary: >-
  libgphoto2 through 2.5.34 contains a heap out-of-bounds read and write
  vulnerability in jl2005bcd_decompress() that allows malicious USB cameras to
  corrupt heap memory via oversized thumbnail processing. Attackers can supply
  small alloca…
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H'
cvssSource: cna
cwe:
  - CWE-787
vendor: gPhoto
product: libgphoto2
affected:
  - libgphoto2 <= 2.5.34
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-02T17:04:36.935838Z'
published: '2026-11-02'
updated: '2026-11-02'
sourceUpdated: '2026-11-02T17:32:13.589Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-120452'
references:
  - url: 'https://github.com/gphoto/libgphoto2/issues/1326'
  - url: >-
      https://github.com/gphoto/libgphoto2/commit/af3b8e9c542cda863fb5f2f3cfeb261bd78e4442
  - url: >-
      https://github.com/gphoto/libgphoto2/commit/30bf7ace6d47cfe1232ea73bde2aceb95aba4bfb
  - url: >-
      https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/jl2005c/jl2005bcd_decompress.c#L127-L130
  - url: >-
      https://hackmd.io/@haindpwn/libgphoto2-jl2005c-init-alloc-table-buffer-overflow
  - url: >-
      https://www.vulncheck.com/advisories/libgphoto2-through-2.5.34-heap-out-of-bounds-read-write-via-jl2005c-thumbnail-conversion
    label: >-
      VulnCheck Advisory: libgphoto2 through 2.5.34 Heap Out-of-Bounds
      Read/Write via jl2005c Thumbnail Conversion
tags:
  - cve.org
epss: 0.00185
epssPercentile: 0.08133
ingestedAt: '2026-11-05T19:30:42.731Z'
---

## Overview

libgphoto2 through 2.5.34 contains a heap out-of-bounds read and write vulnerability in jl2005bcd_decompress() that allows malicious USB cameras to corrupt heap memory via oversized thumbnail processing. Attackers can supply small allocation-table values and a thumbnail header byte so in-place byte-swapping exceeds the buffer by about 30 KB, leaking heap contents in preview images.

## Affected

- `libgphoto2 <= 2.5.34`

## Remediation

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