{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-40334","published":"2026-04-18T00:16:37.257000Z","last_modified":"2026-10-26T22:10:00.163000Z","status":"Deferred","cvss":{"version":"3.1","score":3.5,"severity":"LOW","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","source":"security-advisories@github.com","primary":false},"auth":true,"cwes":["CWE-170"],"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":"low","priority_score":21,"links":{"html_es":"/es/cve/CVE-2026-40334/","html_en":"/en/cve/CVE-2026-40334/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-40334","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-40334"},"untrusted":{"vendor_name":"gphoto","product_name":"libgphoto2","desc_en":"libgphoto2 is a camera access and control library. In versions up to and including 2.5.33, a missing null terminator exists in ptp_unpack_Canon_FE() in camlibs/ptp2/ptp-pack.c (line 1377). The function copies a filename into a 13-byte buffer using strncpy without explicitly null-terminating the result. If the source data is exactly 13 bytes with no null terminator, the buffer is left unterminated, leading to out-of-bounds reads in any subsequent string operation. Commit 259fc7d3bfe534ce4b114c464f55b448670ab873 patches the issue.","affected":[{"untrusted_vendor":"gphoto","untrusted_product":"libgphoto2","versions":[]}],"references":[{"url":"https://github.com/gphoto/libgphoto2/commit/259fc7d3bfe534ce4b114c464f55b448670ab873","tags":[]},{"url":"https://github.com/gphoto/libgphoto2/security/advisories/GHSA-ph87-cc3j-c6hm","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"}}]}