{"id":"CVE-2026-138158","aliases":[],"kind":"cve","tier":"hot","status":"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.","ai_summary":{"text":"A malicious sierra-protocol camera or USB device can overflow stack buffers in libgphoto2 via an oversized file-name packet, causing crashes or possible code execution.","model":"claude-haiku-5-5","label":"AI summary"},"severity":"high","cvss":{"score":7,"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":"CNA"},"scores":[{"score":7,"source":"cna","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","version":"4.0"},{"score":6.6,"source":"cna","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},{"score":7,"source":"cna","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","version":"4.0"}],"cwe":["CWE-121"],"remote":false,"remote_unauth":false,"epss":null,"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[],"affected_products":[{"source":"cvelist","vendor":"gphoto","product":"libgphoto2","versions":"<= 2.5.34"}],"ai_versions":{"affected":[{"text":"through 2.5.34","quote":"libgphoto2 through 2.5.34","product":"libgphoto2"}],"fixed":[],"model":"claude-haiku-5-5","label":"AI-extracted versions"},"mitigation":"No fix listed yet: follow the vendor advisory.","technologies":[],"references":[{"url":"https://github.com/gphoto/libgphoto2/security/advisories/GHSA-4f44-frcc-8824","kind":"vendor"},{"url":"https://github.com/gphoto/libgphoto2/commit/c4cd525d7461c26b89b4705dc74fc4b84d57ff3a","kind":"patch"},{"url":"https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/sierra/library.c#L1285-L1289","kind":"article"},{"url":"https://github.com/gphoto/libgphoto2","kind":"other"},{"url":"https://www.vulncheck.com/advisories/libgphoto2-through-2.5.34-stack-buffer-overflow-via-sierra-get-string-register","kind":"other"}],"workarounds":null,"vendors":["gphoto"],"products":["libgphoto2"],"cpes":[],"published_at":"2026-11-28T02:21:56.791Z","modified_at":"2026-11-28T03:17:07.590Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138158"}],"links":{"html":"https://flawdb.com/CVE-2026-138158","markdown":"https://flawdb.com/CVE-2026-138158.md","json":"https://flawdb.com/api/v1/entries/CVE-2026-138158"}}