# CVE-2026-40341: libgphoto2 has an OOB Read in ptp_unpack_EOS_FocusInfoEx

- Severity: Low 3.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-04-17T23:48:36.644Z
- Modified: 2026-10-26T21:10:00.170Z
- Weaknesses: CWE-126
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

libgphoto2 is a camera access and control library. In versions up to and including 2.5.33, an out of bound read in ptp_unpack_EOS_FocusInfoEx could be used to crash libgphoto2 when processing input from untrusted USB devices. Commit c385b34af260595dfbb5f9329526be5158985987 contains a patch. No known workarounds are available.

(As written by CVE List.)

## Affected

- gphoto libgphoto2: <= 2.5.33

## References

- <https://github.com/gphoto/libgphoto2/security/advisories/GHSA-vjx3-gjp6-r2g2>
- <https://github.com/gphoto/libgphoto2/commit/c385b34af260595dfbb5f9329526be5158985987>

## Sources

- CVE List: [CVE-2026-40341](https://www.cve.org/CVERecord?id=CVE-2026-40341), CVE Terms of Use, modified 2026-04-20
- NVD: [CVE-2026-40341](https://nvd.nist.gov/vuln/detail/CVE-2026-40341), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40341 · Whole record: https://cve.day/CVE-2026-40341.json · Rebuilt by cve.day 2026-11-25T22:59:18.983Z
