CVE-2023-26145
Python vulnerability analysis and mitigation

Overview

CVE-2023-26145 affects versions of the pydash package before 6.0.0. The vulnerability was discovered in September 2023 and involves command injection risks in certain pydash methods that handle dotted paths for nested object access. The affected methods include pydash.objects.invoke() and pydash.collections.invoke_map() (NVD, Snyk Advisory).

Technical details

The vulnerability exists in pydash methods that accept dotted paths (Deep Path Strings) to target nested Python objects. These paths can be used to target internal class attributes and dict items for retrieval, modification, or invocation of nested Python objects. The vulnerability has received a CVSS v3.1 base score of 8.1 (HIGH) from NIST and 7.4 (HIGH) from Snyk, with the vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

When successfully exploited, the vulnerability can lead to command injection, potentially resulting in unauthorized code execution. The impact includes total loss of confidentiality and integrity, allowing attackers to access restricted information and modify protected files (Snyk Advisory).

Mitigation and workarounds

The vulnerability has been fixed in pydash version 6.0.0. The fix prevents access to dunder-methods that could expose access to globals through leaky attributes such as obj.init.globals. Users should upgrade to version 6.0.0 or higher to mitigate this vulnerability (GitHub Patch).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management