Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.0%top 99%

CVE-2026-40341: CWE-126: Buffer Over-read in gphoto libgphoto2

0
Low
VulnerabilityCVE-2026-40341cvecve-2026-40341cwe-126
Published: Fri Apr 17 2026 (04/17/2026, 23:48:36 UTC)
Source: CVE Database V5
Vendor/Project: gphoto
Product: libgphoto2

Description

libgphoto2 is a camera access and control library. In versions up to and including 2.5.33, an out of bound read in ptp_unpack_EOS_FocusInfoEx could be used to crash libgphoto2 when processing input from untrusted USB devices. Commit c385b34af260595dfbb5f9329526be5158985987 contains a patch. No known workarounds are available.

CVSS v3.1

Score 3.5low

Attack Vector
Physical
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
Low
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/26/2026, 02:39:52 UTC

Technical Analysis

The vulnerability CVE-2026-40341 affects libgphoto2, a camera access and control library, in versions up to 2.5.33. It is caused by an out-of-bounds read in the ptp_unpack_EOS_FocusInfoEx function, which can lead to a crash of the library when processing data from untrusted USB devices. This is classified as a CWE-126 buffer over-read. A patch commit has been identified (c385b34af260595dfbb5f9329526be5158985987), but no official remediation level or vendor advisory is available. The CVSS 3.1 base score is 3.5, indicating low severity, with the attack vector being physical (local USB device), no privileges required, and no user interaction needed.

Potential Impact

Successful exploitation of this vulnerability can cause a denial of service by crashing libgphoto2 when it processes malicious input from untrusted USB devices. There is no indication of confidentiality or integrity impact. No known exploits are reported in the wild.

Mitigation Recommendations

A patch addressing this vulnerability exists in the identified commit, but no official vendor advisory or released patch is currently confirmed. Users should monitor the vendor's official channels for a formal patch release and apply it once available. No workarounds are currently known.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-10T22:50:01.358Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69e389f6bdfbbecc59765178

Added to database: 4/18/2026, 1:41:10 PM

Last enriched: 4/26/2026, 2:39:52 AM

Last updated: 6/1/2026, 11:06:45 AM

Views: 136

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses