# CVE-2026-120451: libgphoto2 through 2.5.34 Buffer Overflow via jl2005c Camera Driver

- Severity: High 7.0 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/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.26%, higher than 19% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-02T14:29:09.529Z
- Modified: 2026-11-06T20:17:17.567Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- gPhoto libgphoto2: up to 2.5.34

## Every score

- VulnCheck: CVSS:4.0 7.0 High `CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://hackmd.io/@haindpwn/libgphoto2-jl2005c-init-alloc-table-buffer-overflow> (exploit, technical-description)
- <https://github.com/gphoto/libgphoto2/issues/1326> (issue-tracking)
- <https://github.com/gphoto/libgphoto2/commit/af3b8e9c542cda863fb5f2f3cfeb261bd78e4442> (patch)
- <https://github.com/gphoto/libgphoto2/commit/6a3393dd996502457ab965432cf0b2035278825e> (patch)
- <https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/jl2005c/jl2005c.c#L138-L154> (technical-description)
- <https://www.vulncheck.com/advisories/libgphoto2-through-2.5.34-buffer-overflow-via-jl2005c-camera-driver> (third-party-advisory)

## Sources

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

---

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