{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "2.5.34"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "af3b8e9c542cda863fb5f2f3cfeb261bd78e4442"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "6a3393dd996502457ab965432cf0b2035278825e"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "af3b8e9c542cda863fb5f2f3cfeb261bd78e4442"
            },
            {
              "fixed": "6a3393dd996502457ab965432cf0b2035278825e"
            }
          ],
          "repo": "https://github.com/gphoto/libgphoto2",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120451.json"
  },
  "details": "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.",
  "id": "CVE-2026-120451",
  "modified": "2026-11-11T10:30:54.764216501Z",
  "published": "2026-11-02T14:29:09.529Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120451.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-120451"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/libgphoto2-through-2.5.34-buffer-overflow-via-jl2005c-camera-driver"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/gphoto/libgphoto2/issues/1326"
    },
    {
      "type": "FIX",
      "url": "https://github.com/gphoto/libgphoto2/commit/6a3393dd996502457ab965432cf0b2035278825e"
    },
    {
      "type": "FIX",
      "url": "https://github.com/gphoto/libgphoto2/commit/af3b8e9c542cda863fb5f2f3cfeb261bd78e4442"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/gphoto/libgphoto2"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/jl2005c/jl2005c.c#L138-L154"
    },
    {
      "type": "ARTICLE",
      "url": "https://hackmd.io/@haindpwn/libgphoto2-jl2005c-init-alloc-table-buffer-overflow"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "libgphoto2 through 2.5.34 Buffer Overflow via jl2005c Camera Driver"
}