ADVISORIES

GitHub Advisory Database

GHSA-3v62-ww8w-758m

Mercurial Improper Input Validation vulnerability

Details

The mpatch_decode function in mpatch.c in Mercurial before 4.6.1 mishandles certain situations where there should be at least 12 bytes remaining after the current position in the patch data, but actually are not, aka OVE-20180430-0001.

Affected packages

EcosystemPackageAffected versions
PyPImercurial
All versions before 4.6.1 (fixed in 4.6.1)

References