Skip to main content

Pymanager EUVDEUVD-2026-17911

| CVE-2026-5271 MEDIUM
Uncontrolled Search Path Element (CWE-427)
2026-04-01 cna@python.org
5.6
CVSS 4.0 · Vendor: python
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path element control
Impact

This vulnerability presents moderate real-world risk despite the 5.6 CVSS score. The CVSS vector indicates local attack vector (AV:L), low attack complexity (AC:L), low impact on integrity (VI:H - module integrity is compromised), no impact on confidentiality or availability in the default case, and user interaction required (UI:A). The attack requires the user to execute pymanager in a directory containing attacker-controlled files, making it primarily a supply-chain or shared-system risk. The integrity impact (VI:H) is notable because shadowed modules execute arbitrary code in the victim's context. However, the local-only attack vector and user interaction requirement limit widespread exploitation. EPSS data is not provided, but the combination of low automation potential (requires file placement + user action), local scope, and moderate CVSS suggests this ranks below network remote-code-execution vulnerabilities in priority. Organizations using pymanager in multi-user or build environments should prioritize patching, while isolated single-user installations face minimal risk.

Exploit ScenarioDerived

An attacker creates a malicious module file (e.g., shadow_module.py) in a directory where a developer or build process runs pymanager. When pymanager imports a legitimate module of the same name, the malicious version in the current directory is loaded and executed instead, allowing the attacker to steal credentials, modify build artifacts, or escalate privileges depending on the shadowed module's role. For example, if a developer runs pymanager in a git repository containing an attacker-controlled .py file, and pymanager imports a commonly used module like 'requests' or 'json', the attacker's version executes with the developer's privileges. While this requires the victim to run pymanager in a compromised directory, it is practical in shared development machines, CI/CD pipelines, or supply-chain scenarios.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 01, 2026

pymanager allows local attackers to shadow legitimate Python modules by placing malicious modules in the current working directory, leading to arbitrary code execution when the application imports standard library or third-party modules. The vulnerability affects pymanager due to insecure sys.path manipulation that includes the current working directory with high priority, enabling privilege escalation or information disclosure depending on the affected module and execution context. No public exploit code has been identified, but the local attack vector with low complexity makes this a practical risk in shared or untrusted execution environments.

RemediationAI

Users must update pymanager to a patched version released by the Python project. Patch availability and exact version numbers should be confirmed via the official GitHub security advisory at https://github.com/python/pymanager/security/advisories/GHSA-jr5x-hgm4-rrm6. As a workaround pending patching, avoid executing pymanager from untrusted directories or directories shared with other users, and sanitize the current working directory before running pymanager in automated environments. For Python package managers and build systems, consider running pymanager in isolated environments or with restricted sys.path configurations. The upstream fix removes the insecure inclusion of the current working directory from sys.path or reorders sys.path to prioritize standard library and site-packages over cwd.

Affected VersionsENISA

pymanager 0 <26.1

Affected Packages

euvd pymanager fix: 26.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

pymanager is a Python package management and execution tool that manipulates Python's module search path (sys.path) during initialization. The vulnerability stems from insecure handling of sys.path, where the current working directory is included early in the module resolution order, violating the principle of least privilege for module loading. This is a classic Python path injection vulnerability (related to CWE-426: Untrusted Search Path and CWE-427: Uncontrolled Search Path Element). When Python's import system searches for modules, it traverses sys.path in order; by placing a malicious module with the same name as a legitimate module in the current directory, an attacker can intercept and shadow the intended import. The CVE references GHSA-jr5x-hgm4-rrm6, indicating this was disclosed through GitHub's security advisory system.

Know when Pymanager gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (python) PRIMARY 5.6 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (python) · only source for this CVE.

CVSS VectorVendor: python

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Apr 16, 2026 - 05:29 EUVD
26.1
CVE Published
Apr 01, 2026 - 14:16 nvd
MEDIUM 5.6

DescriptionCVE.org

pymanager included the current working directory in sys.path meaning modules could be shadowed by modules in the current working directory. This could lead to modules getting shadowed

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment NEWS GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy