libgphoto2 through 2.5.34 contains a stack buffer overflow in sierragetstringregister() that lets a malicious sierra-protocol camera or USB…
CVE-2026-138158
libgphoto2 through 2.5.34 contains a stack buffer overflow in sierragetstringregister() 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.
Assessment
- CVSS
- 7 (v4.0)
- Severity
- High
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 28 November 2026
- Last updated
- 28 November 2026
- Affected
- gphoto · libgphoto2
- Assigner
- VulnCheck
CVSS vectorCVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
At the source
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
- https://nvd.nist.gov/vuln/detail/CVE-2026-138158
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-138158