Summary
vedo can deserialize Python objects from crafted .npy or .npz files when loading files with allow_pickle=True. Opening a malicious mesh, assembly, scene, or font file may execute code with the privileges of the user running vedo.
Affected context
The issue affects vedo through version 2026.6.3 when file-loading paths process .npy or .npz data with pickle support enabled. Mesh, assembly, scene, or font files may be risky when they contain attacker-controlled serialized objects and are opened by an application using the affected behavior.
Exploit preconditions
- Attack surface: File loading in applications or workflows that use vedo to open relevant files
- Required access: The attacker must be able to supply or influence a file that the victim opens
- Trigger point: Deserialization of a
.npyor.npzfile withallow_pickle=True - Why exploitation is possible: Pickle-enabled loading can invoke object reconstruction behavior, including a malicious object's
__reduce__method
Why this happens
The underlying issue is unsafe deserialization, mapped to CWE-502. Enabling pickle when loading potentially untrusted NumPy data allows serialized objects to trigger reconstruction logic during parsing, rather than treating the file contents solely as passive data.
Potential impact
- Arbitrary code may run with the privileges of the process opening the file
- The affected user's data or application environment could be accessed or modified
- The compromised process could be used to access other resources available to that user
General mitigation guidance
Common defensive patterns focus on avoiding executable deserialization of untrusted files:
- Prefer data formats and loading modes that do not instantiate arbitrary objects
- Keep pickle support disabled for files that are not fully trusted
- Validate file provenance and constrain accepted file types and structures
- Run file-processing workloads with least privilege and limit access to sensitive resources
- Separate handling of untrusted files from high-trust workflows where feasible
How teams detect issues like this
Detection can include static analysis for pickle-enabled NumPy loading, such as uses of allow_pickle=True, especially in code paths that process externally supplied files. Code reviews can check whether file provenance and trust boundaries are enforced before deserialization. Policy checks may also prohibit pickle-enabled loading in applications that handle untrusted data.

