CVE-2026-120452

libgphoto2 through 2.5.34 Heap Out-of-Bounds Read/Write via jl2005c Thumbnail Conversion

Published Nov 2, 2026 CVSS 4.0 · 5.2 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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

Source ID Title
Ubuntu USN Ubuntu USN USN-9017-1 libgphoto2 vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Gphoto
Gphoto libgphoto2
Vendors & Products Gphoto
Gphoto libgphoto2
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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 2, 2026, 5:32 PM
Reserved
Nov 2, 2026, 12:42 PM
Status
Awaiting Analysis
Published
Nov 2, 2026, 3:17 PM
Modified
Nov 2, 2026, 7:34 PM
Severity
Moderate
Public date
Nov 2, 2026, 2:29 PM