Description
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.
Published: 2026-11-02
Score: 5.2 Medium
EPSS: n/a
KEV: No
Impact: Heap Corruption and Information Disclosure
Action: Assess Impact
AI Analysis

Impact

libgphoto2 versions up to 2.5.34 contain a heap out‑of‑bounds read/write flaw in the jl2005bcd_decompress function. A malicious USB camera can send a thumbnail with a carefully crafted allocation‑table and header byte, so the in‑place byte‑swapping logic writes beyond the allocated buffer by roughly 30 KB. This corruption can leak heap contents into preview images, potentially exposing sensitive information and leading to application crashes. The overall impact is moderate, reflected in a CVSS score of 5.2.

Affected Systems

The affected product is gPhoto’s libgphoto2 library, any release through version 2.5.34. Systems that use libgphoto2 for camera interaction, such as digital imaging workflows or embedded camera control, are vulnerable unless they have upgraded to a newer, unpatched version.

Risk and Exploitability

The vulnerability’s CVSS score of 5.2 indicates moderate severity. EPSS data is not currently available, and the flaw is not listed in the CISA KEV catalog. Based on the description, the likely attack vector involves a malicious USB camera connected to a device running libgphoto2; an attacker must supply the camera and crafted thumbnail data, so exploitation requires local physical access to the camera interface. The impact includes heap corruption that could lead to information disclosure or denial of service, though remote code execution is not directly supported by the current description.

Generated by OpenCVE AI on November 2, 2026 at 15:40 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libgphoto2 to a version newer than 2.5.34 that contains the security fix. Consult the vendor release notes for the specific patch commit referenced in the advisory.
  • Limit USB camera devices on systems that run libgphoto2 by implementing device whitelisting or strict access controls to prevent unauthorized hardware from attaching.
  • Disable thumbnail processing in libgphoto2 configurations or remove the affected code path if thumbnail support is not required for your workflow.

Generated by OpenCVE AI on November 2, 2026 at 15:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 02 Nov 2026 16:15:00 +0000

Type Values Removed Values Added
First Time appeared Gphoto
Gphoto libgphoto2
Vendors & Products Gphoto
Gphoto libgphoto2

Mon, 02 Nov 2026 14:30:00 +0000

Type Values Removed Values Added
Description 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.
Title libgphoto2 through 2.5.34 Heap Out-of-Bounds Read/Write via jl2005c Thumbnail Conversion
Weaknesses CWE-787
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H'}

cvssV4_0

{'score': 5.2, 'vector': 'CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Gphoto Libgphoto2
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-02T17:32:13.589Z

Reserved: 2026-11-02T12:42:20.666Z

Link: CVE-2026-120452

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-02T15:17:28.553

Modified: 2026-11-02T15:17:28.553

Link: CVE-2026-120452

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-02T16:00:09Z

Weaknesses