{"id":"CVE-2026-120452","summary":"libgphoto2 through 2.5.34 Heap Out-of-Bounds Read/Write via jl2005c Thumbnail Conversion","details":"libgphoto2 through 2.5.34 contains a heap out-of-bounds read and write vulnerability in jl2005bcd_decompress() that allows malicious USB cameras to corrupt heap memory via oversized thumbnail processing. Attackers can supply small allocation-table values and a thumbnail header byte so in-place byte-swapping exceeds the buffer by about 30 KB, leaking heap contents in preview images.","modified":"2026-11-04T07:08:08.385706030Z","published":"2026-11-02T14:29:10.220Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120452.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120452.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120452"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/libgphoto2-through-2.5.34-heap-out-of-bounds-read-write-via-jl2005c-thumbnail-conversion"},{"type":"REPORT","url":"https://github.com/gphoto/libgphoto2/issues/1326"},{"type":"FIX","url":"https://github.com/gphoto/libgphoto2/commit/30bf7ace6d47cfe1232ea73bde2aceb95aba4bfb"},{"type":"FIX","url":"https://github.com/gphoto/libgphoto2/commit/af3b8e9c542cda863fb5f2f3cfeb261bd78e4442"},{"type":"PACKAGE","url":"https://github.com/gphoto/libgphoto2"},{"type":"ARTICLE","url":"https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/jl2005c/jl2005bcd_decompress.c#L127-L130"},{"type":"ARTICLE","url":"https://hackmd.io/@haindpwn/libgphoto2-jl2005c-init-alloc-table-buffer-overflow"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/gphoto/libgphoto2","events":[{"introduced":"0"},{"fixed":"af3b8e9c542cda863fb5f2f3cfeb261bd78e4442"},{"fixed":"30bf7ace6d47cfe1232ea73bde2aceb95aba4bfb"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"last_affected":"2.5.34"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"af3b8e9c542cda863fb5f2f3cfeb261bd78e4442"}]},{"range":[{"fixed":"30bf7ace6d47cfe1232ea73bde2aceb95aba4bfb"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v2.5.34","libgphoto2-2_5_34-release","v2.5.32","libgphoto2-2_5_32-release","v2.5.31","libgphoto2-2_5_31-release","v2.5.30","libgphoto2-2_5_30-release","v2.5.29","libgphoto2-2_5_29-release","v2.5.28","libgphoto2-2_5_28-release","v2.5.27","libgphoto2-2_5_27-release","v2.5.26","libgphoto2-2_5_26-release","v2.5.25","libgphoto2-2_5_25-release","v2.5.24","libgphoto2-2_5_24-release","libgphoto2-2_5_23-release","libgphoto2-2_5_22-release","libgphoto2-2_5_21-release","libgphoto2-2_5_20-release","libgphoto2-2_5_19-release","libgphoto2-2_5_18-release","libgphoto2-2_5_17-release","libgphoto2-2_5_16-release","libgphoto2-2_5_15-release","libgphoto2-2_5_14-release","libgphoto2-2_5_13-release","libgphoto2-2_5_12-release","libgphoto2-2_5_11-release","libgphoto2-2_5_10-release","libgphoto2-2_5_9-release","libgphoto2-2_5_8-release","libgphoto2-2_5_7-release","libgphoto2-2_5_6-release","libgphoto2-2_5_5_1-release","libgphoto2-2_5_5-release","libgphoto2-2_5_4-release","libgphoto2-2_5_3_1-release","libgphoto2-2_5_3-release","libgphoto2-2_5_2-release","libgphoto2-2_5_1_1-release","libgphoto2-2_5_1-release","libgphoto2-2_5_0-release"],"database_specific":{"vanir_signatures":[{"source":"https://github.com/gphoto/libgphoto2/commit/30bf7ace6d47cfe1232ea73bde2aceb95aba4bfb","target":{"file":"camlibs/jl2005c/jl2005bcd_decompress.c","function":"jl2005bcd_decompress"},"deprecated":false,"digest":{"length":4909,"function_hash":"186795467781599455575681830360529645690"},"id":"CVE-2026-120452-7e2e77e6","signature_type":"Function","signature_version":"v1"},{"digest":{"line_hashes":["253831431337293839390932995748194585388","5861968022940552983401984918824834018","227195544656674987569564576742528463615","309510561165222969414203442789323260213"],"threshold":0.9},"id":"CVE-2026-120452-8d7ddd7a","signature_type":"Line","signature_version":"v1","source":"https://github.com/gphoto/libgphoto2/commit/30bf7ace6d47cfe1232ea73bde2aceb95aba4bfb","target":{"file":"camlibs/jl2005c/jl2005bcd_decompress.c"},"deprecated":false}],"vanir_signatures_modified":"2026-11-04T07:08:08Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120452.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N"}]}