{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-138158","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","state":"PUBLISHED","assignerShortName":"VulnCheck","dateReserved":"2026-11-28T02:14:59.747Z","datePublished":"2026-11-28T02:21:56.791Z","dateUpdated":"2026-11-28T02:21:56.791Z"},"containers":{"cna":{"providerMetadata":{"orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","shortName":"VulnCheck","dateUpdated":"2026-11-28T02:21:56.791Z"},"datePublic":"2026-11-08T00:00:00.000Z","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."}],"problemTypes":[{"descriptions":[{"lang":"en","description":"Stack-based Buffer Overflow","cweId":"CWE-121","type":"CWE"}]}],"affected":[{"vendor":"gphoto","product":"libgphoto2","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","versionType":"semver","lessThanOrEqual":"2.5.34"}],"packageURL":"pkg:github/gphoto/libgphoto2","repo":"https://github.com/gphoto/libgphoto2"}],"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"}}],"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"]}],"credits":[{"lang":"en","value":"Deus Rex","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}}}}