> CVE-2026-40335 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2026-04-18 00:16
MODIFIED
2026-04-18 00:16
CVSS_SCORE V3
5.2
EPSS (Prob. Exploit)
0.22%
Top 88.1%
DATA SOURCES:
NVD đź”— 2026-04-18 CWE MITRE đź”— 2026-11-01 FIRST EPSS đź”— 2026-10-25

> DESCRIPTION

libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have an out-of-bounds read in `ptp_unpack_DPV()` in `camlibs/ptp2/ptp-pack.c` (lines 622–629). The UINT128 and INT128 cases advance `*offset += 16` without verifying that 16 bytes remain in the buffer. The entry check at line 609 only guarantees `*offset < total` (at least 1 byte available), leaving up to 15 bytes unvalidated. Commit 433bde9888d70aa726e32744cd751d7dbe94379a patches the issue.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L
EXPLOITABILITY
0.9
IMPACT
4.2

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Physical (P)
Exploit nécessite un accès physique à l'appareil
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
None (N)
Aucune modification de données possible
A (Impact Disponibilité)
Availability Impact
Low (L)
Interruption partielle du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
None
Aucune modification de données possible
Disponibilité
Low
Interruption partielle du service possible

> WEAKNESSES

CWE-125

> CWE DETAILED DESCRIPTIONS

CWE-125: Out-of-bounds Read - The product reads data past the end, or before the beginning, of the intended buffer.

> HISTORIQUE DES MODIFICATIONS

Première apparition
18/04/2026 00:16
Source: NVD
📊 ENRICHISSEMENT 01/05/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-125: Out-of-bounds Read - The product reads data past the end, or before the beginning, of the intended buffer.
Total des modifications: 1 Dernière mise à jour: 6 months ago

> REFERENCES

https://github.com/gphoto/libgphoto2/commit/433bde9888d70aa726e32744cd751d7dbe94...
https://github.com/gphoto/libgphoto2/security/advisories/GHSA-g4g5-c2x9-cqfj
« BACK_TO_HOME