CVE Database›Document archive›CVE-2026-40339

CVE-2026-40339

libgphoto2: libgphoto2: Information Disclosure via out-of-bounds read

Loading…

Severity

Moderate

Red Hat Product Security

5

CVSS 3.1

Review impact separately from score.

Published · April 18, 2026

Updated · July 3, 2026

Description

A flaw was found in libgphoto2, a library for camera access and control. An out-of-bounds read vulnerability exists in the ptp_unpack_Sony_DPD() function due to a missing bounds check when reading the FormFlag byte. This flaw could allow an attacker to disclose sensitive information from memory.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

If camera interaction is not required, remove the libgphoto2 package to eliminate this vulnerability. Alternatively, avoid connecting untrusted cameras or processing untrusted image data through applications that utilize libgphoto2. This operational control reduces exposure by limiting the attack surface.

CVSS / CWE

CVSS 3.1 · 5
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N

CWE-125 · Out-of-bounds Read