CVE-2026-40333: CWE-125: Out-of-bounds Read in gphoto libgphoto2
CVE-2026-40333 is an out-of-bounds read vulnerability in libgphoto2 versions up to and including 2. 5. 33. The issue arises because two functions in the ptp-pack. c source file accept a data pointer without a length parameter, leading to unbounded reads. The callers in ptp_unpack_EOS_events() have the buffer size available but do not pass it, preventing validation of read boundaries. This vulnerability has a CVSS score of 6. 1, indicating a medium severity level. A patch addressing the issue was committed (commit 1817ecead20c2aafa7549dac9619fe38f47b2f53), but no official vendor advisory or patch link is provided in the data. There are no known exploits in the wild at this time.
AI Analysis
Technical Summary
The vulnerability in libgphoto2 (CVE-2026-40333) involves two functions in camlibs/ptp2/ptp-pack.c that perform unbounded reads due to the absence of a length parameter alongside a data pointer. The functions are called by ptp_unpack_EOS_events(), which has access to the buffer size (xsize) but does not pass it, resulting in out-of-bounds memory reads (CWE-125). This can lead to a high confidentiality impact and high availability impact, as indicated by the CVSS vector. The issue affects libgphoto2 versions up to 2.5.33. A code commit has been made to patch this vulnerability, but no official vendor advisory or patch distribution details are provided.
Potential Impact
The vulnerability allows an attacker to cause out-of-bounds reads, potentially exposing sensitive memory contents (high confidentiality impact) and causing denial of service (high availability impact). The CVSS score of 6.1 reflects a medium severity with network attack vector, low attack complexity, no privileges required, and no user interaction needed. There are no known exploits in the wild currently.
Mitigation Recommendations
A patch fixing the vulnerability has been committed (commit 1817ecead20c2aafa7549dac9619fe38f47b2f53). However, no official vendor advisory or patch distribution information is available in the provided data. Users should update libgphoto2 to a version later than 2.5.33 once the patched version is released. Until then, monitor the vendor's official channels for patch availability and apply updates promptly when available.
CVE-2026-40333: CWE-125: Out-of-bounds Read in gphoto libgphoto2
Description
CVE-2026-40333 is an out-of-bounds read vulnerability in libgphoto2 versions up to and including 2. 5. 33. The issue arises because two functions in the ptp-pack. c source file accept a data pointer without a length parameter, leading to unbounded reads. The callers in ptp_unpack_EOS_events() have the buffer size available but do not pass it, preventing validation of read boundaries. This vulnerability has a CVSS score of 6. 1, indicating a medium severity level. A patch addressing the issue was committed (commit 1817ecead20c2aafa7549dac9619fe38f47b2f53), but no official vendor advisory or patch link is provided in the data. There are no known exploits in the wild at this time.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in libgphoto2 (CVE-2026-40333) involves two functions in camlibs/ptp2/ptp-pack.c that perform unbounded reads due to the absence of a length parameter alongside a data pointer. The functions are called by ptp_unpack_EOS_events(), which has access to the buffer size (xsize) but does not pass it, resulting in out-of-bounds memory reads (CWE-125). This can lead to a high confidentiality impact and high availability impact, as indicated by the CVSS vector. The issue affects libgphoto2 versions up to 2.5.33. A code commit has been made to patch this vulnerability, but no official vendor advisory or patch distribution details are provided.
Potential Impact
The vulnerability allows an attacker to cause out-of-bounds reads, potentially exposing sensitive memory contents (high confidentiality impact) and causing denial of service (high availability impact). The CVSS score of 6.1 reflects a medium severity with network attack vector, low attack complexity, no privileges required, and no user interaction needed. There are no known exploits in the wild currently.
Mitigation Recommendations
A patch fixing the vulnerability has been committed (commit 1817ecead20c2aafa7549dac9619fe38f47b2f53). However, no official vendor advisory or patch distribution information is available in the provided data. Users should update libgphoto2 to a version later than 2.5.33 once the patched version is released. Until then, monitor the vendor's official channels for patch availability and apply updates promptly when available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-10T22:50:01.357Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e2c0dabdfbbecc599fc04c
Added to database: 4/17/2026, 11:23:06 PM
Last enriched: 4/17/2026, 11:38:40 PM
Last updated: 4/18/2026, 6:58:01 AM
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.