GLSA 202501-03: pip: arbitrary configuration injection
Severity: | normal |
Title: | pip: arbitrary configuration injection |
Date: | 01/17/2025 |
Bugs: |
|
ID: | 202501-03 |
Synopsis
A vulnerability has been discovered in pip, which could lead to arbitrary configuration options being injected.Background
pip is a tool for installing and managing Python packages.
Affected packages
Package | Vulnerable | Unaffected | Architecture(s) |
---|---|---|---|
dev-python/pip | < 23.3 | >= 23.3 | All supported architectures |
Description
Multiple vulnerabilities have been discovered in pip. Please review the CVE identifiers referenced below for details.
Impact
When installing a package from a Mercurial VCS URL (ie "pip install hg+..."), the specified Mercurial revision could be used to inject arbitrary configuration options to the "hg clone" call (ie "--config"). Controlling the Mercurial configuration can modify how and which repository is installed. This vulnerability does not affect users who aren't installing from Mercurial.
Workaround
There is no known workaround at this time.
Resolution
All pip users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose ">=dev-python/pip-23.3"
References
Availability
This GLSA and any updates to it are available for viewing at the Gentoo Security Website:
Concerns?
Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users machines is of utmost importance to us. Any security concerns should be addressed to security@gentoo.org or alternatively, you may file a bug at https://bugs.gentoo.org.
License
Copyright 2010 Gentoo Foundation, Inc; referenced text belongs to its owner(s). The contents of this document are licensed under the Creative Commons - Attribution / Share Alike license.