{"id":"CVE-2026-40333","aliases":["CVE-2026-40333"],"related":[],"kind":"vulnerability","state":"published","title":"libgphoto2 has OOB read in ptp_unpack_EOS_ImageFormat() and ptp_unpack_EOS_CustomFuncEx() due to missing length parameter in ptp-pack.c","summary":"libgphoto2 is a camera access and control library. In versions up to and including 2.5.33, two functions in camlibs/ptp2/ptp-pack.c accept a data pointer but no length parameter, performing unbounded reads. Their callers in ptp_unpack_EOS_events() have xsize available but never pass it, leaving both functions unable to validate reads against the actual buffer boundary. Commit 1817ecead20c2aafa7549dac9619fe38f47b2f53 patches the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"libgphoto2 is a camera access and control library. In versions up to and including 2.5.33, two functions in camlibs/ptp2/ptp-pack.c accept a data pointer but no length parameter, performing unbounded reads. Their callers in ptp_unpack_EOS_events() have xsize available but never pass it, leaving both functions unable to validate reads against the actual buffer boundary. Commit 1817ecead20c2aafa7549dac9619fe38f47b2f53 patches the issue.","source":"cvelist"},{"lang":"es","text":"libgphoto2 es una biblioteca de acceso y control de cámaras. En versiones hasta la 2.5.33 inclusive, dos funciones en camlibs/ptp2/ptp-pack.c aceptan un puntero de datos pero ningún parámetro de longitud, realizando lecturas sin límites. Sus llamadores en ptp_unpack_EOS_events() tienen xsize disponible pero nunca lo pasan, dejando ambas funciones incapaces de validar las lecturas contra el límite real del búfer. El commit 1817ecead20c2aafa7549dac9619fe38f47b2f53 parchea el problema.","source":"nvd"}],"published":"2026-04-17T23:11:11.073Z","modified":"2026-10-26T22:10:00.163Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"version":"<= 2.5.33","status":"affected"}],"vendor":"gphoto","product":"libgphoto2","source":"cvelist"}],"references":[{"url":"https://github.com/gphoto/libgphoto2/security/advisories/GHSA-hq94-cp6h-3gjp","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/gphoto/libgphoto2/commit/1817ecead20c2aafa7549dac9619fe38f47b2f53","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-20T14:51:40.405Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40333","url":"https://www.cve.org/CVERecord?id=CVE-2026-40333","licence":"CVE Terms of Use","modified":"2026-04-20T14:56:44.091Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40333","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40333","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:18.980Z","epss":{"score":0.00261,"percentile":0.10929,"date":"2026-11-30T12:00:22.000Z"}}