Red Hat VEX
RHVEX-CVE-2023-5752
pip: Mercurial configuration injectable in repo revision when installing via pip
Details
A flaw was found in the Python pip package. The pip could allow a local authenticated attacker to bypass security restrictions due to a flaw when installing a package from a Mercurial VCS URL. By sending a specially crafted request, an attacker can inject arbitrary configuration options to the "hg clone" call to modify how and which repository is installed.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:7 | python-pip | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | python3-pip | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:9 | python3-pyrsistent | All versions, no fix (fix deferred) |
References
- https://access.redhat.com/security/cve/CVE-2023-5752
- https://bugzilla.redhat.com/show_bug.cgi?id=2250765
- https://www.cve.org/CVERecord?id=CVE-2023-5752
- https://nvd.nist.gov/vuln/detail/CVE-2023-5752
- https://github.com/pypa/pip/pull/12306
- https://mail.python.org/archives/list/[email protected]/thread/F4PL35U6X4VVHZ5ILJU3PWUWN7H7LZXL/