PT-2023-20523 · Pypi · Pydash

Calum Hutton

·

Published

2023-09-27

·

Updated

2026-05-07

·

CVE-2023-26145

CVSS v4.0

9.1

Critical

VectorAV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions pydash versions prior to 6.0.0
Description The issue affects pydash methods such as pydash.objects.invoke() and pydash.collections.invoke map(), which accept dotted paths to target nested Python objects. These paths can be used to target internal class attributes and dict items, allowing retrieval, modification, or invocation of nested Python objects. The pydash.objects.invoke() method is vulnerable to Command Injection when the source object is not a built-in object and the attacker has control over the path string and the argument to pass to the invoked method. The pydash.collections.invoke map() method is also vulnerable but harder to exploit due to limited control over the argument passed to the invoked function.
Recommendations For versions prior to 6.0.0, consider disabling the pydash.objects.invoke() and pydash.collections.invoke map() methods until a patch is available. Restrict access to these methods to minimize the risk of exploitation. Avoid using the path and argument variables in the affected methods until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Code Injection

Command Injection

OS Command Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2023-26145
GHSA-8MJR-6C96-39W8
PYSEC-2023-179

Affected Products

Pydash