poetry is vulnerable to privilege escalation. The vulnerability exists because the get_system_env
function of env.py
does not properly validate the absolute path in windows operating systems, allowing an attacker to inject and execute malicious code and steal the credentials or persist their access.
github.com/python-poetry/poetry/commit/459c8c98039420788e7772da1e474d157de79df3
github.com/python-poetry/poetry/commit/ce3e1cdf56c67f5ce8f811346ce932606e760ddb
github.com/python-poetry/poetry/pull/4406
github.com/python-poetry/poetry/pull/4507
github.com/python-poetry/poetry/releases/tag/1.1.9
github.com/python-poetry/poetry/releases/tag/1.2.0b1
github.com/python-poetry/poetry/security/advisories/GHSA-j4j9-7hg9-97g6