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…

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

CVE-2026-40341 is a low-severity buffer over-read vulnerability in libgphoto2 versions up to and including 2. 5. 33. The flaw occurs in the ptp_unpack_EOS_FocusInfoEx function when processing input from untrusted USB devices, potentially causing the library to crash. A patch addressing this issue exists in commit c385b34af260595dfbb5f9329526be5158985987, but no official remediation level or vendor advisory details are provided. There are no known exploits in the wild or available workarounds.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/18/2026, 13:53:10 UTC

Technical Analysis

libgphoto2, a camera access and control library, contains a buffer over-read vulnerability (CWE-126) in the ptp_unpack_EOS_FocusInfoEx function in versions up to 2.5.33. This vulnerability allows an out-of-bounds read when processing data from untrusted USB devices, which can lead to a crash of the library. The issue has been patched in commit c385b34af260595dfbb5f9329526be5158985987. No further remediation details or workarounds are documented.

Potential Impact

The vulnerability can cause a denial of service by crashing libgphoto2 when handling malicious input from untrusted USB devices. There is no indication of confidentiality or integrity impact. No known exploits exist in the wild.

Mitigation Recommendations

A patch fixing this vulnerability is available in commit c385b34af260595dfbb5f9329526be5158985987. Users should update libgphoto2 to a version beyond 2.5.33 that includes this fix. No workarounds are known. Patch status is not officially confirmed beyond the commit reference; users should verify with the vendor or official sources for updated releases.

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/18/2026, 1:53:10 PM

Last updated: 4/18/2026, 4:05:01 PM

Views: 5

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