CVE-2026-137518 in pyfdainfo

Summary

by MITRE • 11/26/2026

pyfda through 0.9.5 contains an insecure deserialization vulnerability in load_filter() that allows attackers to execute code by supplying crafted .npz or .pkl filter files. Attackers can embed a __reduce__ gadget that runs via np.load with allow_pickle=True or pickle.load before validation, executing code with the user's privileges.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 11/26/2026

The vulnerability identified in pyfda versions through 0.9.5 represents a critical insecure deserialization flaw located within the load_filter function. This security issue stems from the application's reliance on Python libraries that support object serialization and deserialization, specifically numpy for .npz files and pickle for .pkl files. When users attempt to load filter definitions using these formats, the software processes the input data without sufficient validation or sanitization prior to instantiation of objects contained within the serialized payload. This architectural decision creates a direct pathway for remote code execution if an attacker can supply maliciously crafted input files. The core technical flaw lies in the use of numpy.load with the allow_pickle parameter set to true, as well as the standard pickle.load function, both of which are known to be unsafe when processing untrusted data sources because they permit the instantiation of arbitrary Python objects during the deserialization process.

From a technical perspective, this vulnerability exploits the _reduce_ method available in many Python classes. An attacker can construct a malicious .npz or .pkl file that contains an object with a custom _reduce_ implementation designed to execute specific system commands upon being unpickled by numpy.load or pickle.load. Because these operations occur before any subsequent validation logic is applied, the code execution happens at a privileged level relative to the user running the pyfda application. This means that if a standard user opens a malicious file, the resulting shellcode or command injection will also execute with that same user's permissions, potentially leading to further system compromise depending on the privileges of the account in use. The lack of input validation prior to deserialization is the primary factor enabling this attack vector, as it bypasses any potential security controls that might otherwise restrict dangerous operations.

The operational impact of this vulnerability is severe due to its direct link to arbitrary code execution. An attacker who can trick a user into opening a crafted filter file gains full control over the application's runtime environment within the context of the victim's account. This could lead to data exfiltration, installation of malware, or use of the compromised system as part of a larger botnet. The attack requires social engineering elements such as delivering a malicious .npz or .pkl file via email, shared drives, or other means where users are likely to open files without verifying their origin. Once opened within pyfda, the exploit triggers automatically during the loading phase, requiring no further interaction from the victim beyond opening the file in the vulnerable application version.

This vulnerability aligns with CWE-502, which describes deserialization of untrusted data as a common weakness allowing attackers to manipulate object states and execute arbitrary code. It also maps closely to MITRE ATT&CK technique T1059 Command and Scripting Interpreter, specifically through Python execution capabilities enabled by insecure library usage. To mitigate this risk, users should immediately upgrade pyfda to version 0.9.6 or later where the issue has been addressed. In environments where upgrading is not immediately feasible, administrators should enforce strict file integrity checks and restrict the ability of end-users to load unverified filter files from external sources. Additionally, implementing sandboxing for applications that handle serialized data can reduce the blast radius if an exploit occurs. Security teams should also monitor for unusual process creation events originating from pyfda processes as a detection mechanism for potential exploitation attempts in real time.

Responsible

VulnCheck

Reservation

11/26/2026

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

EPSS

0.00367

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!