{"id":"CVE-2026-40333","sourceIdentifier":"security-advisories@github.com","published":"2026-04-18T00:16:37.120","lastModified":"2026-10-26T22:10:00.163","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"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."}],"affected":[{"source":"security-advisories@github.com","affectedData":[{"vendor":"gphoto","product":"libgphoto2","versions":[{"version":"<= 2.5.33","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","baseScore":6.1,"baseSeverity":"MEDIUM","attackVector":"PHYSICAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":0.9,"impactScore":5.2}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-04-20T14:51:40.405001Z","id":"CVE-2026-40333","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-125"}]}],"references":[{"url":"https://github.com/gphoto/libgphoto2/commit/1817ecead20c2aafa7549dac9619fe38f47b2f53","source":"security-advisories@github.com"},{"url":"https://github.com/gphoto/libgphoto2/security/advisories/GHSA-hq94-cp6h-3gjp","source":"security-advisories@github.com"}]}