pymanager included the current working directory in sys.path meaning modules could be shadowed by modules in the current working directory. As a result, if a user executes a pymanager-generated command (e.g., pip, pytest) from an attacker-controlled directory, a malicious module in that directory can be imported and executed instead of the intended package.
{
"cna_assigner": "PSF",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5271.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "26.0"
},
{
"fixed": "26.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"cpe": "cpe:2.3:a:python:pymanager:26.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "26.0"
},
{
"last_affected": "26.0"
}
],
"source": "CPE_STRING"
}
]
}