CVE Professor
/
All CVEs
CVE-2026-138158

CVE-2026-138158 — Gphoto Libgphoto2 — CWE-121

MEDIUM CVSS 6.6 ⚡ EPSS 0.4% NVD

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.

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.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack Vector Physical AV:P
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction Required UI:R
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
EPSS — Exploit Prediction Scoring System
0.4%
30-day probability
In the 31. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-138158
CVSS 6.6/10 · MEDIUM · 28.11.2026
CWE: CWE-121
Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Buffer Overflow / Memory Corruption
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.
Affected: gphoto libgphoto2

⚡ ATTACK VECTOR
Local/physical access (AV:L) · no authentication required (PR:N) · user interaction required (UI:R) · low attack complexity (AC:L).

🌍 REAL WORLD IMPACT
All confidential data readable/stealable; data can be modified or deleted; service can be completely taken down.

🛡️ REMEDIATION
→ Apply vendor security update for gphoto libgphoto2.
→ Verify ASLR/NX/Stack Canary are active.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
📋 Routine update cycle (30 days)

────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="gphoto libgphoto2"
CVSS Score
6.6 / 10 · CVSS MEDIUM
Weakness Types (CWE)
CWE-121
Affected Products (1)
gphoto:libgphoto2
Related CVEs
10.0
CVE-2026-144884
A vulnerability was determined in D-Link DIR-505 1.10B02. The affected element is the function get_input_entri
7.7
CVE-2026-144663
MariaDB Server before 10.6.25, 10.7 through 10.11.x before 10.11.16, 11.0 through 11.4.x before 11.4.10, 11.5
6.3
CVE-2026-144888
A security vulnerability has been detected in vgmstream up to r2117. Affected is the function fopen_win of the
6.3
CVE-2026-144893
A vulnerability was determined in vgmstream up to r2117. This issue affects the function get_falcom_looping of
5.9
CVE-2026-144662
MariaDB Server before 10.6.26, 10.7 through 10.11.x before 10.11.17, 11.0 through 11.4.x before 11.4.11, 11.5
7.8
CVE-2026-87725
Memory Corruption when writing to the sprd_rtm sysfs interface due to a stack-based buffer overflow.
7.7
CVE-2026-144457
CERN ROOT before 6.40.00 contains a stack-based buffer overflow vulnerability in TAuthenticate::SecureRecv() i