{"id":"CVE-2026-138158","aliases":["CVE-2026-138158"],"related":[],"kind":"vulnerability","state":"published","title":"libgphoto2 through 2.5.34 Stack Buffer Overflow via sierra_get_string_register()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-28T02:21:56.791Z","modified":"2026-11-30T16:17:20.413Z","severity":{"scorer":"VulnCheck","scheme":"CVSS: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","score":7,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS: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","score":7,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":6.6,"rating":"MEDIUM"}],"cwes":["CWE-121"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"2.5.34","status":"affected"}],"vendor":"gphoto","product":"libgphoto2","repo":"https://github.com/gphoto/libgphoto2","source":"cvelist"}],"references":[{"url":"https://github.com/gphoto/libgphoto2/security/advisories/GHSA-4f44-frcc-8824","tags":["exploit","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/gphoto/libgphoto2/commit/c4cd525d7461c26b89b4705dc74fc4b84d57ff3a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/sierra/library.c#L1285-L1289","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/gphoto/libgphoto2","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/libgphoto2-through-2.5.34-stack-buffer-overflow-via-sierra-get-string-register","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Deus Rex"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-11-30T15:49:19.526Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138158","url":"https://www.cve.org/CVERecord?id=CVE-2026-138158","licence":"CVE Terms of Use","modified":"2026-11-30T15:49:50.843Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138158","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138158","licence":"Public domain","modified":"2026-11-30T16:17:20.413Z"}],"updatedAt":"2026-11-30T16:32:19.008Z","epss":{"score":0.00438,"percentile":0.39831,"date":"2026-12-01T12:00:22.000Z"}}