{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-40340","published":"2026-04-18T00:16:38.087000Z","last_modified":"2026-10-26T21:10:00.170000Z","status":"Deferred","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","source":"security-advisories@github.com","primary":false},"auth":true,"cwes":["CWE-125"],"cpes":[],"cpes_truncated":false,"vendors":["gphoto"],"products":["gphoto/libgphoto2"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":37,"links":{"html_es":"/es/cve/CVE-2026-40340/","html_en":"/en/cve/CVE-2026-40340/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-40340","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-40340"},"untrusted":{"vendor_name":"gphoto","product_name":"libgphoto2","desc_en":"libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have an out-of-bounds read vulnerability in `ptp_unpack_OI()` in `camlibs/ptp2/ptp-pack.c` (lines 530–563). The function validates `len < PTP_oi_SequenceNumber` (i.e., len < 48) but subsequently accesses offsets 48–56, up to 9 bytes beyond the validated boundary, via the Samsung Galaxy 64-bit objectsize detection heuristic. Commit 7c7f515bc88c3d0c4098ac965d313518e0ccbe33 fixes the issue.","affected":[{"untrusted_vendor":"gphoto","untrusted_product":"libgphoto2","versions":[]}],"references":[{"url":"https://github.com/gphoto/libgphoto2/commit/7c7f515bc88c3d0c4098ac965d313518e0ccbe33","tags":[]},{"url":"https://github.com/gphoto/libgphoto2/security/advisories/GHSA-xfw3-xvjp-5wcv","tags":[]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2026:10916-1","url":"https://www.suse.com/support/update/","published":"2026-05-31T00:00:00+00:00","severity":"medium","exploited":false,"untrusted":{"title":"libgphoto2-6-2.5.34-1.1 on GA media"}}]}