{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-40335","published":"2026-04-18T00:16:37.390000Z","last_modified":"2026-10-25T23:10:00.167000Z","status":"Deferred","cvss":{"version":"3.1","score":5.2,"severity":"MEDIUM","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L","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":31,"links":{"html_es":"/es/cve/CVE-2026-40335/","html_en":"/en/cve/CVE-2026-40335/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-40335","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-40335"},"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 in `ptp_unpack_DPV()` in `camlibs/ptp2/ptp-pack.c` (lines 622–629). The UINT128 and INT128 cases advance `*offset += 16` without verifying that 16 bytes remain in the buffer. The entry check at line 609 only guarantees `*offset < total` (at least 1 byte available), leaving up to 15 bytes unvalidated. Commit 433bde9888d70aa726e32744cd751d7dbe94379a patches the issue.","affected":[{"untrusted_vendor":"gphoto","untrusted_product":"libgphoto2","versions":[]}],"references":[{"url":"https://github.com/gphoto/libgphoto2/commit/433bde9888d70aa726e32744cd751d7dbe94379a","tags":[]},{"url":"https://github.com/gphoto/libgphoto2/security/advisories/GHSA-g4g5-c2x9-cqfj","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"}}]}