{"id":"CVE-2026-138158","aliases":["GHSA-4f44-frcc-8824"],"title":"libgphoto2 through 2.5.34 Stack Buffer Overflow via sierra_get_string_register()","originalDescription":"libgphoto2 through 2.5.34 contains a stack buffer overflow in sierra_get_string_register() that lets a malicious sierra-protocol camera or USB device overwrite stack memory. When files are listed, the device can answer the file-name register with an oversized packet, writing up to 32 KB past small stack buffers to cause crashes or possible code execution.","severity":{"cvss":7,"vector":"CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","label":"high"},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[],"references":[{"url":"https://github.com/gphoto/libgphoto2/security/advisories/GHSA-4f44-frcc-8824","type":"vendor-advisory"},{"url":"https://github.com/gphoto/libgphoto2/commit/c4cd525d7461c26b89b4705dc74fc4b84d57ff3a","type":"patch"},{"url":"https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/sierra/library.c#L1285-L1289","type":"technical-description"},{"url":"https://github.com/gphoto/libgphoto2","type":"product"},{"url":"https://www.vulncheck.com/advisories/libgphoto2-through-2.5.34-stack-buffer-overflow-via-sierra-get-string-register","type":"third-party-advisory"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138158.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138158","type":"advisory"}],"sources":[{"name":"nvd","at":"2026-11-28T03:27:08.880Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138158","license":"NVD terms of use","firstSeenAt":"2026-11-28T03:27:08.880Z"},{"name":"osv","at":"2026-11-28T04:33:38.184Z","url":"https://osv.dev/vulnerability/CVE-2026-138158","license":"CC-BY 4.0","firstSeenAt":"2026-11-28T04:33:38.184Z"},{"name":"cvelistV5","at":"2026-11-28T13:51:56.060Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-138158","license":"CVE Terms of Use","firstSeenAt":"2026-11-28T02:51:43.387Z"}],"firstSeenAt":"2026-11-28T02:51:43.387Z","publishedAt":"2026-11-28T02:21:56.791Z","modifiedAt":"2026-11-28T04:00:13.601Z"}