CVE-2026-5271: Possible to hijack modules in current working directory

Published Apr 1, 2026
·
Updated

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.

Affected Software

2 affected components
pypi/pymanager
Python pymanager=26.0

Event History

Apr 1, 2026
CVE Published
via MITRE·01:48 PM
Data Sourced
via MITRE·01:48 PM
Description
Data Sourced
via NVD·02:16 PM
DescriptionSeverityWeaknessAffected Software
Feb 13, 58282
Event
via FIRST·03:18 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-5271?

The severity of CVE-2026-5271 is classified as high due to the risk of module hijacking.

2

How do I fix CVE-2026-5271?

To fix CVE-2026-5271, you should modify the sys.path to exclude the current working directory or upgrade to a patched version of pymanager.

3

What are the potential impacts of CVE-2026-5271?

The potential impacts of CVE-2026-5271 include the execution of malicious modules and disruption of applications relying on the pymanager library.

4

Which software is affected by CVE-2026-5271?

The affected software for CVE-2026-5271 is the pymanager library available on PyPI.

5

Is CVE-2026-5271 a critical vulnerability?

Yes, CVE-2026-5271 is considered a critical vulnerability due to its ability to compromise the integrity of Python applications.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203