# CVE-2026-120452: libgphoto2 through 2.5.34 Heap Out-of-Bounds Read/Write via jl2005c Thumbnail Conversion

- Severity: Medium 5.2 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-11-02T14:29:10.220Z
- Modified: 2026-11-02T19:34:23.993Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- gPhoto libgphoto2: up to 2.5.34

## Every score

- VulnCheck: CVSS:4.0 5.2 Medium `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`
- VulnCheck: CVSS:3.1 5.4 Medium `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)
- <https://www.vulncheck.com/advisories/libgphoto2-through-2.5.34-heap-out-of-bounds-read-write-via-jl2005c-thumbnail-conversion> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-120452](https://www.cve.org/CVERecord?id=CVE-2026-120452), CVE Terms of Use, modified 2026-11-02
- NVD: [CVE-2026-120452](https://nvd.nist.gov/vuln/detail/CVE-2026-120452), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2026-120452 · Whole record: https://cve.day/CVE-2026-120452.json · Rebuilt by cve.day 2026-11-25T22:59:48.188Z
