1. Archivio CVE
  2. 2025
  3. CVE-2025-58367

CVE-2025-58367

10 Gravità critica CVSS v4.0 · fonte NVD CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X 10 – Critica

Descrizione

DeepDiff is a project focused on Deep Difference and search of any Python data. Versions 5.0.0 through 8.6.0 are vulnerable to class pollution via the Delta class constructor, and when combined with a gadget available in DeltaDiff, it can lead to Denial of Service and Remote Code Execution (via insecure Pickle deserialization) exploitation. The gadget available in DeepDiff allows `deepdiff.serialization.SAFE_TO_IMPORT` to be modified to allow dangerous classes such as posix.system, and then perform insecure Pickle deserialization via the Delta class. This potentially allows any Python code to be executed, given that the input to Delta is user-controlled. Depending on the application where DeepDiff is used, this can also lead to other vulnerabilities. This is fixed in version 8.6.1.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
seperman deepdiff >= 5.0.0, < 8.6.1 –

Tipo di vulnerabilità

CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes

The product receives input from an upstream component that specifies multiple attributes, properties, or fields that are to be initialized or updated in an object, but it does not properly control which attributes can be modified.

Impatto sui sistemi

AmbitoImpatto
Integrità Modificare i dati dell’applicazione
Integrità Eseguire codice o comandi non autorizzati
Altro, Integrità Dipende dal contesto, Alterare la logica di esecuzione

Come si previene

Sviluppo If available, use features of the language or framework that allow specification of allowlists of attributes or fields that are allowed to be modified. If possible, prefer allowlists over denylists. For applications written with Ruby on Rails, use the attr_accessible (allowlist) or attr_protected (denylist) macros in each class that may be used in mass assignment.
Architettura e progettazione · Sviluppo If available, use the signing/sealing features of the programming language to assure that deserialized data has not been tainted. For example, a hash-based message authentication code (HMAC) could be used to ensure that data has not been modified.
Sviluppo · Validazione dell’input For any externally-influenced input, check the input against an allowlist of internal object attributes or fields that are allowed to be modified.
Sviluppo · Architettura e progettazione · Refactoring Refactor the code so that object attributes or fields do not need to be dynamically identified, and only expose getter/setter functionality for the intended attributes.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 138 CVE di tipo CWE-915, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org