CVE-2026-120451
libgphoto2 through 2.5.34 Buffer Overflow via jl2005c Camera Driver
CVSS Score
6.8
EPSS Score
0.0%
EPSS Percentile
0th
libgphoto2 through 2.5.34 contains stack-based and heap-based buffer overflow vulnerabilities in jl2005c_init() that allow malicious USB devices to corrupt memory by supplying an unbounded allocation table entry count. Attackers can connect a spoofed Jeilin JL2005B/C/D camera reporting 1022 or more entries to overwrite the saved return address and heap data, potentially achieving code execution.
| CWE | CWE-787 |
| Vendor | gphoto |
| Product | libgphoto2 |
| Published | Nov 2, 2026 |
Stay Ahead of the Next One
Get instant alerts for gphoto libgphoto2
Be the first to know when new medium vulnerabilities affecting gphoto libgphoto2 are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Attack Vector
Physical
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Affected Versions
gPhoto / libgphoto2
0 โค 2.5.34
References
github.com: https://github.com/gphoto/libgphoto2/issues/1326 github.com: https://github.com/gphoto/libgphoto2/commit/af3b8e9c542cda863fb5f2f3cfeb261bd78e4442 github.com: https://github.com/gphoto/libgphoto2/commit/6a3393dd996502457ab965432cf0b2035278825e github.com: https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/jl2005c/jl2005c.c#L138-L154 hackmd.io: https://hackmd.io/@haindpwn/libgphoto2-jl2005c-init-alloc-table-buffer-overflow vulncheck.com: https://www.vulncheck.com/advisories/libgphoto2-through-2.5.34-buffer-overflow-via-jl2005c-camera-driver
Credits
HaiND from the Post and Telecommunication Institute of Technology TheProtagonist07