CVE-2022-26184 Poetry before v1.1.9 contains Untrusted Search Path
Attackers can execute arbitrary code by placing malicious files in a directory where users run Poetry commands on Windows.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-26184?
CVE-2022-26184 is a critical path traversal vulnerability in n/a, published on 21 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Poetry v1.1.9 and below was discovered to contain an untrusted search path which causes the application to behave in unexpected ways when users execute Poetry commands in a directory containing malicious content. This vulnerability occurs when the application is ran on Windows OS.
Weakness: CWE-426
Which versions are affected by CVE-2022-26184?
3 open source packages ship an affected version, including poetry. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
poetry PyPI | All versions | 1.1.9 |
poetry PyPI | All versions | 1.1.9 |
poetry PyPI | All versions | 1.1.9 |
Products include Python-Poetry Poetry.
How do I fix CVE-2022-26184?
Upgrade poetry to 1.1.9 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2022-26184 being exploited?
There is no known exploitation of CVE-2022-26184 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-xr2c-5w89-63pv, PYSEC-2022-234, UBUNTU-CVE-2022-26184.