Cyber Resilience

CVE-2026-40341

Memory Safety

Published
18 April 2026
Modified
20 April 2026
CVSS Score v3.1 3.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
EPSS Score 0.0019 9th percentile
Risk Priority 28 floored blend · peak EPSS

Summary

CVE-2026-40341 is a low-severity Buffer Over-read (CWE-126) vulnerability. Its CVSS base score is 3.5 (Low).

Operationally, exploitation aligns with the MITRE ATT&CK technique OS Credential Dumping (T1003); ranked at the 9th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SA-8 (Security and Privacy Engineering Principles) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

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.…

more

No known workarounds are available.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1003 OS Credential Dumping Credential Access
Adversaries may attempt to dump credentials to obtain account login and credential material, normally in the form of a hash or a clear text password.
T1005 Data from Local System Collection
Adversaries may search local system sources, such as file systems, configuration files, local databases, virtual machine files, or process memory, to find files of interest and sensitive data prior to Exfiltration.
T1212 Exploitation for Credential Access Credential Access
Adversaries may exploit software vulnerabilities in an attempt to collect credentials.
T1552 Unsecured Credentials Credential Access
Adversaries may search compromised systems to find and obtain insecurely stored credentials.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-12106Shared CWE-126
CVE-2025-21176Shared CWE-126
CVE-2025-47971Shared CWE-126
CVE-2023-36581Shared CWE-126
CVE-2024-31082Shared CWE-126
CVE-2025-27065Shared CWE-126
CVE-2026-37532Shared CWE-126
CVE-2023-33166Shared CWE-126
CVE-2026-26184Shared CWE-126
CVE-2024-23358Shared CWE-126

Affected Assets

In
inferred from references and description; NVD did not file a CPE for this CVE

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

Developer testing and evaluation (static analysis, fuzzing, bounds checking tests) directly finds buffer over-read flaws.

Engineering principles such as memory-safe design and bounds-checked abstractions structurally stop introduction of out-of-bounds reads.

Process isolation limits the blast radius of an over-read to the compromised domain.

Input validation enforces length and index constraints that prevent many externally triggered over-reads.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure development practices directly prevent introduction of buffer over-read weaknesses.

ID.RA-01 partial match
prevents

Vulnerability identification processes can discover buffer over-read flaws via scanning or review.

PR.PS-02 partial match
prevents

Patching or replacing vulnerable software removes known instances of buffer over-read bugs.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing in development can detect buffer over-reads before release.

prevents

Secure SDLC mandates input validation and bounds checking that can prevent buffer over-reads.

prevents

Application security requirements can specify buffer-size and bounds-checking rules.

prevents

Secure architecture principles include memory-safety and bounds-checking design choices.

prevents

Secure coding standards directly require bounds-checked buffer access, mitigating over-reads.

References