Vulnerability · Published Nov 2, 2026 · Assigned by VulnCheck
CVE-2026-120452libgphoto2 through 2.5.34 Heap Out-of-Bounds Read/Write via jl2005c Thumbnail Conversion
Medium 5.4
In plain English
A medium-severity out-of-bounds write in libgphoto2 from gPhoto. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 8% of all known vulnerabilities).
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libgphoto2 | no fix listed | DEBIAN-CVE-2026-120452 |
| Debian:13 | libgphoto2 | no fix listed | DEBIAN-CVE-2026-120452 |
| Debian:14 | libgphoto2 | no fix listed | DEBIAN-CVE-2026-120452 |
| Ubuntu:22.04:LTS | libgphoto2 | no fix listed | UBUNTU-CVE-2026-120452 |
| Ubuntu:24.04:LTS | libgphoto2 | no fix listed | UBUNTU-CVE-2026-120452 |
| Ubuntu:26.04:LTS | libgphoto2 | no fix listed | UBUNTU-CVE-2026-120452 |
| Ubuntu:26.10 | libgphoto2 | no fix listed | UBUNTU-CVE-2026-120452 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| gPhoto | libgphoto2 | 0 – through 2.5.34 |
Weakness: CWE-787 · Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
References
- https://github.com/gphoto/libgphoto2/issues/1326 issue-tracking
- https://github.com/gphoto/libgphoto2/commit/af3b8e9c542cda863fb5f2f3cfeb261bd78e4442 patch
- https://github.com/gphoto/libgphoto2/commit/30bf7ace6d47cfe1232ea73bde2aceb95aba4bfb patch
- https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/jl2005c/jl2005bcd_decompress.c#L127-L130 technical-description
- https://hackmd.io/@haindpwn/libgphoto2-jl2005c-init-alloc-table-buffer-overflow technical-description
- VulnCheck Advisory: libgphoto2 through 2.5.34 Heap Out-of-Bounds Read/Write via jl2005c Thumbnail Conversion third-party-advisory