{"id":"CVE-2026-138158","state":"PUBLISHED","title":"libgphoto2 through 2.5.34 Stack Buffer Overflow via sierra_get_string_register()","description":"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.","publishedAt":"2026-11-28T02:21:56.791Z","updatedAt":"2026-11-28T02:21:56.791Z","severity":{"score":7,"label":"High","version":"4.0","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","source":"VulnCheck"},"assigner":"VulnCheck","products":["gphoto libgphoto2"],"affected":[{"vendor":"gphoto","product":"libgphoto2","packageURL":"pkg:github/gphoto/libgphoto2","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"2.5.34","versionType":"semver"}],"repo":"https://github.com/gphoto/libgphoto2"}],"references":["https://github.com/gphoto/libgphoto2/security/advisories/GHSA-4f44-frcc-8824","https://github.com/gphoto/libgphoto2/commit/c4cd525d7461c26b89b4705dc74fc4b84d57ff3a","https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/sierra/library.c#L1285-L1289","https://github.com/gphoto/libgphoto2","https://www.vulncheck.com/advisories/libgphoto2-through-2.5.34-stack-buffer-overflow-via-sierra-get-string-register"],"weaknesses":["CWE-121"],"ingestedAt":"2026-11-28T02:34:06.181Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/138xxx/CVE-2026-138158.json","commit":"5492e52a63ea356a46547fc984dabe634b75b798","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-138158","state":"PUBLISHED","datePublished":"2026-11-28T02:21:56.791Z","dateUpdated":"2026-11-28T02:21:56.791Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-11-28T02:14:59.747Z"},"containers":{"cna":{"title":"libgphoto2 through 2.5.34 Stack Buffer Overflow via sierra_get_string_register()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"gphoto","product":"libgphoto2","packageURL":"pkg:github/gphoto/libgphoto2","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"2.5.34","versionType":"semver"}],"repo":"https://github.com/gphoto/libgphoto2"}],"references":[{"url":"https://github.com/gphoto/libgphoto2/security/advisories/GHSA-4f44-frcc-8824","tags":["vendor-advisory"],"name":"GitHub Security Advisory (GHSA-4f44-frcc-8824)"},{"url":"https://github.com/gphoto/libgphoto2/commit/c4cd525d7461c26b89b4705dc74fc4b84d57ff3a","tags":["patch"]},{"url":"https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/sierra/library.c#L1285-L1289","tags":["technical-description"]},{"url":"https://github.com/gphoto/libgphoto2","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/libgphoto2-through-2.5.34-stack-buffer-overflow-via-sierra-get-string-register","name":"VulnCheck Advisory: libgphoto2 through 2.5.34 Stack Buffer Overflow via sierra_get_string_register()","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"PHYSICAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":7,"baseSeverity":"HIGH"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"PHYSICAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":6.6,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-121","lang":"en","description":"Stack-based Buffer Overflow","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-11-28T02:21:56.791Z"},"datePublic":"2026-11-08T00:00:00.000Z","credits":[{"lang":"en","value":"Deus Rex","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}}}}}