> CVE-2026-40334 [LOW]

« BACK_TO_HOME
PUBLISHED
2026-04-18 00:16
MODIFIED
2026-04-18 00:16
CVSS_SCORE V3
3.5
EPSS (Prob. Exploit)
0.21%
Top 89.6%
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. In versions up to and including 2.5.33, a missing null terminator exists in ptp_unpack_Canon_FE() in camlibs/ptp2/ptp-pack.c (line 1377). The function copies a filename into a 13-byte buffer using strncpy without explicitly null-terminating the result. If the source data is exactly 13 bytes with no null terminator, the buffer is left unterminated, leading to out-of-bounds reads in any subsequent string operation. Commit 259fc7d3bfe534ce4b114c464f55b448670ab873 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:L/I:N/A:L
EXPLOITABILITY
0.9
IMPACT
2.5

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:L/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
Low (L)
Divulgation limitée 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é
Low
Divulgation limitée d'informations
Intégrité
None
Aucune modification de données possible
Disponibilité
Low
Interruption partielle du service possible

> WEAKNESSES

CWE-170

> CWE DETAILED DESCRIPTIONS

CWE-170: Improper Null Termination - The product does not terminate or incorrectly terminates a string or array with a null character or equivalent terminator.

> 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-170: Improper Null Termination - The product does not terminate or incorrectly terminates a string or array with a null character or equivalent terminator.
Total des modifications: 1 Dernière mise à jour: 6 months ago

> REFERENCES

https://github.com/gphoto/libgphoto2/commit/259fc7d3bfe534ce4b114c464f55b448670a...
https://github.com/gphoto/libgphoto2/security/advisories/GHSA-ph87-cc3j-c6hm
« BACK_TO_HOME