CVE-2023-26145
Summary
| CVE | CVE-2023-26145 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-09-28 05:15:00 UTC |
| Updated | 2023-11-07 04:09:00 UTC |
| Description | This affects versions of the package pydash before 6.0.0. A number of pydash methods such as pydash.objects.invoke() and pydash.collections.invoke_map() accept dotted paths (Deep Path Strings) to target a nested Python object, relative to the original source object. These paths can be used to target internal class attributes and dict items, to retrieve, modify or invoke nested Python objects. **Note:** The pydash.objects.invoke() method is vulnerable to Command Injection when the following prerequisites are satisfied: 1) The source object (argument 1) is not a built-in object such as list/dict (otherwise, the __init__.__globals__ path is not accessible) 2) The attacker has control over argument 2 (the path string) and argument 3 (the argument to pass to the invoked method) The pydash.collections.invoke_map() method is also vulnerable, but is harder to exploit as the attacker does not have direct control over the argument to be passed to the invoked function. |
Risk And Classification
Problem Types: CWE-94 | CWE-77
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Derrickgilland | Pydash | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| fix: don't allow object paths that reference dunder-method attributes… · dgilland/pydash@6ff0831 · GitHub | MISC | github.com | |
| Command Injection in pydash | CVE-2023-26145 | Snyk | MISC | security.snyk.io | |
| pydash v5.1.2 Code Injection · GitHub | MISC | gist.github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 995467 Python (Pip) Security Update for pydash (GHSA-8mjr-6c96-39w8)