SecurityContext

CVE-2026-5271: pymanager - Module Shadowing

  • Cve: CVE-2026-5271
  • Name: pymanager - Module Shadowing
  • Description: 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.
  • Impact: Attackers can cause module shadowing, potentially leading to execution of malicious code or unexpected behavior.
  • Remediation: Update to the latest version that removes current working directory from sys.path or apply patches to prevent module shadowing.
  • Vulnerability impact: remote_code_execution
  • Requirements: Attacker needs to place malicious modules in the current working directory
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.8
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.00184
  • Epss percentile: 0.07935
  • Assignee: [email protected]
  • Published at: 2026-04-01T14:16:59Z
  • Age in days: 237
  • Modified at: 2026-10-26T21:10:00Z
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-5271
  • Nvd status: analyzed
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: vulnerability type, requirement type, hackerone

Cwe

IdName
CWE-427Uncontrolled Search Path Element

Public exploits

UrlSourceAdded date
https://github.com/python/pymanager/security/advisories/GHSA-jr5x-hgm4-rrm6nvd2026-04-01

References

UrlSourceTags
https://github.com/python/pymanager/security/advisories/GHSA-jr5x-hgm4-rrm6nvdExploit, Vendor Advisory
http://www.openwall.com/lists/oss-security/2026/04/01/5nvdMailing List, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
python:pymanager= 26.0nonvd/v1/products/python/pymanager

Projects

RepositoryLink kindsIndexedUrl
python/pymanagerfix, security_advisoryyes/v1/repositories/python/pymanager

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-04-01
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts