Advisory

PYSEC-2023-228

Also known as: CVE-2023-5752, GHSA-mq26-g339-26xf

Summary

The record has no summary.

Details

When installing a package from a Mercurial VCS URL (ie "pip install
hg+...") with pip prior to v23.3, 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.

Severity

Low Basis: CVSS v3 score 3.3, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Dates

Published
2023-10-25 18:17 UTC
Modified
2026-06-10 17:01 UTC

Affected packages and fixes

pip

PyPI · All systems

Affected

  • introduced 0, fixed 23.3 (ecosystem)

Fixed versions

23.3

Fix

  • Fixed version 23.3
    pip install --upgrade pip==23.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences