CVE-2026-120452
libgphoto2 through 2.5.34 Heap Out-of-Bounds Read/Write via jl2005c Thumbnail Conversion
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.
Attack profile
How easy it is to exploit
- Attack vector
- Physical
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Passive
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
5.2
libgphoto2 through 2.5.34 Heap Out-of-Bounds Read/Write via jl2005c Thumbnail Conversion
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.
- Record
CVE-2026-120452- 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 - 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 - Weakness
- CWE-787
- Updated
- 2026-11-02
EUVDEUVD-2026-115212
5.2
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.
- Record
EUVD-2026-115212- 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 - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-4cvw-qwj9-xjc2
5.2
libgphoto2 through 2.5.34 contains a heap out-of-bounds read and write vulnerability in...
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.
- Record
GHSA-4cvw-qwj9-xjc2- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - 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 - Weakness
- CWE-787
- Updated
- 2026-11-02
NVD
5.2
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.
- Record
CVE-2026-120452- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - 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 - Weakness
- CWE-787
- Updated
- 2026-11-03
OSV
5.2
libgphoto2 through 2.5.34 Heap Out-of-Bounds Read/Write via jl2005c Thumbnail Conversion
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.
- Record
CVE-2026-120452- 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 - Weakness
- CWE-787
- Updated
- 2026-11-04
OSVDEBIAN-CVE-2026-120452
5.2
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.
- Record
DEBIAN-CVE-2026-120452- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Updated
- 2026-11-04
OSVUBUNTU-CVE-2026-120452
5.2
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.
- Record
UBUNTU-CVE-2026-120452- 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 - 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 - Updated
- 2026-11-05
OSVAZL-112523 No score
CVE-2026-120452 affecting package libgphoto2 2.5.31-1
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.
- Record
AZL-112523- Updated
- 2026-11-05
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libgphoto2Azure Linux:3 |
through 2.5.31-1 | None known |
libgphoto2Debian:12 |
All versions, plus listed versions 2.5.30-12.5.31-12.5.31-22.5.31-2.12.5.31-2.1~exp1 Show 6 moreShow less2.5.31-32.5.31-42.5.32-12.5.33-12.5.34-12.5.34-2 |
None known |
libgphoto2Debian:13 |
All versions, plus listed versions 2.5.31-42.5.32-12.5.33-12.5.34-12.5.34-2 |
None known |
libgphoto2Debian:14 |
All versions, plus listed versions 2.5.31-42.5.32-12.5.33-12.5.34-12.5.34-2 |
None known |
libgphoto2Ubuntu:14.04:LTS |
All versions, plus listed versions 2.5.2-0ubuntu52.5.2-0ubuntu62.5.3.1-0ubuntu12.5.3.1-1ubuntu22.5.3.1-1ubuntu2.2 |
None known |
libgphoto2Ubuntu:16.04:LTS |
All versions, plus listed versions 2.5.8-12.5.8-22.5.8-32.5.9-22.5.9-3 |
None known |
libgphoto2Ubuntu:18.04:LTS |
All versions, plus listed versions 2.5.14-12.5.16-2 |
None known |
libgphoto2Ubuntu:20.04:LTS |
All versions, plus listed versions 2.5.23-22.5.24-12.5.25-0ubuntu0.1 |
None known |
libgphoto2Ubuntu:22.04:LTS |
All versions, plus listed versions 2.5.27-12.5.27-1build12.5.27-1build22.5.27-1ubuntu0.1 |
None known |
libgphoto2Ubuntu:24.04:LTS |
All versions, plus listed versions 2.5.30-12.5.31-12.5.31-22.5.31-2.1build12.5.31-2.1build22.5.31-2.1ubuntu12.5.31-2.1ubuntu1.1 |
None known |
libgphoto2Ubuntu:26.10 |
All versions, plus listed versions 2.5.33-1ubuntu12.5.33-1ubuntu2 |
None known |
libgphoto2Ubuntu:26.04:LTS |
All versions, plus listed versions 2.5.31-4build12.5.32-12.5.33-12.5.33-1ubuntu12.5.33-1ubuntu1.1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, aliases, references | OSV | |
| affected, aliases, references | OSV | |
| facts | OSV | |
| affected, aliases, references | EUVD, OSV | |
| references | NVD, OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-120452 is a medium vulnerability (CVSS 5.2) in Gphoto Libgphoto2, published November 2, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.18%, the 8th percentile. No source names a fixed version.
References
github.com/gphoto/libgphoto2/issues/1326
github.com/gphoto/libgphoto2/commit/af3b8e9c542cda863fb5f2f3cfeb261bd78e4442
github.com/gphoto/libgphoto2/commit/30bf7ace6d47cfe1232ea73bde2aceb95aba4bfb
github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/jl2005c/jl2005bcd_decompress.c
hackmd.io/@haindpwn/libgphoto2-jl2005c-init-alloc-table-buffer-overflow
vulncheck.com/advisories/libgphoto2-through-2.5.34-heap-out-of-bounds-read-write-via-jl2005c-thumbnail-conversion
Show 7 moreShow less
nvd.nist.gov/vuln/detail/CVE-2026-120452
github.com/advisories/GHSA-4cvw-qwj9-xjc2
github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120452.json
github.com/gphoto/libgphoto2
security-tracker.debian.org/tracker/CVE-2026-120452
ubuntu.com/security/CVE-2026-120452
cve.org/CVERecord?id=CVE-2026-120452