VDB
Sign up
HIGH7.5

PYSEC-2015-14

Quick fix

PYSEC-2015-14 — mercurial: upgrade to the fixed version with the command below.

pip install --upgrade 'mercurial>=3.2.4'

Details

The _validaterepo function in sshpeer in Mercurial before 3.2.4 allows remote attackers to execute arbitrary commands via a crafted repository name in a clone command.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/mercurial
Introduced in: 0Fixed in: 3.2.4
Fixpip install --upgrade 'mercurial>=3.2.4'

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:pypi/mercurial"]}'