PyMoDAQ
PyMoDAQ before 5.3.10 Arbitrary Code Execution via Crafted HDF5, Dock Layout, and XML Settings Files
PyMoDAQ before 4.4.13, and pymodaq_data, pymodaq_gui, and pymodaq_utils before 5.1.15, 5.2.x before 5.2.14, and 5.3.x before 5.3.10, contain deserialization of untrusted data and eval injection vulnerabilities that allow attackers to execute arbitrary code by supplying crafted files that a user opens. Attackers can store pickled objects in HDF5 string nodes that StringARRAY.array_to_string() passes to pickle.loads() when the node is browsed or read, place Python expressions in HDF5 attributes that JsonConverter.json2object() evaluates, supply a .dock file that load_layout_state() unpickles from the Dashboard Load layout action, or embed Python expressions in XML settings files that elt_to_dict() and set_txt_from_elt() evaluate.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 4.4.13
Fixed in 4.4.13
- < 5.1.15
- >= 5.2.0, < 5.2.14
- >= 5.3.0, < 5.3.10
Fixed in 5.1.15, 5.2.14, 5.3.10
- < 5.1.15
- >= 5.2.0, < 5.2.14
- >= 5.3.0, < 5.3.10
Fixed in 5.1.15, 5.2.14, 5.3.10
- < 5.1.15
- >= 5.2.0, < 5.2.14
- >= 5.3.0, < 5.3.10
Fixed in 5.1.15, 5.2.14, 5.3.10
Mitigation
Upgrade PyMoDAQ to 4.4.13 or later.
Upgrade pymodaq_data to 5.1.15 or 5.2.14 or 5.3.10 or later.
Upgrade pymodaq_gui to 5.1.15 or 5.2.14 or 5.3.10 or later.
Upgrade pymodaq_utils to 5.1.15 or 5.2.14 or 5.3.10 or later.
References
- Vendor advisory github.com/PyMoDAQ/PyMoDAQ/security/advisories…
- Patch github.com/PyMoDAQ/PyMoDAQ/commit/6c7fff74d826…
- Patch github.com/PyMoDAQ/PyMoDAQ/commit/3bf9042a58f5…
5 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.