CVE-2026-120452
published medium CVSS 4.0 · 5.2libgphoto2 through 2.5.34 Heap Out-of-Bounds Read/Write via jl2005c Thumbnail Conversion
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gPhoto | — | libgphoto20 through 2.5.34 · Other versions: unaffected | Affected | Not stated | VulnCheck |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Ubuntu | bionic | libgphoto2 | Advisory build | 2.5.16-2ubuntu0.1~esm1 | USN-9017-1 |
| Ubuntu | focal | libgphoto2 | Advisory build | 2.5.25-0ubuntu0.1+esm1 | USN-9017-1 |
| Ubuntu | jammy | libgphoto2 | Advisory build | 2.5.27-1ubuntu0.2 | USN-9017-1 |
| Ubuntu | noble | libgphoto2 | Advisory build | 2.5.31-2.1ubuntu1.2 | USN-9017-1 |
| Ubuntu | resolute | libgphoto2 | Advisory build | 2.5.33-1ubuntu1.2 | USN-9017-1 |
| Ubuntu | stonking | libgphoto2 | Advisory build | 2.5.33-1ubuntu2.1 | USN-9017-1 |
Show 26 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | trusty | libgphoto2 | Advisory build | 2.5.3.1-1ubuntu2.2+esm1 | USN-9017-1 |
| Ubuntu | xenial | libgphoto2 | Advisory build | 2.5.9-3ubuntu0.1~esm1 | USN-9017-1 |
| Ubuntu | bionic | libgphoto2-6 | Advisory build | 2.5.16-2ubuntu0.1~esm1 | USN-9017-1 |
| Ubuntu | bionic | libgphoto2-l10n | Advisory build | 2.5.16-2ubuntu0.1~esm1 | USN-9017-1 |
| Ubuntu | bionic | libgphoto2-port12 | Advisory build | 2.5.16-2ubuntu0.1~esm1 | USN-9017-1 |
| Ubuntu | focal | libgphoto2-6 | Advisory build | 2.5.25-0ubuntu0.1+esm1 | USN-9017-1 |
| Ubuntu | focal | libgphoto2-l10n | Advisory build | 2.5.25-0ubuntu0.1+esm1 | USN-9017-1 |
| Ubuntu | focal | libgphoto2-port12 | Advisory build | 2.5.25-0ubuntu0.1+esm1 | USN-9017-1 |
| Ubuntu | jammy | libgphoto2-6 | Advisory build | 2.5.27-1ubuntu0.2 | USN-9017-1 |
| Ubuntu | jammy | libgphoto2-l10n | Advisory build | 2.5.27-1ubuntu0.2 | USN-9017-1 |
| Ubuntu | jammy | libgphoto2-port12 | Advisory build | 2.5.27-1ubuntu0.2 | USN-9017-1 |
| Ubuntu | noble | libgphoto2-6t64 | Advisory build | 2.5.31-2.1ubuntu1.2 | USN-9017-1 |
| Ubuntu | noble | libgphoto2-l10n | Advisory build | 2.5.31-2.1ubuntu1.2 | USN-9017-1 |
| Ubuntu | noble | libgphoto2-port12t64 | Advisory build | 2.5.31-2.1ubuntu1.2 | USN-9017-1 |
| Ubuntu | resolute | libgphoto2-6t64 | Advisory build | 2.5.33-1ubuntu1.2 | USN-9017-1 |
| Ubuntu | resolute | libgphoto2-l10n | Advisory build | 2.5.33-1ubuntu1.2 | USN-9017-1 |
| Ubuntu | resolute | libgphoto2-port12t64 | Advisory build | 2.5.33-1ubuntu1.2 | USN-9017-1 |
| Ubuntu | stonking | libgphoto2-6t64 | Advisory build | 2.5.33-1ubuntu2.1 | USN-9017-1 |
| Ubuntu | stonking | libgphoto2-l10n | Advisory build | 2.5.33-1ubuntu2.1 | USN-9017-1 |
| Ubuntu | stonking | libgphoto2-port12t64 | Advisory build | 2.5.33-1ubuntu2.1 | USN-9017-1 |
| Ubuntu | trusty | libgphoto2-6 | Advisory build | 2.5.3.1-1ubuntu2.2+esm1 | USN-9017-1 |
| Ubuntu | trusty | libgphoto2-l10n | Advisory build | 2.5.3.1-1ubuntu2.2+esm1 | USN-9017-1 |
| Ubuntu | trusty | libgphoto2-port10 | Advisory build | 2.5.3.1-1ubuntu2.2+esm1 | USN-9017-1 |
| Ubuntu | xenial | libgphoto2-6 | Advisory build | 2.5.9-3ubuntu0.1~esm1 | USN-9017-1 |
| Ubuntu | xenial | libgphoto2-l10n | Advisory build | 2.5.9-3ubuntu0.1~esm1 | USN-9017-1 |
| Ubuntu | xenial | libgphoto2-port12 | Advisory build | 2.5.9-3ubuntu0.1~esm1 | USN-9017-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.2 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.4 | medium | VulnCheck · cna | CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gPhoto | libgphoto2 | 0 through 2.5.34 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-787 Out-of-bounds Write
References
6- https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/jl2005c/jl2005bcd_decompress.c#L127-L130
- https://github.com/gphoto/libgphoto2/commit/30bf7ace6d47cfe1232ea73bde2aceb95aba4bfb
- https://github.com/gphoto/libgphoto2/commit/af3b8e9c542cda863fb5f2f3cfeb261bd78e4442
- https://github.com/gphoto/libgphoto2/issues/1326
- https://hackmd.io/@haindpwn/libgphoto2-jl2005c-init-alloc-table-buffer-overflow
- VulnCheck Advisory: libgphoto2 through 2.5.34 Heap Out-of-Bounds Read/Write via jl2005c Thumbnail Conversion https://www.vulncheck.com/advisories/libgphoto2-through-2.5.34-heap-out-of-bounds-read-write-via-jl2005c-thumbnail-conversion
Provider assertions
2VulnCheck · cna
libgphoto2 through 2.5.34 Heap Out-of-Bounds Read/Write via jl2005c Thumbnail Conversion
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3d1da3f314d57d4640755f93c95f69d8c82676d1b88730f84197df125ec81572
- Ingested
- 02 Nov 2026, 17:40:06 UTC
- Source record
- Official CVE record