Poetry
Poetry Has Wheel Path Traversal Which Can Lead to Arbitrary File Write
Poetry is a dependency manager for Python. From version 1.4.0 to before version 2.3.3, a crafted wheel can contain ../ paths that Poetry writes to disk without containment checks, allowing arbitrary file write with the privileges of the Poetry process. It is reachable from untrusted package artifacts during normal install flows. (Normally, installing a malicious wheel is not sufficient for execution of malicious code. Malicious code will only be executed after installation if the malicious package is imported or invoked by the user.). This issue has been patched in version 2.3.3.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.4.0, < 2.3.3
Fixed in 2.3.3
Mitigation
Upgrade poetry to 2.3.3 or later.
References
- Vendor advisory github.com/python-poetry/poetry/security/advis…
- Patch github.com/python-poetry/poetry/pull/10792
- Release notes github.com/python-poetry/poetry/releases/tag/2…
1 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.