Buffer overflow in Gphoto Libgphoto2
CVE-2026-120452
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H.
EPSS exploit prediction
No EPSS score from FIRST.org yet. New CVEs usually get one within a few days; no score means no signal yet, not low risk. How EPSS works.
Affected products
Weakness classification (CWE)
References
- github.com/gphoto/libgphoto2/issues/1326 (issue-tracking)
- github.com/gphoto/libgphoto2/commit/af3b8e9c542cda863fb5f2f3cfeb261bd78e4442 (patch)
- github.com/gphoto/libgphoto2/commit/30bf7ace6d47cfe1232ea73bde2aceb95aba4bfb (patch)
- github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/jl2005c/jl2005bcd_decompress.c (technical-description)
- hackmd.io/@haindpwn/libgphoto2-jl2005c-init-alloc-table-buffer-overflow (technical-description)
- www.vulncheck.com/advisories/libgphoto2-through-2.5.34-heap-out-of-bounds-read-… (third-party-advisory)
Frequently asked questions
- What is CVE-2026-120452?
- CVE-2026-120452 is a medium-severity vulnerability in Gphoto Libgphoto2, classified under Out-of-bounds Write. CVSS score: 5.4/10. Published 2026-11-02.
- How severe is CVE-2026-120452?
- Medium severity. CVSS v3 base score is 5.4 out of 10.