Read the docs

Stack buffer overflow in libgphoto2 via sierra_get_string_register()

Priority HIGH 66CWE-121Published · Updated

Key facts

Attack vector
Physical
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
No fix listed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-121 and the CVSS impact.

Summary

libgphoto2 through 2.5.34 contains a stack buffer overflow in sierra_get_string_register() that lets a malicious camera or USB device overwrite stack memory. An attacker with such a device can send an oversized packet when files are listed, writing up to 32 KB past small stack buffers to cause crashes or possible code execution, and no user privileges are needed beyond connecting the device. The flaw is classified as CWE-121.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Description from the CNA

libgphoto2 through 2.5.34 contains a stack buffer overflow in sierra_get_string_register() that lets a malicious sierra-protocol camera or USB device overwrite stack memory. When files are listed, the device can answer the file-name register with an oversized packet, writing up to 32 KB past small stack buffers to cause crashes or possible code execution.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00438 29th percentileScored 2026-11-30
Fix No fix listed No fixed version in the sources yet

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
gphotolibgphoto2up to 2.5.34—No fix listedCNA
  • libgphoto2 Vendorgphoto Affected up to 2.5.34 Fixed in — No fix listed CNA

Remediation

The sources list no fixed version for libgphoto2.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Timeline

  1. 2026-11-28 Threatist record created from CVE-2026-138158
  2. 2026-11-28 Alias added: GHSA-57qr-c6wx-f722
  3. 2026-11-30 CISA SSVC decision points changed

References

  • TI-2026-83843 Buffer overflows in libgphoto2 jl2005c driver allow memory corruption CVSS 4.0HIGH 7.0
  • TI-2026-29115 libgphoto2 has OOB read in ptp_unpack_OI() in ptp-pack.c via malicious PTP ObjectInfo response CVSS 3.1MEDIUM 6.1
  • TI-2026-29108 Out-of-bounds read in gphoto libgphoto2 CVSS 3.1MEDIUM 6.1
  • TI-2026-83844 libgphoto2 Heap Out-of-Bounds Read/Write via jl2005c Thumbnail Conversion CVSS 4.0MEDIUM 5.2
  • TI-2026-29114 libgphoto2 has OOB read in ptp_unpack_Sony_DPD() FormFlag parsing in ptp-pack.c CVSS 3.1MEDIUM 5.2
  • TI-2026-29113 libgphoto2 has OOB read in ptp_unpack_Sony_DPD() enumeration count parsing in ptp-pack.c CVSS 3.1MEDIUM 5.2
See all 10 →

Sources